|
Thanks for your help I didn't realize you could make a winform modal.
|
|
|
|
|
|
Hello, I am working with Visual Studio 2010 and a Windows Form application, because I want to include a SQL Databse .mdf file as resource for that application in order to keep the data inside the application, I Try to include a new element and I choose a database linked to Service (*.mdf datafile) but I allways receive an error message in which it says that for that action is needed to install first SQL Server 2005 Express or SQL Server 2008 Express and it give an Internet address for downloading.
The situation is that SQL Server 2008 Express is just installed, and I can create the same named database from SQL Server Management Studio o Visual Studio Server Explorer without any problem, so why it's not posible to aggregate as new element in the Solution Explorer.
Best Regards
|
|
|
|
|
It's not clear what your problem is because you say a couple things that are contradictory.
I'll just say that you cannot use a database that is stored in your app's resources. It must be a seperate file in the file system in order for SQL Server to use it.
|
|
|
|
|
Hi!
I've two Forms. In the first form I've added three Radio Buttons. My second form (i.e class Form2) has to know which radio Button was selected at a particular instance. I'm using Windows forms C++/CLI. How to do this?
|
|
|
|
|
Expose a property on the first form that gives you the index of the selected radiobutton. From the second form, read the property on the given particular instance.
I are Troll
|
|
|
|
|
I am using google to try find a form generator that will take a C# or C++/CLI class as its input with no success.
Any Recommendations?
Ger
|
|
|
|
|
Are you trying to convert a class to a Windows Form? Why can't you just use the classes and there public methods and properties in a form?
|
|
|
|
|
Thats exactly what I want to do - but there are 100 elements. How do I make it autogenerate?
Ger
|
|
|
|
|
Ger Hayden wrote: Thats exactly what I want to do - but there are 100 elements. How do I make it autogenerate?
Using CodeSmith or Text-to-Text transformations.
As an alternative, have you seen the property-grid? It takes an object, and builds a nice grid which lists all it properties.
I are Troll
|
|
|
|
|
Hi!
I'm using Windows Forms C++. I've placed my code(like adding event handler and some IO&String handling) inside the void InitializeComponent(void) function. It's stated that not to modify this function with any code editor. Will this result in any problem in the future? If so, Where should I place my own code? Excuse me,if it is a silly Question. I've not used Windows Forms before. Can any body suggest any online material for Windows Forms as a start up?
|
|
|
|
|
No. I recommend placing it after the call to InitailzeComponent e.g.:
InitializeComponent();
m_CellInError = gcnew Point(-2, -2);
You can also use Visual Studio's IDE to add a FormLoad Event for set up stuff.
Code in the InitializeComponent that you add yourself risks being erased when the IDE refreshes your form
Ger
|
|
|
|
|
pix_programmer wrote: Where should I place my own code?
Anywhere you like except places marked "do not modify".
pix_programmer wrote: Excuse me,if it is a silly Question.
So you are excused. This once.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Hi,
we all know how to dock or anchor controls so that they resize themselves accordingly when a form is resized. It works fine till we have rows of controls on left and right size of the form. But what if have three columns (Columns as in visual sense. I'm not talking about any column control containing other controls) of controls? For example a form having a bunch of controls in the left side, a bunch in the middle and a bunch in the right. There may be a few more bunches in the middle. Now while resizing the form, I want the controls to resize accordingly as well as change their positions to make space for the previous bunch of controls that are resizing.
I mean, while the user increases the form size horizontally, the controls of the second bunch should resize and at the same time they should move right because the controls of the first bunch are increasing horizontally too. When the user decreases the form size horizontally the same thing should occur in the reverse order.
I can manage it somehow using nested splitcontainers but that's too cumbersome. I would like to know if there's some better way to achieve it, like setting some property etc.?
Please help. Please feel free to ask if my post isn't comprehensible. Regards.
|
|
|
|
|
|
I worked with TableLayOutPanel till late last night. Though it's time consuming but it resolved my issue. Thanks a lot.
|
|
|
|
|
Great if you got it to work. I've used the same for a control that needed very specialized resizing requirements.
|
|
|
|
|
Hi!
I've to set a Mouse Over(Hovering) image to a button in Windows Forms C++. How to do this?
|
|
|
|
|
Try posting in the Managed C++ forum, and you may get a better chance of an answer.
I must get a clever new signature for 2011.
|
|
|
|
|
Are there any alternatives to using a listview in new versions of .Net? I like listviews but the versions of .Net I use (2005 & 2008) require coding to be put in to sort the listview. It would be nice to be able to use a control that has sorting already built in.
Thank you,
Chad
|
|
|
|
|
A DataGridView has default sorting; so does a ListBox. And obviously you can disable or override it.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
I agree. DataGridView can do so much more. Many of the examples on line are VB or C#, but it doesnt take much to turn the C# to C++/CLI if needs be.
Ger
|
|
|
|
|
A DataGridView is always heavier (in terms of resources) when compared to a list view (due to the number of features it offers). So use a ListView unless you absolutely have to use a grid view.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
|
I'm writing a program to encrypt and decrypt file on the fly, i used filter driver but miss read and write when the application use "mapviewoffile". i don't know how solve this , please help me.
|
|
|
|