|
Hello everyone,
I have a ComboBox which has got the following properties:
this.comboBoxFilterByCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;<br />
this.comboBoxFilterByCategory.FormattingEnabled = true;<br />
this.comboBoxFilterByCategory.ItemHeight = 13;<br />
this.comboBoxFilterByCategory.Items.AddRange(new object[] {<br />
"--------------- All ---------------",<br />
"Books, Music & Movies",<br />
"Kids & Toys",<br />
"Sports & Fitness",<br />
"Tools & Automotive"});<br />
this.comboBoxFilterByCategory.SelectedItem = "--------------- All ---------------";<br />
this.comboBoxFilterByCategory.Location = new System.Drawing.Point(136, 40);<br />
this.comboBoxFilterByCategory.Name = "comboBoxFilterByCategory";<br />
this.comboBoxFilterByCategory.Size = new System.Drawing.Size(150, 21);<br />
this.comboBoxFilterByCategory.TabIndex = 26;<br />
this.comboBoxFilterByCategory.SelectedValueChanged += new System.EventHandler(this.comboBoxFilterByCategory_SelectedValueChanged);
I wish to disable the ComboBox so the user can only select from the options. This works just fine for sometimes then all of the sudden the line
this.comboBoxFilterByCategory.SelectedItem = "--------------- All ---------------";
gets disppears for no particular reason!!! Then I write the line once again and I am back to sqaure one. Things are back to normal till in a random fashion this line gets disappear.
I know this sounds strange, but anyone knows what is going on?!
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Khoramdin wrote: comboBoxFilterByCategory_SelectedValueChanged
What does this code do ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
Looks like you are modifying the designer generated code InitializeComponent().
This is a bad idea and can have the effect you just discriped.
All the best,
Martin
|
|
|
|
|
Hi All,
I have been using C# for a couple of months now and am reasonably comfortable with it. Now, I have come across the need for an (for lack of a better name for it...) inline context menu. Perhaps some code would help describe my problem:
<br />
objects = DoSomeStuff();<br />
response = contextMenu1.Show();
DoSomeOtherStuff(response, objects);<br />
Basically, I need to get some input from a user via a standard context menu and then go back and resume execution of the routine which instantiated the said context menu. I could implement this using the standard event-based model, but the problem would be that I would lose local routine-level data (objects in the example above) unless I save 'em in private data members (which I want to avoid doing especially when it is used only in one place).
Anyone have any ideas?
Thanks!
|
|
|
|
|
i need to customize my color dialog box according to my application requirement.I need to change the background Color of dialog box, which i m able to do tracing the window messages and overriding the hook proc. But the exisisting prob is when i move the dialog box out of the scope of the desktop it gets repaint with all dialog control getting painted.
Regards
Nitin Goel
|
|
|
|
|
|
i have already been through this article, but still was not able to overcome my prob.
Actually i m able to paint the dialog by catching the WM_PAINT message , but the prob is that when i move the dialog box out of the scope of the Desktop window or open another application and then minimize that the dialog is not able to repaint it properly, this is probably bcoz of the message sequence that are being sent.
|
|
|
|
|
You need to catch the Paint event if you're going to change how it's painted.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i get datas serialport than i try to send datas from computer to outside so shows I/O debug error.what is it s reason?
|
|
|
|
|
The code is broken. Ask a more specific question, to get a more specific answer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i know code is broken but i want to know it s reason.i use serialport_datareceived function.i get datas with this interrupt.if i close serialport end of this function so i cant get any data.
|
|
|
|
|
Dear friends,
How to Create Agent Programes in .Net ,
as We develope Agent Programe in Java.
i think all the features of java available in .net. i do't no what is the term for agent in .Net
please help me, it is very urgent,
any idea? any links?
thank u
joe
|
|
|
|
|
=>Joe<= wrote: i do't no what is the term for agent in .Net
The term for "agent" in .NET is "agent".
As far as I can see there is nothing with agents that would make them native to Java. It's just a classification of certain types of programs, it doesn't matter what was used to develop them.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank u Freind for ur replay
i want to develop throw .net. becase it needs run in all the windoews systems.
thats y i asked in .net
thank u
joe
|
|
|
|
|
=>Joe<= wrote: please help me, it is very urgent,
Brink of nuclear war urgent, or homework due in the morning urgent?
|
|
|
|
|
hai Freind
thanks for ur replay
i like ur replay and had good fun
thank u
joe
|
|
|
|
|
Hi friends,
I am new to C# so i have doubt..I am geeting 8 digit EmployeeID,i want to truncte those Eight digits into four digits ..How it could be possible to implement.
Regards,
Jeyakrishnan
|
|
|
|
|
If your id is int or long:
int firstPart = id / 10000;<br />
int secondPart = id % 10000;
If it's a string, use the SubString method.
|
|
|
|
|
I need to get info from a router using SNMP. Following info expect to get remotly
CPU usage
UDP/TCP info
Memory Usage
Interface info
If u have a idea or sample code pls email me.
Manoj
|
|
|
|
|
I am sure you have to glaze over Windows Managemnt Instrumentation to get snmp information from your Router
ashis
|
|
|
|
|
Hi
I am making an application through which i can send message to another user with in a network(LAN).In this application there are two form i.e form1 and form2. When i send message to a userA, the form1 go into tray or it'll hide. After that a form2 will display on the screen of that user which i have sent message. In form2, there is an option of reply through which that userA can reply.Now i want to activate the main form which is hide in tray, when userA click on the reply button.
Reply me asap....
Devesh Mishra
|
|
|
|
|
can you share your code.
this is also my problem. its almost the same on my post.
by the way, i dont have any idea.
thanks.
to know everything is to know yourself...
|
|
|
|
|
hey i m sorry..cant share my code..
but if i'll get any solution then i'll def reply u..hope same frm u..
thanks
Devesh Mishra
|
|
|
|
|
Hi,
if you are trying to show the form1 as modal then call form1.ShowDialog(), but if you wants to show the form1 as modeless dialog then call form1.show().
Manoj
Never Gives up
|
|
|
|
|
Hi manoj
In my application, form1 is the main form and form2 comes from ShowDialog().
and now i want to open/activate form1 from form2 which is already hidden in system tray.
Thanks
Devesh Mishra
|
|
|
|