Click here to Skip to main content
15,911,306 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Key event question Pin
Richard_Wolf30-Sep-05 11:32
Richard_Wolf30-Sep-05 11:32 
QuestionExporting a Datagrid to Excel Pin
raysot77730-Sep-05 9:15
raysot77730-Sep-05 9:15 
AnswerRe: Exporting a Datagrid to Excel Pin
Dave Kreskowiak30-Sep-05 9:27
mveDave Kreskowiak30-Sep-05 9:27 
GeneralRe: Exporting a Datagrid to Excel Pin
raysot77730-Sep-05 10:05
raysot77730-Sep-05 10:05 
GeneralRe: Exporting a Datagrid to Excel Pin
Dave Kreskowiak1-Oct-05 3:04
mveDave Kreskowiak1-Oct-05 3:04 
GeneralRe: Exporting a Datagrid to Excel Pin
raysot7771-Oct-05 9:38
raysot7771-Oct-05 9:38 
QuestionRefreshing Reports in Crystal Reports 9 Pin
shoaibnawaz30-Sep-05 8:53
shoaibnawaz30-Sep-05 8:53 
QuestionHow do you calc the absolute location of a control? Pin
watagal30-Sep-05 8:06
watagal30-Sep-05 8:06 
Greetings!

If I have a control in a split-panel, which is in a tab control, which is in a form -- how can I obtain the absolute location of the original (button) control?

Dim o As Control = LogPhotosToDbBtn
Dim x As Integer = LogPhotosToDbBtn.Location.X
Dim y As Integer = LogPhotosToDbBtn.Location.Y
While (o.Parent.Name <> "")
    o = o.Parent
    x += o.Location.X
    y += o.Location.Y
End While

Dim p1 As Point
p1.X = x
p1.Y = y

LogFotosForm.Show()
LogFotosForm.Location = p1


X and Y are never incremented because o.Parent.Name always return "".

Is there a better way (one that actually works) of trying to do this?

Thanks,
Karen

Nooobie to OOP and VB.Net 2005
AnswerRe: How do you calc the absolute location of a control? Pin
rwestgraham30-Sep-05 9:28
rwestgraham30-Sep-05 9:28 
QuestionRe: How do you calc the absolute location of a control? Pin
watagal30-Sep-05 13:39
watagal30-Sep-05 13:39 
AnswerRe: How do you calc the absolute location of a control? Pin
rwestgraham30-Sep-05 15:34
rwestgraham30-Sep-05 15:34 
AnswerRe: How do you calc the absolute location of a control? Pin
watagal1-Oct-05 3:33
watagal1-Oct-05 3:33 
QuestionRe: How do you calc the absolute location of a control? Pin
watagal1-Oct-05 3:54
watagal1-Oct-05 3:54 
AnswerRe: How do you calc the absolute location of a control? Pin
[Marc]1-Oct-05 5:45
[Marc]1-Oct-05 5:45 
QuestionInfinite loop - Resizing Form Pin
watagal30-Sep-05 7:06
watagal30-Sep-05 7:06 
AnswerRe: Infinite loop - Resizing Form Pin
Richard_Wolf30-Sep-05 7:52
Richard_Wolf30-Sep-05 7:52 
AnswerRe: Infinite loop - Resizing Form Pin
Member 219430730-Sep-05 7:55
Member 219430730-Sep-05 7:55 
AnswerRe: Infinite loop - Resizing Form Pin
Dave Kreskowiak30-Sep-05 7:56
mveDave Kreskowiak30-Sep-05 7:56 
AnswerRe: Infinite loop - Resizing Form Pin
watagal30-Sep-05 8:09
watagal30-Sep-05 8:09 
QuestionSet Properties in App.config Pin
Mike0930-Sep-05 6:50
Mike0930-Sep-05 6:50 
AnswerRe: Set Properties in App.config Pin
rwestgraham30-Sep-05 9:36
rwestgraham30-Sep-05 9:36 
QuestionDebug Skill?? Pin
hung_ngole30-Sep-05 3:53
hung_ngole30-Sep-05 3:53 
AnswerRe: Debug Skill?? Pin
Dave Kreskowiak30-Sep-05 7:37
mveDave Kreskowiak30-Sep-05 7:37 
GeneralRe: Debug Skill?? Pin
hung_ngole30-Sep-05 15:03
hung_ngole30-Sep-05 15:03 
GeneralRe: Debug Skill?? Pin
Dave Kreskowiak1-Oct-05 3:14
mveDave Kreskowiak1-Oct-05 3:14 

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.