Click here to Skip to main content
16,006,065 members
Home / Discussions / C#
   

C#

 
GeneralRe: I can disable Minimize, maximize box in windows using API but restore box. Pin
Kernel10012-Nov-09 4:19
Kernel10012-Nov-09 4:19 
GeneralRe: I can disable Minimize, maximize box in windows using API but restore box. Pin
TheDudeJuan2-Nov-09 5:35
TheDudeJuan2-Nov-09 5:35 
GeneralRe: I can disable Minimize, maximize box in windows using API but restore box. Pin
Kernel10012-Nov-09 20:13
Kernel10012-Nov-09 20:13 
AnswerRe: I can disable Minimize, maximize box in windows using API but restore box. Pin
Christian Graus2-Nov-09 9:43
protectorChristian Graus2-Nov-09 9:43 
GeneralRe: I can disable Minimize, maximize box in windows using API but restore box. Pin
Kernel10012-Nov-09 20:20
Kernel10012-Nov-09 20:20 
Questiondynamic object creation using Type literal Pin
swjam2-Nov-09 1:36
swjam2-Nov-09 1:36 
AnswerRe: dynamic object creation using Type literal Pin
Simon P Stevens2-Nov-09 1:56
Simon P Stevens2-Nov-09 1:56 
QuestionMaking a CONTAINER [modified] Pin
_Q12_2-Nov-09 1:35
_Q12_2-Nov-09 1:35 
I have this little code I wrote:
(and with the help from some nice persons from this forum.)
using System;
using System.Windows.Forms;
using System.IO.Ports;

namespace serialport
{
public partial class Form1 : Form
{
private SerialPort port = new SerialPort("COM3", 9600, Parity.Odd, 8, StopBits.One);

public Form1()
{
InitializeComponent(); port.Open();
}


private void buttonSS_Click(object sender, EventArgs e)
{
timer1.Enabled = !timer1.Enabled; //on/off event
}



private void timer1_Tick(object sender, EventArgs e)
{
port.DtrEnable = !port.DtrEnable;

if (port.DtrEnable)
{
timer1.Interval = (int)numericUpDown1.Value;//1 val
}
else
{
timer1.Interval = (int)numericUpDown2.Value;//2 val
}
}


Now, What I want is a little complicated because I want to store the values from inside timer1_Tick event handrler into some sort of container. I want to make 10 (or more) containers that can hold different values I choose from those timer.intervals(or numUpDown). Then, to be able to play them in order, one container after another. When first container finish its doings, then the second container with his custom values enter and start to run, then the third,etc.

Thanks
~Teodor~

modified on Monday, November 2, 2009 1:34 PM

QuestionURGENT : The remote server returned an error: (550) File unavailable (e.g., file not found, no access) [modified] Pin
swati1112-Nov-09 1:33
swati1112-Nov-09 1:33 
AnswerMessage Closed Pin
2-Nov-09 1:56
stancrm2-Nov-09 1:56 
GeneralRe: URGENT : The remote server returned an error: (550) File unavailable (e.g., file not found, no access) Pin
swati1112-Nov-09 2:07
swati1112-Nov-09 2:07 
AnswerRe: NOT URGENT : The remote server returned an error: (550) File unavailable (e.g., file not found, no access) Pin
musefan2-Nov-09 2:40
musefan2-Nov-09 2:40 
AnswerMy vote of 1 Pin
Keith Barrow2-Nov-09 2:55
professionalKeith Barrow2-Nov-09 2:55 
GeneralRe: My vote of 1 Pin
crystal91543-Mar-10 13:17
crystal91543-Mar-10 13:17 
QuestionAplication uninstall fata error Pin
Tridip Bhattacharjee2-Nov-09 1:27
professionalTridip Bhattacharjee2-Nov-09 1:27 
QuestionHow can i dump a datagrame (IP packet) & it's header (IP header & TCP header) ??????????? Pin
3bood.ghzawi2-Nov-09 0:46
3bood.ghzawi2-Nov-09 0:46 
QuestionIs there any libraries which work on usb Pin
Liya Kebede2-Nov-09 0:38
Liya Kebede2-Nov-09 0:38 
AnswerMessage Closed Pin
2-Nov-09 0:55
stancrm2-Nov-09 0:55 
GeneralRe: Is there any libraries which work on usb Pin
Liya Kebede2-Nov-09 0:57
Liya Kebede2-Nov-09 0:57 
QuestionPerformance Issue Pin
Pavan Navali2-Nov-09 0:27
Pavan Navali2-Nov-09 0:27 
QuestionTransferring user input from a textBox of a form to a label of another form Pin
gamer11271-Nov-09 22:54
gamer11271-Nov-09 22:54 
AnswerRe: Transferring user input from a textBox of a form to a label of another form Pin
Christian Graus1-Nov-09 23:00
protectorChristian Graus1-Nov-09 23:00 
GeneralRe: Transferring user input from a textBox of a form to a label of another form Pin
gamer11271-Nov-09 23:10
gamer11271-Nov-09 23:10 
Questioni need help Pin
zez01-Nov-09 20:22
zez01-Nov-09 20:22 
AnswerRe: i need help Pin
Christian Graus1-Nov-09 20:32
protectorChristian Graus1-Nov-09 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.