blah blah blah is here! blah blah » Close

0
votes
1 answers

Event handling in C#

Dear ALL, I have created an event where I am calling a method to access the hardware and also sending a command to jog the machine. When this button is clicked the event is triggered and the motors connected to that hardware moves with the ...

0
votes
1 answers

Timers HELP!!!

GlennP
215

Hi, I am in desparate need here. I need a timer method that will sit globally at form level and hold everything (except one com) to look for replys from a device. I have tried to use a Windows form timer (with out much success) and Threa ...

0
votes
1 answers

displaying system languages in a drop down

How can i show all the available language of system in a drop down(like in Control Panel->Regional and Language, Regional tab option has a drop down that displays all the language) ? Thanks.

0
votes
1 answers

about dropdownlist

hi i have one requirment in my page iam having dropdownlist,gridview.gridview is filled based on the selectedvalue of dropdown,when i select one value(assume 10) in dropdown some values comes into gridview,when i select same value from dr ...

0
votes
1 answers

List<int> to IntPtr in C#

Hi, I have a c++ dll having one structure as follows //*************************// typedef unsigned int NodeID; struct inputNode { NodeID id; BOOLEAN isExit; }; //************************// And here is a method as below / ...

0
votes
1 answers

My mesasgeBox

I was trying to create a custom messageBox, I'm able to get the code working to display the icon, but I'm not able to get the Form displayed near the Right side of the Clock in the taskbar. How should I show the form (form name: <span s ...

0
votes
1 answers

Unable to cast object of type 'System.Int32[]' to type 'System.IConvertible'

Hi all, I am trying to insert data from C# to mysql database using stored procedures. During execution, I am getting this error: Unable to cast object of type 'System.Int32[]' to type 'System.IConvertible' The code I am trying to run is ...

0
votes
1 answers

Windows Form GridView

Hello, I'm working on Windows application i have form1 which contain data gridview to view the content of table from sql database. i've enabled edit, delete in the gridview, but after editing or deleting any row of that table, close the ...

0
votes
1 answers

Is there a way stop carat from blinking in a richtextbox?

^ Also is there a way to change the carat from like this | to this _?

0
votes
1 answers

accessing global variable from a class

Hi, I have made a class called Globals. I am declaring few variables to use them throughout my solution. Following is the class: public class Globals { public static PCOMMSERVERLib.PDeviceClass Turbo; p ...

0
votes
1 answers

how to know what item is selected in a combobox?

Hey I wish to show some messagebox based on the selected item in a combo box usinf if statements, how can i do this? Thanks Muhu

0
votes
1 answers

How to get string data from the staic class?

i have a static class it has some boolean values that i can get outside the class but there is also one string value that i cannot access outside the calss i'm using the same definition method to all here is my code: the static class: ...

0
votes
1 answers

Making a CONTAINER

q12
129

I have this little code I wrote: using System; using System.Windows.Forms; using System.IO.Ports; namespace serialport { public partial class Form1 : Form { private SerialPort port = new SerialPort("COM3" ...

0
votes
1 answers

wpf slider and dispatchertimer

i'm making an mp3 player, and i've got a way to make the timer keep time, and a slider to tick at the same time. i'm doing this: 1. get the length of the mp3, set the maxvalue of it to the slider. 2. start the dispatchertimer to update ...

0
votes
1 answers

LINQ queries

Hi all, I am trying to use a LINQ query in C# but it seems that VS is not recognizing the syntax. I have VS 2005 and .NET 3.5 installed. The following is the code: IEnumerable <db4o> retrieve = from db4o p in db ...

Feedback