C# :: Utilize One Panel But Modify It For Various Options?

Feb 5, 2014

Using WPF and .NET 4.0 what would be the best way to utilize one panel but modify it for various options? For instance when having a basic or advanced view how would I go about changign the area to add buttons or other items most efficiently?

View 4 Replies


ADVERTISEMENT

C++ :: Desktop Application To Utilize Camera And Scanners?

May 5, 2013

I plan on creating a desktop application that utilizes external hardware such as cameras and scanners and captures pictures and scans for use within the application. Is using straight C++ the way to go, or would a mixture between C++ and C# be beneficial? (I heard they can be used in conjunction but is it more hassle than benefit?)

Is GUI development any better in one language over the other? I am hoping to be able to choose a language with less installation requirements for the end user.

I understand that certain requirements are placed on the end users computer depending on what you are developing with (I would be using Visual Studio 2012).

View 2 Replies View Related

C++ :: Social Media Control Panel

Aug 12, 2014

I'd like to make a control panel for different social media to control multiple account and have proxy support. I think i need to learn multithreading and socket programming right ?

View 1 Replies View Related

C# :: Staggered Columns In WrapPanel Or Custom Panel For ListView

Jan 23, 2014

I've been trying for a while now and I can't seem to replicate this model without using a grid. I've tried making some simple custom panels and a wrappanel that makes a new column after n pixels or n number of items which works; however, I'm unable to find a way to stagger each column.

Here's an image of what I'm trying to do:

enter image description here

I've made solutions that use a Grid that do stagger the columns however what I need is a panel that uses columns only and it must be able to be used as the itemspanel for a ListView.

View 6 Replies View Related

C# :: Concurrent Sharp Panel Connection With Semaphores And Buffers

Apr 26, 2014

I have a problem with my C#. Trying to create the airstrip with planes heading out of the hangars and on to the road to the airstrip. Each Hangar pannel is connected with closes road to them. What i am stuck with right now is connecting the roads together so each one of them will see if the next road is free and if it is it will send the plane (colorder square for now) to it and then proceed to the next one when finaly they will line up for the final panel(airstrip) and take off.So far they are just going down the each road they are assigned with semaphore and thread.

using System;
using System.Windows.Forms;
using System.Threading;
using System.ComponentModel;
using System.Collections;
using System.Data;
using System.Drawing;

[Code] ....

Connecting the "p2" with "p5" so the graphics from "p1" the square will travel through P2 and P5 this would be great and will allow me to procede with my studies.

Also i do realise that this might not be the best ways of using concurrent Csharp and not the up to date one but this is what i have been assigned with and do not have any other options unfortunately.

How i understand this is that i need to have 3 buffers and 3 semaphores for each panel. But i do not know how to add those to each one of them and then connect it with the next one as if i try and add them it either puts a cross in the design view over that panel or says that there is limited options for this statement.

This is the way that i want to do it unfortunately it must be so. The most flexible this can be is by adding an array for semaphores and buffer ( do not know how to do that either).

View 7 Replies View Related

C# :: Resizing Panel Controls On A Maximized Form (VS2008)

Mar 1, 2014

I made one application in Visual Studio 2008. The main form is maximized, and contains many panels with different controls (like buttons, listboxes, etc,). All the controls have the dock option fixed as true in panels, and the panels occupied the whole area of form.

Now, when I try to run this application in a machine, with different resolution of the screen, the form is maximized (naturally), but the panels are not resizing, so the form has many null area. How can I resize the panel so, that they fill the whole form area?

View 4 Replies View Related

C Sharp :: How To Give Line Break In Panel In Windows Application

May 8, 2013

I am creating windows application in that i wan create dynamic controls so that i want to give line break after each control in panel.I had tried

panel1.Controls.Add(new LiteralControl("<BR>"));

but it gives error like : "The type or namespace name 'LiteralControl' could not be found (are you missing a using directive or an assembly reference?)" Also have tried adding namespace for leteral control bt it not accepting.VS10 automaticaly get restart if i trying to add system.web.dll

View 2 Replies View Related

C++ :: Makefile Options To Compile For 64 Bit

Mar 17, 2014

I have called a C function inside C++ code. The .so which gets created is a 32 bit while I am looking for 64 bit . What all options should be mentioned in the Make file to eventually compile and get shared object of ELF64 CLASS ?

Excerpts from Makefile
-----------------------------

CC = gcc
CXX = g++
CPPFLAGS = -I. -I$(S) -DHAVE_CONFIG_H
CFLAGS = -O2 -pipe
CXXFLAGS = -g -O2
LDFLAGS =
LIBS = -lsocket -lnsl

[Code] .....

View 1 Replies View Related

C++ :: Multiple Sort Options?

Jan 9, 2013

I have the following private part of a class defined as follows:

private:
struct stats {
double ISIsum;
int authorCount;
bool operator<(const stats &a) const { return ISIsum > a.ISIsum;}
} *stats_;
bool compareSortByISI(const stats &lhs, const stats &rhs);
};

This enables me to sort this struct by calling:

std::sort(stats_, stats_ + authors_->getMaximumAuthors());

My question is, what if I want to have the option to sort by authorCount or ISIsum at run time. Is there any way to do this?

I can't see how I can override operator< twice and decide which one to call at use time.

View 2 Replies View Related

C++ :: Additional Library Installation Options

Aug 5, 2013

I have been reading up, and it seems that all I need to do to finish up the installation of a library is to add in the search path for the library upon compile time.

Of course, I also read that directly copying the lib files can work too, but that may result in the over-writing of necessary files...

I read a more thorough document on mingw's linking processes and discovered that I could create a folder, install the library in that folder, and add the folder as a search path for mingw (so, basically, all i have to do is install all my libraries under that folder).

View 10 Replies View Related

C++ :: Setting Up Menu (With 4 Options) As A Function

Mar 4, 2014

I am having problems with setting up a menu as a function. The point of the menu is to display a list of 4 options and the user is supposed to choose one option and then the program will run. I am having trouble understanding how to display the menu once I run it because it is not working.

#include <iostream>
using namespace std;
int menu(int ans); // function declaration for menu
void draw_triangle(int size, char ch); //function declaration for triangle
void draw_downtri( int size, char ch); // function declaration for upside-down triangle
void draw_diamond(int size, char ch); //function declaration for diamond

[Code] ....

View 1 Replies View Related

C++ :: Accessing WiFi Router Options?

Feb 3, 2014

Is there a way to access the router settings via c++? My friend wanted me to write something that would turn off wifi broadcasting on his router when pressing the button in the program. The only way I can think about is to connect to the router via .net framework and then use reverse engineering (on the router settings site) to find a way how to simulate change of option via POST or GET method.

View 5 Replies View Related

C++ :: Adding New Options To String Class

Oct 8, 2014

I'm giving the replace option to my string:

void replace(string oldstring, string newstring) {
int stroldstringpos=b.find(oldstring);
b.replace(stroldstringpos,newstring.length(),newstring);
}

i have 1 error in these function that i'm confused. imagine the newstring size is more big than the oldstring, how can change the string, but only change the oldstring and add what left?
see these:

String test="hi hello world";
test.replace("hi","hello");

the result must be:

hello hello world

how can i change the replace function for it?

View 3 Replies View Related

Visual C++ :: If Else Statement Displaying Both Options

Oct 21, 2013

I am new to coding and have a question with my if else statement. This is a VERY simple program that I have made something like in Javascript before, but when I do it in C++ it does not work correctly. It displays both the options. Here is my code.

// Practice.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
// Asking for a number {
int x;

[Code] ....

View 14 Replies View Related

C++ :: Command Line Options For Preprocessor Directives

Oct 17, 2014

I want to run the following code from the command line:

Code:
#include <iostream>
using namespace std;

#ifdef ABC
const int num = 105;

[Code] ....

But I can not activate the ABC macro from the command line.

I'm trying to use the -d ABC option following the .exe file name, but I could not run the ABC macro.

How can I activate the ABC macro when I run the .exe file from the Windows 7 command line?

View 13 Replies View Related

C++ :: Simple Program To Display Menu With Options

Mar 23, 2014

I decided to create a simple program to display a menu with options, while that is easy enough I had some difficulty when selecting an option that has options inside which also has an option again. While I had many issues in the past I'm finally finished with it and it works fine, but being new to programming and not knowing various other methods available.

Code:
//:::::::::::::::::::::Simple Menu Program::::::::::::::::
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

#include <iostream>
#include <string>

//function prototypes

[Code] .....

View 1 Replies View Related

C++ :: Login System And Simple Menu With 3 Options

Oct 16, 2013

I need a program that has a login system and then a menu that has 3 options: Add, delete and exit. If I choose Add it wil ask for certain data of 5 students.

Then after registering the 5 students, another menu with the options: Search, Delete and exit. In search it will ask for an ID and then prints all the data of a single student. Delete gives me the option to delete the data of any user I choose.

View 1 Replies View Related

C/C++ :: How To Get Total Number Of Items Selected From Options Menu

Jul 28, 2014

My project is to make a options menu for the user to select a shape and than draw out the shape. That whole process is already done and ready to go. What i am having trouble on is totaling the number of selected shapes. For example, at the end of the program i need to prompt a message saying ("You have selected "shape" this many times "number").

View 1 Replies View Related

Visual C++ :: PDF Creator Printer - Setting Print Options

Apr 12, 2014

I am using PDF Creator printer to print my files. I have set it as default printer. It displays two dialogs .. "Printer Setup Dialog" and "Dialog asking filename and other details to save to file".

I want to avoid these two dialogs. But EndDoc calls the other dialog by default. How to do this ?

View 13 Replies View Related

C++ :: How To Modify A Header Of Any File

Jul 24, 2013

All i want to do is modify a header of a file(.exe file). I just want to do if for fun and see what I can do with it.

View 3 Replies View Related

C++ ::  How To Extract And Modify Sub-Vector

Jun 17, 2014

I have a std::vector<int> and I want to modify subset of the elements. I thought I might be able to use:

std::vector<int> a = { 1,2,3,4,5,6,7,8,9 };
std::vector<int> b(&a[3],&a[7]);
for(auto& each : b) {
each++;
}
for(auto& each : a) {
std::cout << each << "
";
}

but that didn't work. The elements of 'a' retain their original values. Then, I thought, "Ooo, maybe I could make 'b' a reference." Nope. What approach would be to access a subset of a vector for potential alteration?

View 3 Replies View Related

C++ :: Modify Library Of A Code

Jun 10, 2014

I'm trying to modify a library of a code and do not know exactly how to do it.I'm modifying the .cpp file and I know (as I have read on the internet) that I should compile it to obtain the .a file, because the main.cpp uses the .a file.I have written in the terminal the following command (founded on the internet):gcc -o analysis.hpp -c analysis.cpp but I still get an error.

View 3 Replies View Related

C++ :: How To Let The User To Modify The Counts

Apr 7, 2013

After the data is in the array, prompt the user to modify the array by inputting a species name and a count. If the species is not in the array, print a message indicating this and add the species to the end of the array. If the species is in the array, change the count in the array to the new count. Allow the user to input any number of changes.

This is what I have so far:

//Description of program:Manages a list of bird species and counts stored in an array of structs.

#include <fstream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <string.h>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <cstdlib>

using namespace std;
#define ARRAY_SIZE 200

[Code] ....

View 3 Replies View Related

C# :: Modify / Create Txt File?

Apr 22, 2014

My problem is that I have to modify only some specific details in a txt file (actually it is a wrl file but it can be considered as a txt file). There is a lot of text there but I just need to modify the point coordinates and leave the rest of the text as it is. Reading the "sample file" at some stage we will see some blocks that look like the below:

coord Coordinate {
point [
# bottom
-1.0 -1.0 1.0, #vertex 0
1.0 -1.0 1.0, #vertex 1

[Code] ....

where the numbers are (X,Y,Z) coordinates. What I have to do is to change those figures for (X,0,sqrt(X^2+Z^2)) points. Therefore the expected result (test file) will be as follows:

coord Coordinate {
point [
# bottom
-1.0 0.0 1.4142, #vertex 0
1.0 0.0 1.4142, #vertex 1

[Code] .....

So in my opinion it can be good to have two files: sample.txt and test.txt where the sample file will never be modified whereas the test.txt will be the same as sample.txt but including the modifications as explained above. The idea can be to read the sample.txt, store the info and then start copying each line in the test file until we get to the points coordinates (which needs to be modified) and continuying with this process until the next set of coordinates.

The problem is that I do not know how to change x,y,z coordinates from the sample.txt to (X,0,sqrt(X^2+Z^2)) and to copy them in the test.txt. Please see some code below and the sample.txt file attached.

//Read a Text File///////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.IO;
namespace readwriteapp {
class Class1

[code]....

View 4 Replies View Related

C++ :: How To Modify Data In A Linked List

May 27, 2013

I have made a Student record system in c++ using the concept of linked list. The program will take the student id, name and marks for 3 different exams. Then it will calculate the aggregate percentage based on those exams marks and display the relevant message according to the aggregate percentage. All is going well. But there is only one problem. When I modify the student record especially the marks, it doesn't change the aggregate percentage of that specific record. It shows the old one. Similarly the relevant message doesn't change too.


Code:
struct student{
int id;
char name[MAX];
string status;
double aggr;
int matric_marks, inter_marks, entryTest_marks;

[Code] .....

View 3 Replies View Related

C++ :: Multithreading - How To Modify Shared Object

Aug 24, 2014

class MyOwner {
...
int m_count;
bool b_locked;
};

[Code] ....

I am using an API where I create many MyObjects on the heap, and the API uses a separate thread to send messages to each object. Each MyObject contains a pointer to MyOwner.

Suppose I want to keep a count of all messages received in all MyObjects: How can I do this in a thread safe way?

I am assuming that the code I have written above will not be safe--at the very least it seems that it would potentially miss message counts when it was locked--not the worse case scenario for me. I am most concerned about not causing the application to crash.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved