Click here to Skip to main content
15,891,633 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Interprocess Hooking Pin
dal3k28-Mar-05 1:05
dal3k28-Mar-05 1:05 
GeneralPocket PC and MS ACCESS Pin
Member 53617726-Mar-05 7:06
Member 53617726-Mar-05 7:06 
GeneralError while trying to run project Pin
piripitsis25-Mar-05 14:07
piripitsis25-Mar-05 14:07 
GeneralRe: Error while trying to run project Pin
Anonymous29-Mar-05 15:48
Anonymous29-Mar-05 15:48 
GeneralRe: Error while trying to run project Pin
piripitsis29-Mar-05 16:34
piripitsis29-Mar-05 16:34 
GeneralVisual Studio 6.0 to &.1 (.Net) Pin
Grahamfff25-Mar-05 9:29
Grahamfff25-Mar-05 9:29 
GeneralRe: Visual Studio 6.0 to &.1 (.Net) Pin
Anonymous25-Mar-05 11:35
Anonymous25-Mar-05 11:35 
GeneralAccessing parent control properties Pin
kensai25-Mar-05 6:53
kensai25-Mar-05 6:53 
I have a user control. I'm opening a Form within this control. I have a Form1 and I use this code to open it:

private void btnShowForm1_Click(object sender, System.EventArgs e)
{
Form1 f = new Form1();
f.Showdialog(this);
}

The problem is, I need to access this parent control properties such Top and Left values in the opened form window but I couldn't do it. I tried to use this.Parent, this.ParentForm, this.Owner and this.GetContainerControl().ActiveControl in the form but athey all gave me "Object reference not set to an instance of an object." error.

What should I do?
Generalvisual studio.net Pin
aditi171023-Mar-05 22:27
aditi171023-Mar-05 22:27 
GeneralApplication Domain Pin
jinnyb23-Mar-05 1:00
jinnyb23-Mar-05 1:00 
GeneralRe: Application Domain Pin
_J_23-Mar-05 1:36
_J_23-Mar-05 1:36 
GeneralRe: Application Domain Pin
Robert Rohde23-Mar-05 20:05
Robert Rohde23-Mar-05 20:05 
GeneralfrmRussia Pin
Anonymous24-Mar-05 3:37
Anonymous24-Mar-05 3:37 
GeneralRe: Application Domain Pin
Kodanda Pani23-Mar-05 19:46
Kodanda Pani23-Mar-05 19:46 
GeneralRe: Application Domain Pin
Colin Angus Mackay24-Mar-05 4:58
Colin Angus Mackay24-Mar-05 4:58 
GeneralEnterprise Library Pin
_J_23-Mar-05 0:32
_J_23-Mar-05 0:32 
GeneralRe: Enterprise Library Pin
Anonymous24-Mar-05 3:39
Anonymous24-Mar-05 3:39 
GeneralRe: Enterprise Library Pin
Colin Angus Mackay24-Mar-05 5:39
Colin Angus Mackay24-Mar-05 5:39 
GeneralDLL HELL Pin
jinnyb22-Mar-05 18:02
jinnyb22-Mar-05 18:02 
GeneralRe: DLL HELL Pin
Colin Angus Mackay22-Mar-05 20:46
Colin Angus Mackay22-Mar-05 20:46 
Generalmanaged code Pin
satishrg22-Mar-05 14:51
satishrg22-Mar-05 14:51 
GeneralRe: managed code Pin
Christian Graus22-Mar-05 15:32
protectorChristian Graus22-Mar-05 15:32 
GeneralRe: managed code Pin
satishrg22-Mar-05 15:36
satishrg22-Mar-05 15:36 
GeneralRe: managed code Pin
Christian Graus22-Mar-05 16:45
protectorChristian Graus22-Mar-05 16:45 
GeneralUsing IE Web Browser Control in .NET Pin
dxben22-Mar-05 4:24
dxben22-Mar-05 4:24 

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.