|
How to make my form acts as a dialog box when it is called from a menu item.
I could do this using Form.ShowDialog() within any event of any control on a form.
But when I called this function on the click event of a menu item, I got the following exception .
"Forms that are not top level forms cannot be displayed as a modal dialog. Remove the form from any parent form before calling showDialog"
Mohamed Gouda
Egypt
|
|
|
|
|
Try:
Form.ShowDialog(this);
This will create a modal dialog form on top of the main form.
Jeff Clark
Systems Architect
JP Clark, INC.
Columbus, Ohio
|
|
|
|
|
Thanks Jeff .
It did not work. But you helped me rethinking about my code and discover my fault .
The problem was that I defined the MdiParent property of the dialog form to be this
My code was some thing like this.
MyDialogForm dialogForm = new MyDialogForm();<br />
dialogForm.MdiParent = this;
dialogForm.ShowDialog();
However, Thanks a lot
Mohamed Gouda
Egypt
|
|
|
|
|
|
|
|
First I do not what is TX control.
But I think that you can add all .dll files that appears after installing that control. add them to your code as reference.
Another solution:
If you do not want to ask your client to install that control first, you can create your own installation wizard that implicitly installes that control
Mohamed Gouda
Egypt
|
|
|
|
|
Normally I don't do blatant self promotion, but I feel that your case is different. Please read these [^] guidelines, especially the section on reposting a question.
|
|
|
|
|
Hi,
My problem is when i merge one dataset with the previous one, the content of the previous dataset disapear.hence i only get one dataset which is the last merge operation.
I keeps loosing the prevoius merge operation.
Please if you can give me an example, on how i can retain the previous merge.
Thanks
|
|
|
|
|
Reposting the same question is considered rude.
If you dont understand the functionality of Merge try re-reading the docs.
|
|
|
|
|
Thanks for your comment!,
I have used from your link :
DataSet.Merge (DataSet, Boolean)
My two dataset have the same schema.what i want to keep the result of the dataset in to one datset
that will keeps building up the dataset which out loosing the previous datset operation.
Thanks
|
|
|
|
|
Get the latest files from VSS.
There are several projects in the solution.
These projects refer to a web reference.
All projects build fine except one of them.
The problem is to do with the web reference.
Under web reference there is a reference to MarketdataService which is the webservice.
But every time I delete and add the web reference, it adds the extension 1 to the end of it i.e. MarketDataService1
On the hard drive I can see the new folder is added and even deleting it and re-adding the web reference still adds the extension 1 to the web reference name.
Not sure why this is happening.
Thanks
|
|
|
|
|
Run Analyze on your sourcesafe database and check to see if there are any corruptions in it.
|
|
|
|
|
VSS is getting the correct files it seems because on my hard drive I can see the correct files.
But in the project, it does not show the web reference which is in VSS.
Thanks
|
|
|
|
|
Sorry - I should have read your post better (hint - you don't need to put a new sentence on a new line as it makes it harder to read). The issue is that the system thinks that you already have MarketDataService installed in IIS. You need to open IIS and remove the old version before you attempt to bind to the one in VSS.
|
|
|
|
|
|
No problem - glad to help.
|
|
|
|
|
well i have a visual studio created setup. Installation goes fine. The application creates some data file in its installation folder.
well when i uninstall the application using the "Add/Remove programs" wizard of windows xp, the data files created by application are not deleted.
plzz help
|
|
|
|
|
Because the installer didn't put the data file there. And neither should your program. If it needs to create data files it needs to put them in the correct place - and a subdirectory of Program Files isn't it.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Hai everybody,
Can you please tell me how to preserve the existing values in an array while re-dimensioning.
(In VB.Net we are having "Preserve" keyword)
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: Can you please tell me how to preserve the existing values in an array while re-dimensioning.
I presume you mean resizing.
Arrays are not resizable in C# (nor in VB.NET, incidentally. It is a trick to allow you to think they are resizable).
If you need a resizable array use something like an ArrayList
But, if you do need to make the array bigger then create a new one, copy the values over, and then change your existing references to the new array. The old one will drop out of scope and be picked up by the garbage collector.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Colin Angus Mackay wrote: use something like an ArrayList
Thank you for your solution
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
.NET 2 has an Array.Resize static method which behaves identically to the ReDim Preserve operation in VB. It only works for 1-dimensional arrays however. But unless you really need a proper array, one of the collections such as List<t> are probably better suited.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
C++ to VB Converter: converts C++ to VB
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
Hi All,
I have a stored procedure that returns a dataset( which contains two tables).
I have to run the stored procedure a couple of times and need to keep the all the datasets.
Is is possible to merge the result of a new dataset in to previous one as many as i can?
dsnew.merge(dsold)
dsnew1.merge(dsnew)
dsnew2.merge(dsnew1) etc.........
so that i can have all the results of the datasets in Dsnew2
Thanks
|
|
|
|
|