can you write me a sample how to define Function1 , Function2 , Function3
t_nedelchev
Posts
-
array of function -
array of functionHello everybody. My project is C# project and I want to make an array of function.Is this possible and how to make it? Thanks in advance
-
chech boxHello everybody How to change a size of box on checkBox control? thanks in advance
-
Serial port communicationThanks DaveyM69 and sorry to loosing your time.In this moment nothing help.Now I will relax and try again later to decide the problem Thanks for all
-
Serial port communicationThe problem is when I unplug the USB converter from PC and COM Port is disapear any tring of using a method of instance of serial port generate exception i.e. I can't use Sp.Dispose() or SP.Close();
-
Serial port communicationThanks DaveyM69 I try to do this protected override void OnClosing(CancelEventArgs e) { try { sp.Close(); } catch { int probe = 33; } } In this case there is no exception when close the program but the program is stoped on the breakpoint in the catch. There is something interesting.When I start the program again the all window is white for a 2 or 3 seconds and then starts normaly.
-
Serial port communicationthanks for an answer I try to do this try { sp.Write(TxBuf, 0, (k + 2 + ofs)); } catch { FL_Connected = false; MessageBox.Show("Message"); } And it works.But when I close the program it generate the same exception(Access to the port is denied)
-
Serial Port communicationHello everybody My project is a C# project on VS2005. My application communicate with external device through Serial Port.I'm using USB to RS converter whitch add another COM Port in my computer.When I connect with device through this COM Port(transmit and receive data) everythink is OK.When unplug the USB cable from PC COM Port is still open and I try to transmit data the program is generate exception(Access to the Port is denied).How can I detect when the COM Port is disappear? Thanks in advance
-
Serial port communicationSorry but it doesn't works. My code is if (sp.IsOpen) { sp.Write(TxBuf, 0, (k + 2 + ofs)); } else { FL_Connected = false; MessageBox.Show("Message"); } When I unplug USB cable (Converter) from my computer the COM Port is still yet open but when the program try to write data to serial port it's generate exception "Access to the Port is denied"
-
Serial port communicationHello everybody My project is a C# project on VS2005. My application communicate with external device through Serial Port.I'm using USB to RS convertor whitch add another COM Port in my computer.When I connect with device through this COM Port(transmit and receive data) everythink is OK.When unplug the USB cable from PC and I try to transmit data the program is generate exeption.How can I detect when the COM Port is disappear? Thanks in advance
-
Short KeysThanks DaveyM69 it works!!! :)
-
Key pressedHello every body. My project is C# project on VS2005 .net How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle: If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed. Thanks for all in advance.
-
Short KeysHello every body. How can I catch Key press but not like event for a Form or other component. For exapmle: if my program is started end is presed keys F1,F2,... and etc. I want to catch this Keys presed. Thanks for all.
-
dataGridViewThank you it works !!!
-
dataGridViewHello everybody. In my C# project I have a dataGridView with 12 Columns and 16 Rows. Propertie ColumnHeadersVisible is set true; How to enter value(text) into Cell between Row headers and Column headers (Cell in Topleft corner) in my dataGridView? Thanks in advance.
-
dataGridViewYes I know how to set column Headers text. But propertie RowHeadersVisible for my dataGridView is set to true. And I want to set for all rows header text.Is this possible?
-
dataGridViewHello everybody. In my C# project I use dataGridView. How can I set a row headers text? Thanks in advance.
-
moving ellipseIt's my last question. :) The effect is the same when in timer tick I make dataGridView1.Refresh(); Byt my dataGridView1 blink every timer tick
-
moving ellipseI'm so sorry but something wrong. I try this any times today. Is there something else in timer tick except to update X and Y value and to Invalidate().Because my dataGridView is repainted only when over it move another window. Sorry but I'm beginer.
-
moving ellipseHi Can you send me a sample code how can I do this in paint handler X and Y is updated in timer tick at 100ms.