|
Hello Dear Robert Rohde
Your code solved my problem and it was so cool.
Tank you very much
|
|
|
|
|
This is how we did it 20 years ago. Now, we use Windows messages. And, if you are doing it in C# (or VB.NET), it is even simpler: double-click the button1 control, and VS.NET generates an event handler for you, into which you put your code to display the message box.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
hi all,
i have a simple form with a label and button on it.
i want to print the labeltext when i click the button. but i dont know how to do it ?
would you please help me do this using c# ?
thanks in advance,
bye.
-- modified at 11:04 Monday 8th May, 2006
|
|
|
|
|
|
Hello.
I'm looking for information on to add / change wireless settings like SSID, Passphrase, and decrypt keys through C# .NET... is this possible?
The reason i'm asking is because i'm developing an simple application which can change specific network parameters like IP, DNS, etc. and i need to be able to add / change wireless connections too.
|
|
|
|
|
Hi,
How do I include the '<' character in a c# XML comment (///)?
What is the escape character?
ie.
/// ie. List<string> ......
won't work because <string> is interpreted as a xml element. but I just want to use the '<' and '>' as a comment.
Any help greatly appreciated. Thanks in advance
Pakl
|
|
|
|
|
Did you try using & lt; and & gt; ?
Tarakeshwar
A conclusion is the place where you got tired of thinking.
-- modified at 10:46 Monday 8th May, 2006
|
|
|
|
|
Thats it! That easy
Thanks a lot!
|
|
|
|
|
Hi,
I am using a listview in view.list. I need to know how I could make the scrolling bar larger in order to have it really usefull on a PDA. Actually, I am trying to make a program that will avoid the use of the stylus. I therefore need to have a scrolling bar larger (my thick fingers cannot grab the scrollbar ).
Also, I am using the same listview over and over (always in view.list mode), clearing the text that it contains and putting new text. The only problem I am having with that is the size of the column that do not change automatically everytime I have new text.
i.e.: I put the text {a, ab, abc}. Then I clear the text. And finally I put {a, b, c}. The columns will still have the width of the first input.
Anybody have any idea how I could make the width dynamically resizing everytime I am clearing it and putting new items?
I know that I could use something like:
myListView.columns[0].width = -1; // -1 standing for the automatic resizing.
The problem with this is that I have no column in myListView.columns[] (looked through the debug mode, after having a null reference). It is because I am using myListView.view = view.list and not myListView.view = view.details or something else.
If anybody could help, I would really appreciate.
Thank you
===========
| Nicolas |
===========
|
|
|
|
|
Im getting "The Server is not operational" when authenticating user to active directory
Any help plzz...
Thanks in advance
Krishna
|
|
|
|
|
Hi folks,
I have a webbrowser control on my form which I use to display some images in a file. The default view seems to be the filmstrip view, is there any way to switch it to thumbnail view? If not, is there another (easy) way to display the images like that with another control?
Thanks, Ben.
|
|
|
|
|
Hi folks,
I have a label on my status bar which should change according to whats going on, see this code...
label3.Text = "Opening Log File...";<br />
File_Log = openFileDialog1.FileName;<br />
parse_log(File_Log);<br />
label3.Text = "Ready";
Now for some reason, it will only change the text at the end of parsing the log, so in essence it actually works like this...
File_Log = openFileDialog1.FileName;<br />
parse_log(File_Log);<br />
label3.Text = "Opening Log File...";<br />
label3.Text = "Ready";
Is there any way to ensure that certain actions are done before others so that the label text is chnaged before the rest executes?
|
|
|
|
|
The problem is that the GUI won't Refresh until the operation has completed.
You can force repainting with either label3.Refresh() or Application.DoEvents() . The first one will only repaint the label. The second one will also repaint the rest of the GUI if needed. Have in mind that calling these 'too often' will decrease performance.
A clean solution would be to do the parsing in a separate thread and using Invoke on the label to update the GUI.
|
|
|
|
|
Thanks, the refresh solution is perfect as its only called every now and then
Many thanks!
|
|
|
|
|
HI,
How should i handle max(particular column) of a table in SQL server.
SqldataReader.executeReader() not handles it i suppose.
can any one help
|
|
|
|
|
If it is only one value you are fetching than you can use ExecuteScalar on the SqlCommand object. But I think ExecuteReader should also work.
|
|
|
|
|
SELECT MAX(MyColumn)<br />
FROM MyTable
You can then use ExecuteScalar() to read the value.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hi all,
I have a textbox in Form1, where the user of the mentioned program is going to enter his name.
Then I have another Form (Form2) in which I would like to display the name of the user by getting it from Form1.
I am using MDI.
Can I do it? If so, can you help me please!
Thanks a lot for your help
|
|
|
|
|
Either make the textbox in form 1 public, or define a property or function that's public to return the entered text. Then in form 2, you will be able to access it via the form 1 object.
If you do not have a reference to the form 1 object in form 2, you won't be able to do that though.
- Dy
|
|
|
|
|
|
:-> Thanks for plugging my article
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hello
Let me help you about this public problem.
1.in Form1 go to code view page (press F7)
2.change below definition of textBox1:
private System.Windows.Forms.TextBox textBox1;
To :
public static System.Windows.Forms.TextBox textBox1;
3.now if you build your project you got some errors as :
...cannot be accessed with an instance reference; ...
and you should change all "this.textBox1" to "Form1.textBox1" like :
this.textBox1 = new System.Windows.Forms.TextBox();
change to :
Form1.textBox1 = new System.Windows.Forms.TextBox();
3.go to Form2 and where you want to access Form1's textBox1 just use this :
MessageBox.Show (Form1.textBox1.Text);
Easy...
mail me if you have problem yet
-- modified at 11:14 Monday 8th May, 2006
|
|
|
|
|
freshonlineMax wrote: change below definition of textBox1:
private System.Windows.Forms.TextBox textBox1;
To :
public static System.Windows.Forms.TextBox textBox1;
Why make fields in a class private, why not make them public?[^]
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Look up the Model View Controler design pattern. Views should not know about each other. Forms are Views in this case.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Hi folks,
does anyone here know how I can detect if a program is running in full screen mode or not. I need my app to know this so it can suspend doing what its doing untill normal screen is resumed... It is the same is when your msn messenger goes into away mode when your playing a game etc. I have scoured the net and cant seem to find an answer anywhere
Any help is greatly appreciated
|
|
|
|