|
As usual excellent post..
|
|
|
|
|
Thanks a lot!
All the best,
Martin
|
|
|
|
|
Martin,
thanks! It works.
But unfortunatly it solves not my problem: If I debug the frmA, the timer in frmB stops also. Is there a way to exclude frmB from debugging?
Or have I to use a separate application frmB and use interprocess data exchange to get the data from frmB. (frmB collects temperatures, and frmA reads them from frmB)
Ariadne
|
|
|
|
|
Hello,
Ariadne wrote: If I debug the frmA, the timer in frmB stops also. Is there a way to exclude frmB from debugging?
Hmmm, interesting task!
What kind of timer are you using?
Maybe take a look at System.Threading or System.Timers. Timer!
But I have to admit that this is without knowing something about debug behaviour!
Maybe you should start a new thread with this specific question.
I'm sure the MVP cracks or for example Luc (but also others), know more about this topic.
Hope it helps!
All the best,
Martin
|
|
|
|
|
Thanks.
Martin# wrote: Maybe you should start a new thread with this specific question.
Yes I did so...
Ariadne
|
|
|
|
|
Ok,
But you should really, try the approach with an other timer, which is not running in the GUI thread (Forms.Timer does run in GUI thread)
All the best,
Martin
|
|
|
|
|
I am creating pdf file from my application software. I know the syntax for using Fonts in pdf. But my problem is, there are some keywords like "/FirstChar, /LastChar, /Widths, /FontDescriptor, /Encoding" how can findout these details from a font file(insttalled in my computer)/from my computer?
Belju Paul
|
|
|
|
|
If i leave textbox i.e focus i have do some functionality that do necessary things in some other controls.
For Ex:if i leave focus on text box i have to get some text on another text box.
For this iam writing in textchanged event?iam not getting.
i think we have to write code in leavefocus ?
plz clarify and give some code.
Thanks in Advance
Ravi Shankar
|
|
|
|
|
It sounds like you want the Leave event, yes.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
But i dont find leave event here.Iam developing a project in Asp.net using C#.
Ravi Shankar
|
|
|
|
|
does we need to insall Crystal report on client system when we r using crystal reporting in our project?
Nikesh Kr. Yadav
Programing is easy in .Net
|
|
|
|
|
I have some old com class that return to me VARIANT as string or as int.
How can i use it in C#? what i mean is how can i know if the type is int or String ?
I know that i can do it like this
_Variant.GetType().FullName.CompareTo( "System.String" )
But is there is some other/effective way to do it ?
Thanks for any help.
-- modified at 1:40 Tuesday 14th August, 2007
|
|
|
|
|
have you tried typeof(VARIANT) not sure it will work in this situation but worth a try
|
|
|
|
|
Its not working - is there is other way ?
|
|
|
|
|
Could you use the is keyword?
if (_Variant is int)
{
}
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I am using Visual Studio 2003. I have to create an object of PrintDocument Class(in C#) at RunTime. But I'm not able to add.
When I am typing the following line, after the new word there is no Description provided for the PrintDocument() class.
PrintDocument printDocument1 = new PrintDocument();
How can I add this PrintDocument class's object at RunTime?
|
|
|
|
|
I have one API url ..
http://***.***.***.***:**/login/pushsms.php?login=ABC&pass=con***&mob_no=**********&text=*****
I have one table name tbl_promoter in this table one field is 'TL_name', 'TL_Mobile_number' and 'date' ....this table autometic update by listener.
i want to do send autometic sms on TL_mobile_number daily morning 10 AM with previous day status ...by api url...which is given above ...
mean i want......... how i will pass two parameter mobile number and text ...dynamic by sql table ....
Mukesh kumar Singh
|
|
|
|
|
Hi, i design Notepad with Forms (in Windows Application ) ,but How can I design Find Menu (in Edit Menu) with Forms?
Thank you for your attention.
Nazli
thank you nazli jahani
|
|
|
|
|
Here you can design just the form like the find window.....
Here you can also use the InputBox if you does not want to give extra facilities like Search Up, Down, Search Case Sansitive etc...
Naresh Patel
|
|
|
|
|
OR
If you don't like the appearance of default InputBox, you may create small form that can acks like Find dialog..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
|
Hi All,
I working on my treeView.
I had a treeView with both CheckBox and Expandlist.
I had a "NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)" method.
inside the method I wish to know whether I click on is a checkbox or the expand + button.
how can I do it?
|
|
|
|
|
Have a look at TreeView.HitTest() and in particular its Location property.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi thanks,
but tat don't do the trick. I felt.
my tree goes like this.
c:\
---a\
---b\
-----a\
-----b\
---c\
-----a\
-----b\
-------a\
-------b\
---d\
I nd to find out whether I click is a + sign or a check box. how to program it? thanks.
|
|
|
|
|
You can find list expanding using AfterExpand and BeforeExpands events and from the e argument you can find the affected node and action
and the same approach works for check boxes with using AfterCheck and BeforeCheck events
public Form1()
{
InitializeComponent();
this.treeView1.BeforeExpand += new TreeViewCancelEventHandler(treeView1_BeforeExpand);
this.treeView1.BeforeCheck += new TreeViewCancelEventHandler(treeView1_BeforeCheck);
}
void treeView1_BeforeCheck(object sender, TreeViewCancelEventArgs e)
{
StringBuilder str=new StringBuilder();
str.AppendFormat("[Check] Name: {0} CurrentStatus: {1} NextStatus: {2}",e.Node.Text,e.Node.Checked.ToString(),(!e.Node.Checked).ToString());
MessageBox.Show(str.ToString());
}
void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e)
{
StringBuilder str = new StringBuilder();
str.AppendFormat("[Expand] Name: {0} CurrentStatus: {1} NextStatus: {2}", e.Node.Text, e.Node.IsExpanded.ToString(), (!e.Node.IsExpanded).ToString());
MessageBox.Show(str.ToString());
}
good luck
|
|
|
|