Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
QuestionBound datagridvewview column ordering confusion Pin
Matthew Cuba3-Oct-07 7:39
Matthew Cuba3-Oct-07 7:39 
AnswerRe: Bound datagridvewview column ordering confusion Pin
Adam.m.Nelson3-Oct-07 8:03
Adam.m.Nelson3-Oct-07 8:03 
QuestionbindingNavigatorDeleteItem_Click Pin
bluegrassman3-Oct-07 7:11
bluegrassman3-Oct-07 7:11 
QuestionMDI Pin
sajid.salim.khan3-Oct-07 6:51
sajid.salim.khan3-Oct-07 6:51 
QuestionC# howto CyclePort Usb device ? Pin
etaofodete3-Oct-07 6:23
etaofodete3-Oct-07 6:23 
AnswerRe: C# howto CyclePort Usb device ? Pin
VirtualVoid.NET3-Oct-07 23:42
VirtualVoid.NET3-Oct-07 23:42 
QuestionSaving an self painted image from a pictureBox Pin
MyPiano3-Oct-07 6:08
MyPiano3-Oct-07 6:08 
AnswerRe: Saving an self painted image from a pictureBox Pin
Ajay.k_Singh3-Oct-07 7:02
Ajay.k_Singh3-Oct-07 7:02 
Drawing anything in a Bitmap using a Graphics object is very easy. You will need to first create one bitmap object and use it for initializing graphics object.

Once you get one graphics object created using FromImage method, you may draw anything in this graphics object and it will be drawn on bitmap also.

At last you may save the bitmap using Save method of bitmap object.

Such as-

----------Start Code----------------

Bitmap a = new Bitmap(400, 300);

Graphics g = Graphics.FromImage(a);

g.DrawLine(Pens.AliceBlue, 0, 0, 100, 100);

a.Save(“C:\MyFile.jpg”);

--------------End Code--------------


I hope this helpsSmile | :) .

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

GeneralRe: Saving an self painted image from a pictureBox Pin
MyPiano5-Oct-07 2:58
MyPiano5-Oct-07 2:58 
QuestionDefault script in dot net is? Pin
GunaChinna3-Oct-07 5:09
GunaChinna3-Oct-07 5:09 
AnswerRe: Default script in dot net is? Pin
Pete O'Hanlon3-Oct-07 5:19
mvePete O'Hanlon3-Oct-07 5:19 
AnswerRe: Default script in dot net is? Pin
DotNetXenon3-Oct-07 8:24
DotNetXenon3-Oct-07 8:24 
AnswerRe: Default script in dot net is? Pin
Abhijit Jana4-Oct-07 4:44
professionalAbhijit Jana4-Oct-07 4:44 
QuestionGet any specific value from this xml [modified] Pin
Bummer83-Oct-07 4:43
Bummer83-Oct-07 4:43 
AnswerRe: Get any specific value from this xml Pin
pmarfleet3-Oct-07 4:49
pmarfleet3-Oct-07 4:49 
GeneralRe: Get any specific value from this xml Pin
Bummer83-Oct-07 4:59
Bummer83-Oct-07 4:59 
GeneralRe: Get any specific value from this xml Pin
Dave Kreskowiak3-Oct-07 5:30
mveDave Kreskowiak3-Oct-07 5:30 
GeneralRe: Get any specific value from this xml Pin
Bummer83-Oct-07 23:27
Bummer83-Oct-07 23:27 
QuestionHow To Get the user name while using FileSystemWatcher in C# Pin
Abhijit Jana3-Oct-07 3:41
professionalAbhijit Jana3-Oct-07 3:41 
AnswerRe: How To Get the user name while using FileSystemWatcher in C# Pin
Dave Kreskowiak3-Oct-07 5:29
mveDave Kreskowiak3-Oct-07 5:29 
GeneralRe: How To Get the user name while using FileSystemWatcher in C# Pin
Abhijit Jana5-Oct-07 1:28
professionalAbhijit Jana5-Oct-07 1:28 
GeneralRe: How To Get the user name while using FileSystemWatcher in C# Pin
Dave Kreskowiak5-Oct-07 1:42
mveDave Kreskowiak5-Oct-07 1:42 
QuestionHide Command window Pin
pritesh_patel3-Oct-07 3:34
pritesh_patel3-Oct-07 3:34 
AnswerRe: Hide Command window Pin
Abhijit Jana3-Oct-07 3:55
professionalAbhijit Jana3-Oct-07 3:55 
GeneralRe: Hide Command window Pin
pritesh_patel3-Oct-07 22:21
pritesh_patel3-Oct-07 22:21 

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.