|
did you tried application.end
this usually happens when you call some form from another form and just hide the base form
or some thread in back ground is still working
it will be a better option to debug your application
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
I have only one form and not calling any other forms.
But I do calling some classes and a user control.
Where to set Application.end?
Thank you very much.
KiT
|
|
|
|
|
at formclosing event or where ever you want to close your app
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
I've run into similiar circumstances. I have the forms running on seperate threads and I also have a thread running a formless message loop. When the form closed, the application didn't shutdown because the other thread was still running. Try calling Application.Exit() when the form closes. It's probably not that simple, but I'd thought I'd pass on my 2-cents worth.
|
|
|
|
|
|
|
Hi Senthil,
I have the same problem, but the ScrollToCare method you have suggested has no effect (or not what I hoped to do)
This code snippet should place the cursor always at the current position
but it does not scroll to the end of the lines.
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
this.richTextBox1.Clear();<br />
for(int i=0; i<200; i++)<br />
{<br />
this.richTextBox1.SelectedText = "Index = " + i.ToString() + "\r\n";
this.richTextBox1.ScrollToCaret();<br />
}<br />
}<br />
catch{}<br />
}<br />
What's wrong ?
Tnx in advance
Regards
Frank
|
|
|
|
|
Does anyone have a particle filter for tracking objects in avi, mpeg files?
|
|
|
|
|
Plz try to answer my question
|
|
|
|
|
Please try to ask a question, concisely, and without the use of txtspk.
|
|
|
|
|
i asked what is the difference between cloaning and copy
|
|
|
|
|
Ravi Shankar43 wrote: get me the answer for that
I understand english is probably not your first language, but you must speak it well enough to realise how rude that statement is.
Your question is not particularly clear - often the case when you use 1 line questions! Programming asside, cloning and copying are the same thing. The definition of clone[^] includes "An exact digital copy, indistinguishable from the original".
In .NET you have an interface named ICloneable which defines a way to clone an object... that is to make a deep copy. Your use of the word Copy, may imply a shallow copy.
As I said - your question is mighty vague!
|
|
|
|
|
I am new to this group.And thanks for your reply.
|
|
|
|
|
hi
i have 2 programs and want to add a listviewitem from the one program to a listview in the second program.
with listboxes this is kinda easyly done with sendmessage and LB_ADDSTRING.
but how can this be done with a listview/item ?
googled for some hours now and didnt find a solution.
thx in advance
|
|
|
|
|
adamario wrote: easyly done with sendmessage and LB_ADDSTRING.
In C#? You are in the C# forum do you need the C++/MFC forum?
adamario wrote: but how can this be done with a listview/item ?
googled for some hours now and didnt find a solution.
They hide that information in the documentation[^]
led mike
|
|
|
|
|
i know that i am in c# forum
my problem is that i didnt succeed in transforming the LVITEM stucture to c#.
but this is needed to add items via api in c#.
mayb someone did that already before and can provide a little code snippet how to do it
greetings
|
|
|
|
|
|
Hi guys,
Please help!!! I have a function that takes 3 parameters that I would like to queue it up; this function call occurs within a service and accesses the database based on the 3 parameters. I know about waitcallback but that only accepts the state; how do I pass the other 2 parameters in order to call that function. Please help!!!
sasa
|
|
|
|
|
Just define a new class with 3 fields to transfer your data in, pass that as the state field, and cast it back when you need your parameters:
class MyParameters
{
public string param1;
public bool param2;
public object param3;
public MyParameters(string p1, bool p2, object p3)
{
param1 = p1;
param2 = p2;
param3 = p3;
}
...
public void myCallback(object o)
{
MyParameters mine = (MyParameters) o;
string p1 = mine.param1;
etc
}
WaitCallback wait = new WaitCallback(myCallback);
ThreadPool.QueueUserWorkItem(wait, new MyParameters(bla,die,blah));
|
|
|
|
|
I am going to try this, thank you very much and I really appreciate your help.
sasa
|
|
|
|
|
You are the man, my friend. It worked; thank you very much
sasa
|
|
|
|
|
No problem, I can remember struggling with this myself, I don't like the way MS has implemented this particularly.
Cheers!
|
|
|
|
|
Hello all,
I have been using C# for 2 weeks now, and although I have gotten the basics down I am still having problems with an application that I am trying to create.
My main problem now is that I want to read data from the serial port directly to a struct. Originally I wanted to read it into a bitfield struct, but I found out that bitfields are not supported. (which is the solution I would have used in c++)
After leaving this topic to continue coding other things, I came back to it and the problem has stumped me for a few more days now. In desperation to continue meeting my due date, I am asking the community if they could help me code this. (I have no problems opening and reading from the serial port, I just can't seem to read the streaming data into a few different structures)
Any help would be greatly appreciated.
|
|
|
|
|
|
Thanks, I will see if I can make some sense of this.
|
|
|
|