|
|
that worked but when i open the program i add an item, if i restart the program the new item isn't there anymore...
|
|
|
|
|
There may be other ways, but here's what I would do:
- Create a Serializable class with an array of strings as a member.
- When you close your application, create an instance of this class and copy your comboBox items into the string array of your class.
- Then, serialize your class in to file.
Finally, when you start your application, deserialize your class, and use
comboBox1.Items.Clear();<br />
comboBox1.Items.AddRange(myCustomClassInstance.StringArray);
You will find plenty of information and tutorials about serialization on the web.
Cheers
|
|
|
|
|
Won't
myNiftyComboBox.Items.Add(myVerySpecialTextBox.Text);
do the trick?
Regards,
Matt
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
|
In my window application form i use two mdi form .
Every mdi form contain 3 children form.Is this possible if i call one mdi form into the other mdi form.If this possible how i call the other mdi form
life is so sweet
|
|
|
|
|
|
Hello,
I have a WebBrowswer control in my application and I can do a SendKeys.Send("^f") to open the Find dialog in the window. This is nifty enough.
What I'd like to do is populate that textbox widget on the Find dialog with a string of my choosing, but frankly I'm not sure where to start on this. As I've got the text - via some processing in my application that is likely the text the user will want to search for, I'd like to populate it without having the user fat finger it in.
Any ideas?
Thanks much,
Matt
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
So, I solved it myself.
Clipboard.SetText(theTextString);
will set the desired text in the clipboard. The somewhat cheesy solution for the paste was to do:
timer1.Start();
and in the time1_Tick handler, do:
SendKeys.Send("^v");
Not necessarily elegant, but it did the trick.
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
how i can enter the values in my database using datagrid ???
life is so sweet
|
|
|
|
|
There are lot of article for doing so one of them is http://www.codeproject.com/aspnet/EditGrid.asp
Google it and you will find many !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
i've created a user control and it must read an app.config, but it doesn't work.
The user control can'f find the app.config file.
how I do to user control find thee app.config file?
thank you.
|
|
|
|
|
Controls and .DLL's don't get their own configuration files. As the name suggests, they're Application configuration files, not component. You're control will have to rely on the developer supplying the configuration in his/her application's app.config file if you want to use the .NET Frameworks built-in classes and methods for retrieving config options.
The only way to supply a seperate config file for your component (not a good idea BTW!), is to implement your own config file (preferrably in XML,) specifying your own schema and writing the code to find and load the config file yourself.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
is it possible the dll read the app.config file of the application?
|
|
|
|
|
How can we combine a transparent GIF image with a JPG file and save the resulting image in disc.
I want the GIF to act as a frame that we can see the JPG image through it .
|
|
|
|
|
Please don't cross post in multiple forums!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hello,
I have seen datagrid, a view control in Framework 1.0/1.1 but in Framework2.0 datagird also there but little change from datagrid to gridview but no separate view control. Is Gridview control composite of datagrid and a view control. What is there that we can do with gridview but not with datagrid? Is there any major difference. Moroever, what is better to use in the future applications that can provide a full control over gridview or datagrid controls as well as total control on their functionality.
Thanks for answering in advance.
|
|
|
|
|
|
how to get a image processing in vb.net?
|
|
|
|
|
mhammed wrote: image processing in vb.net?
Please select a suitable Forum and put your question there.
Regards,
Satips.
|
|
|
|
|
Write the code to do it maybe?
You might want to explain what you want in more detail. This is a very vague question that noone can possibly answer with any kind of accuracy.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hello, i want to know if there is a class in the .net framework to parser an MailMessage to an string, i mean, take all its properties,headers,etc, and return an string with those values..something like...
<br />
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("< from >", "< to >", "< subject >", "< body >"));<br />
string commandToSend = Parser.Convert(message);<br />
Console.Write(commandToSend);<br />
I need the string value because it will be send to a service for spam evaluation.
Sorry for my bad english, its not my primary language.
thanks.
|
|
|
|
|
Hi, I was wondering if anyone knows a free downloadable forum program. Preferrably in C# and .NET. It would be nice if users had to register before they could post as well.
Thanks
|
|
|
|
|
Have you googled for this?
I just googled for "forum software c#" and got 4.5 million results, how about that!
|
|
|
|
|
Hey,
Have you heard about this.
Check this site and get the code for the Forum Program.
Regards,
Satips.
|
|
|
|