Click here to Skip to main content
16,014,662 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Secure my assembly Pin
Paul Conrad19-Jul-06 14:49
professionalPaul Conrad19-Jul-06 14:49 
QuestionMSVCR80D.DLL Not Found Problem Pin
bosfan6-Jul-06 21:52
bosfan6-Jul-06 21:52 
AnswerRe: MSVCR80D.DLL Not Found Problem Pin
Jun Du7-Jul-06 7:09
Jun Du7-Jul-06 7:09 
QuestionRetrieving Exchange Server Global Address List from VB 2005 Pin
Keith Malwitz6-Jul-06 20:44
Keith Malwitz6-Jul-06 20:44 
QuestionProblem with Drawing Pin
Nagaraju_Focus6-Jul-06 18:51
Nagaraju_Focus6-Jul-06 18:51 
AnswerRe: Problem with Drawing Pin
alexey N6-Jul-06 21:14
alexey N6-Jul-06 21:14 
QuestionRe: Problem with Drawing Pin
Nagaraju_Focus7-Jul-06 0:17
Nagaraju_Focus7-Jul-06 0:17 
AnswerRe: Problem with Drawing [modified] Pin
Dave Kreskowiak7-Jul-06 4:30
mveDave Kreskowiak7-Jul-06 4:30 
Nagaraju_Focus wrote:
Drawing::Graphics ^gr;
gr->DrawRectangle(gcnew Pen(Color::Black),90,50,60,60);


The error was pretty self explanitory. You created a variable to hold an instance of a Graphics object, but never instantiated one.

You have to get the Graphics object from the control that your going to draw on, like a Panel or Picturebox, or even the Form. Check out the documention of the CreateGraphics() method of the object you want to draw on.

Oh! Don't forget to delete the graphics object you created when you're done with it!


Dave Kreskowiak
Microsoft MVP - Visual Basic



-- modified at 10:31 Friday 7th July, 2006
GeneralRe: Problem with Drawing Pin
Nagaraju_Focus7-Jul-06 18:46
Nagaraju_Focus7-Jul-06 18:46 
QuestionWhere does the .config file reside [modified] Pin
nicknotyet6-Jul-06 11:48
nicknotyet6-Jul-06 11:48 
AnswerRe: Where does the .config file reside Pin
mr_lasseter6-Jul-06 16:34
mr_lasseter6-Jul-06 16:34 
GeneralRe: Where does the .config file reside Pin
nicknotyet7-Jul-06 8:30
nicknotyet7-Jul-06 8:30 
QuestionI love Debug Spew, but I need help containing it. Pin
nicknotyet6-Jul-06 11:03
nicknotyet6-Jul-06 11:03 
AnswerRe: I love Debug Spew, but I need help containing it. Pin
Josh Smith7-Jul-06 4:56
Josh Smith7-Jul-06 4:56 
QuestionListBox using external datastructure Pin
invictus36-Jul-06 9:57
invictus36-Jul-06 9:57 
AnswerRe: ListBox using external datastructure Pin
Josh Smith6-Jul-06 10:08
Josh Smith6-Jul-06 10:08 
GeneralRe: ListBox using external datastructure Pin
invictus36-Jul-06 11:02
invictus36-Jul-06 11:02 
GeneralRe: ListBox using external datastructure Pin
Josh Smith6-Jul-06 18:06
Josh Smith6-Jul-06 18:06 
GeneralRe: ListBox using external datastructure Pin
invictus37-Jul-06 2:03
invictus37-Jul-06 2:03 
QuestionNaming a exe in task manager Pin
Arun Kumar Babu5-Jul-06 22:40
Arun Kumar Babu5-Jul-06 22:40 
AnswerRe: Naming a exe in task manager Pin
Dave Kreskowiak6-Jul-06 2:30
mveDave Kreskowiak6-Jul-06 2:30 
AnswerRe: Naming a exe in task manager Pin
Paul Conrad6-Jul-06 23:39
professionalPaul Conrad6-Jul-06 23:39 
QuestionTypeCodeDomSerializer Pin
Kai Apfelbaum5-Jul-06 20:15
Kai Apfelbaum5-Jul-06 20:15 
QuestionEncrypting proxy!? Pin
aloaiza5-Jul-06 6:29
aloaiza5-Jul-06 6:29 
QuestionWPF, XPS, Printing Pin
GerhardKreuzer5-Jul-06 4:29
GerhardKreuzer5-Jul-06 4:29 

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.