blah blah blah is here! blah blah » Close

0
votes
1 answers

Unhandled Exception, please help

Hi all, I have this Message "Unhandled Exception" in OleDb. Everything is fine if I read from databse and print. But after printing I updated my Database (delete that object for example) I got the above error and since it is n ...

0
votes
1 answers

WebBrowser Control and OleDb conflict, need help!

Hi all, My program is using MS Access to print some values inside. I put a WebBrowser control to use web as template, and I draw my values on. I use OleDb for the Access. Everything is fine until I print the Web content using axWebBro ...

0
votes
1 answers

Delegate problem, please help!

Hi experts! I have a problem using delegate to call methods from another class. Let say I have a class Plot which plots any function programmed by user. The function looks like public double fx (double X) { return X*X + X; //f ...

0
votes
1 answers

Unsafe code problem

I have a method that must use unsafe code to run. private unsafe void myMethod() when I compile (in Windows Application) there's an error say that "Unsafe code may only appear if compiling with /unsafe" How can I fix the error? ...

0
votes
1 answers

string format in C#

Hi, I have a newbie problem of using IFormatProvider If I have a number (says Result) to write to a text file, or textbox, I want this number to take a certain spaces (says 5) so that the numbers can be aligned in a width of 5. And th ...

0
votes
1 answers

Passing Data between programs

Hi, I am writing a program that allows users to program on it. I ask C# compiler to compile the users' input for me, and I want to get the result after compiled. Does anyone have any idea on passing data between these 2 programs? I am u ...

0
votes
1 answers

Script in C#

Hi, Can anyone help me with how to use Script in C# Application? In VB, there's an MS control called ScriptControl to do this. What about in C#, is there something equivalent to it? this is my simple example that I am trying to do: Text ...

0
votes
1 answers

Change mouse cursor

Can I replace Mouse Cursor by an icon, the Cursors class only contain some Windows default values?

0
votes
1 answers

TextBox problem, please help

Hi, Can anyone help me with this small problem: I am trying to make a command windows by a multi-line textbox, everytime I hit ENTER, I'll get the command line, process it, and create a new line. Everything goes fine except when I have ...

0
votes
1 answers

Registry in .NET

Hi, I want to register a dll in C#, which is equal to the command "regsvr32" in Command Prompt. What should I do? Does the .NET registry help? Regards,

0
votes
1 answers

Byte copy

Hi, Can you help me with this problem I have a 72 byte struct ------------------------------------------- struct myStruct { int Var1; int Var2; .... (18 Variables) } myStruct _struct; --------------------------------- ...

0
votes
1 answers

IO Stream vs Comm Port

Hi all, Has anyone use IO Stream to read/write to the Comm Port in C#? I have heard that this can be done by stream, but dont know how to do it. Can you suggest me an idea how to use it? Regards,

0
votes
1 answers

Help!

Dear all, I have a picture box on which I draw a lot of things drawBox.CreateGraphics().Draw..... I am trying to draw the select rectangle, when mouse is down I have 1 point, when mouse is moving, I am suppose to draw the rectangle ac ...

0
votes
1 answers

Main form's name

Hi everyone, A standard progrogram running with Application.Run(new Form1()); then, it created a new form of Form1 type without name and run it as the main form. If I have Form2, Form3 ... and in the main form, I create Form2 _form2 = n ...

0
votes
1 answers

COM port

Hi, Can anyone suggest me how do I get the list of the COM ports available on the machine (including USB, IR...). I have to connect to a hardware but also have to ask users which port they want to use, I 'll read/write from that port. T ...

Feedback