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

C#

 
AnswerRe: how can i get the last word from the string Pin
Shweta Gulati14-Sep-08 18:26
Shweta Gulati14-Sep-08 18:26 
QuestionSend File As Download After Complete? [modified] Pin
Arcdigital13-Sep-08 15:28
Arcdigital13-Sep-08 15:28 
AnswerRe: Send File As Download After Complete? Pin
Anthony Mushrow13-Sep-08 16:20
professionalAnthony Mushrow13-Sep-08 16:20 
QuestionA Drag-n-Drop question ? Pin
Mohammad Dayyan13-Sep-08 12:29
Mohammad Dayyan13-Sep-08 12:29 
AnswerRe: A Drag-n-Drop question ? Pin
Anthony Mushrow13-Sep-08 16:17
professionalAnthony Mushrow13-Sep-08 16:17 
GeneralRe: A Drag-n-Drop question ? Pin
Mohammad Dayyan14-Sep-08 0:50
Mohammad Dayyan14-Sep-08 0:50 
QuestionInsert Command and access database Pin
Sourie13-Sep-08 7:53
Sourie13-Sep-08 7:53 
AnswerRe: Insert Command and access database Pin
Mbah Dhaim13-Sep-08 8:59
Mbah Dhaim13-Sep-08 8:59 
GeneralRe: Insert Command and access database Pin
Sourie13-Sep-08 17:11
Sourie13-Sep-08 17:11 
GeneralRe: Insert Command and access database Pin
Blue_Boy13-Sep-08 20:13
Blue_Boy13-Sep-08 20:13 
GeneralRe: Insert Command and access database Pin
Sourie13-Sep-08 21:45
Sourie13-Sep-08 21:45 
GeneralRe: Insert Command and access database Pin
Blue_Boy13-Sep-08 23:50
Blue_Boy13-Sep-08 23:50 
GeneralRe: Insert Command and access database Pin
Sourie14-Sep-08 1:18
Sourie14-Sep-08 1:18 
GeneralRe: Insert Command and access database Pin
Blue_Boy14-Sep-08 3:05
Blue_Boy14-Sep-08 3:05 
GeneralRe: Insert Command and access database Pin
Sourie14-Sep-08 4:16
Sourie14-Sep-08 4:16 
GeneralRe: Insert Command and access database Pin
Mbah Dhaim14-Sep-08 4:22
Mbah Dhaim14-Sep-08 4:22 
GeneralRe: Insert Command and access database Pin
Sourie14-Sep-08 4:34
Sourie14-Sep-08 4:34 
GeneralRe: Insert Command and access database Pin
Mbah Dhaim14-Sep-08 4:47
Mbah Dhaim14-Sep-08 4:47 
GeneralRe: Insert Command and access database Pin
Sourie14-Sep-08 8:47
Sourie14-Sep-08 8:47 
GeneralRe: Insert Command and access database Pin
Sourie14-Sep-08 8:53
Sourie14-Sep-08 8:53 
GeneralRe: Insert Command and access database Pin
Mbah Dhaim14-Sep-08 11:56
Mbah Dhaim14-Sep-08 11:56 
GeneralRe: Insert Command and access database Pin
Sourie21-Sep-08 8:49
Sourie21-Sep-08 8:49 
Questioncreating real time graphical line chart Pin
yefeng_law13-Sep-08 6:59
yefeng_law13-Sep-08 6:59 
AnswerRe: creating real time graphical line chart Pin
zafersavas13-Sep-08 8:05
zafersavas13-Sep-08 8:05 
QuestionSetting tooltip location Pin
dan!sh 13-Sep-08 6:16
professional dan!sh 13-Sep-08 6:16 
How can I set the tooltip location?
Right now I am setting a big enough tooltip size and then drawing it at desired location. Following is the code I have written.

private void Form1_Load(object sender, EventArgs e) {
  ToolTip oTooltip = new ToolTip();
  oTooltip.OwnerDraw = true;
  oTooltip.Draw += new DrawToolTipEventHandler(oTooltip_Draw);
  oTooltip.Popup += new PopupEventHandler(oTooltip_Popup);
  oTooltip.SetToolTip(this.button1, "text");

}

void oTooltip_Popup(object sender, PopupEventArgs e) {
    e.ToolTipSize = this.Size;

}

void oTooltip_Draw(object sender, DrawToolTipEventArgs e) {
  Graphics oGx = e.Graphics;
  oGx.Clear(this.BackColor);
  oGx.DrawEllipse(Pens.Black, 20, 20, 20, 20);
  oGx.DrawString("text",this.button1.Font,Brushes.Blue,20,20);

}



Somehow I am not too confident about this approach. Is there a better way to achieve this?

"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry

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.