Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Block list view repaint? Pin
Luis Alonso Ramos28-Mar-06 7:14
Luis Alonso Ramos28-Mar-06 7:14 
QuestionHow can I get size of a baloon tooltip? Pin
Lexa198328-Mar-06 2:34
Lexa198328-Mar-06 2:34 
QuestionMedia File Cutting and Trimming Pin
shreyash_parihar28-Mar-06 2:07
shreyash_parihar28-Mar-06 2:07 
QuestionHow to block popup window in webbrowser Pin
Dima Filipiuk28-Mar-06 1:06
Dima Filipiuk28-Mar-06 1:06 
GeneralRe: How to block popup window in webbrowser Pin
Guffa28-Mar-06 8:10
Guffa28-Mar-06 8:10 
QuestionDataGridViewColumn with possibility to select a few Items Pin
hpetriffer28-Mar-06 1:05
hpetriffer28-Mar-06 1:05 
QuestionAccessing cube data in datagrid Pin
arobind28-Mar-06 0:55
arobind28-Mar-06 0:55 
Questionhow to draw a shape in picturebox ? Pin
hdv21227-Mar-06 23:57
hdv21227-Mar-06 23:57 
hi i want to draw a shape (for example : line) in my form but i can't get result and nothing occured in my form and my code is :
private void Form1_Load(object sender, System.EventArgs e)

{
Graphics g = pe.Graphics;
Pen mypen = new Pen(System.Drawing.Color.Violet,2);
g.DrawLine(mypen,35,35,150,100);
}
and when i override OnPaint event of my form it is done and line create in my form.
my problem is that i can draw a shape only in OnPaint event and not i other events (for example : Form1_Load )

how to do that and how to draw shapes in picturebox..
please explain fully because i am beginner and i don't anything in web that explain fully.
thanks

AnswerRe: how to draw a shape in picturebox ? Pin
AB777128-Mar-06 1:33
AB777128-Mar-06 1:33 
GeneralRe: how to draw a shape in picturebox ? Pin
hdv21228-Mar-06 2:14
hdv21228-Mar-06 2:14 
GeneralRe: how to draw a shape in picturebox ? Pin
mav.northwind28-Mar-06 6:19
mav.northwind28-Mar-06 6:19 
QuestionPutting a specific row first in a datagridview Pin
Chals27-Mar-06 23:07
Chals27-Mar-06 23:07 
Questionint [,,] myArray = new int [,,] {{1,2,3}}; Pin
Ahmad Mahmoud [candseeme]27-Mar-06 23:02
Ahmad Mahmoud [candseeme]27-Mar-06 23:02 
AnswerRe: int [,,] myArray = new int [,,] {{1,2,3}}; Pin
Stefan Troschuetz27-Mar-06 23:12
Stefan Troschuetz27-Mar-06 23:12 
GeneralRe: int [,,] myArray = new int [,,] {{1,2,3}}; Pin
Ahmad Mahmoud [candseeme]28-Mar-06 0:04
Ahmad Mahmoud [candseeme]28-Mar-06 0:04 
AnswerRe: int [,,] myArray = new int [,,] {{1,2,3}}; Pin
Guffa28-Mar-06 0:55
Guffa28-Mar-06 0:55 
GeneralRe: int [,,] myArray = new int [,,] {{1,2,3}}; Pin
Ahmad Mahmoud [candseeme]28-Mar-06 1:28
Ahmad Mahmoud [candseeme]28-Mar-06 1:28 
AnswerRe: int [,,] myArray = new int [,,] {{1,2,3}}; Pin
Guffa28-Mar-06 6:44
Guffa28-Mar-06 6:44 
QuestionHow can I import the Data from .CSV file by DTS Package Pin
peeyush_engg27-Mar-06 22:50
peeyush_engg27-Mar-06 22:50 
QuestionObject = Object Pin
Sasuko27-Mar-06 22:48
Sasuko27-Mar-06 22:48 
AnswerRe: Object = Object Pin
Tristan Rhodes27-Mar-06 23:01
Tristan Rhodes27-Mar-06 23:01 
GeneralRe: Object = Object Pin
Sasuko28-Mar-06 1:53
Sasuko28-Mar-06 1:53 
QuestionQuestions About AppDomains Pin
Tristan Rhodes27-Mar-06 22:32
Tristan Rhodes27-Mar-06 22:32 
Questionhow to close w3wp.exe dialog Box programmatically ? Pin
Kamal.Afridi27-Mar-06 22:15
Kamal.Afridi27-Mar-06 22:15 
AnswerRe: how to close w3wp.exe dialog Box programmatically ? Pin
Dave Kreskowiak28-Mar-06 5:34
mveDave Kreskowiak28-Mar-06 5:34 

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.