Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to access command prompt Pin
obelisk2921-Nov-03 10:35
obelisk2921-Nov-03 10:35 
GeneralWıindows does not shut down! Heelp! Pin
Utku KAYA21-Nov-03 9:00
Utku KAYA21-Nov-03 9:00 
GeneralRe: Wıindows does not shut down! Heelp! Pin
Daniel M. Edwards21-Nov-03 13:13
Daniel M. Edwards21-Nov-03 13:13 
GeneralRe: Wıindows does not shut down! Heelp! Pin
JJF00721-Nov-03 14:24
JJF00721-Nov-03 14:24 
QuestionHow can a service programatically kill itself Pin
Darryl Borden21-Nov-03 6:18
Darryl Borden21-Nov-03 6:18 
AnswerRe: How can a service programatically kill itself Pin
Darryl Borden21-Nov-03 6:48
Darryl Borden21-Nov-03 6:48 
GeneralGrabbing an tab page from a tab control Pin
RB@Emphasys21-Nov-03 4:09
RB@Emphasys21-Nov-03 4:09 
GeneralRe: Grabbing an tab page from a tab control Pin
Heath Stewart21-Nov-03 4:42
protectorHeath Stewart21-Nov-03 4:42 
If you mean the actual tab of the tab page using the coordinates, there's really only about one way. You can't get the tab portion directly, but you get the bounding rect for an individual tab. You could wrap it all in a simple method like so (I use Point to make the example code easier, but you can either create a Point from X and Y or pass them in and make a Point):
private TabPage GetTabPageFromPoint(Point p)
{
  // If the X and Y coordinates from the drag-drop operation are still in
  // screen coordinates, don't forget to translate them:
  p = this.tabControl1.PointToClient(p);
  for (int i=0; i<this.tabControl1.TabPages; i++)
  {
    Rectangle rect = this.tabControl1.GetTabRect(i);
    if (rect.Contains(p)) return this.tabControl1.TabPages[i];
  }
  return null;
}


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Grabbing an tab page from a tab control Pin
RB@Emphasys21-Nov-03 5:29
RB@Emphasys21-Nov-03 5:29 
GeneralRe: Grabbing an tab page from a tab control Pin
Judah Gabriel Himango21-Nov-03 4:45
sponsorJudah Gabriel Himango21-Nov-03 4:45 
GeneralRe: Grabbing an tab page from a tab control Pin
Heath Stewart21-Nov-03 5:37
protectorHeath Stewart21-Nov-03 5:37 
GeneralHowto create a extra Taskbar for a small battery bar Pin
maZeX21-Nov-03 3:27
maZeX21-Nov-03 3:27 
GeneralRe: Howto create a extra Taskbar for a small battery bar Pin
Heath Stewart21-Nov-03 4:26
protectorHeath Stewart21-Nov-03 4:26 
Generalto get the character which mouse pointer focus on Pin
katoya21-Nov-03 3:16
katoya21-Nov-03 3:16 
GeneralHelp with FolderBrowserDialog... Pin
Søren Christensen21-Nov-03 3:16
Søren Christensen21-Nov-03 3:16 
GeneralRe: Help with FolderBrowserDialog... Pin
Heath Stewart21-Nov-03 4:15
protectorHeath Stewart21-Nov-03 4:15 
GeneralCaptureSound a DirectX code sample Pin
thomasa21-Nov-03 3:01
thomasa21-Nov-03 3:01 
GeneralRe: CaptureSound a DirectX code sample Pin
Heath Stewart21-Nov-03 4:22
protectorHeath Stewart21-Nov-03 4:22 
GeneralLets see Heath answer this one then! Pin
Martin Cross20-Nov-03 22:59
Martin Cross20-Nov-03 22:59 
GeneralRe: Lets see Heath answer this one then! Pin
Nick Parker21-Nov-03 3:18
protectorNick Parker21-Nov-03 3:18 
GeneralRe: Lets see Heath answer this one then! Pin
Martin Cross21-Nov-03 3:45
Martin Cross21-Nov-03 3:45 
GeneralRe: Lets see Heath answer this one then! Pin
Heath Stewart21-Nov-03 3:54
protectorHeath Stewart21-Nov-03 3:54 
GeneralRe: Lets see Heath answer this one then! Pin
Martin Cross21-Nov-03 4:31
Martin Cross21-Nov-03 4:31 
QuestionHow to avoid menu on RMouse button Pin
A.Wegierski20-Nov-03 20:38
A.Wegierski20-Nov-03 20:38 
AnswerRe: How to avoid menu on RMouse button Pin
Heath Stewart21-Nov-03 3:58
protectorHeath Stewart21-Nov-03 3:58 

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.