G
Guest
Hi
I'm new to C# and .Net so be nice
I'm going throught a steep learing curve right now and finding it really
hard when after several hours of coding is running into security issue when
trying the new application on a client machine. (I'm a domain admin on the
client/network)
and apparantly the problem is in the very first lines of code in my
form_Load event.
Here a snippet of the part causing a security issue:
private void MDI_Load(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Normal)
{
this.Left =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "left", 50);
this.Top =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "top", 50);
this.Width =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "width", (int)
(Screen.PrimaryScreen.Bounds.Width * 0.8));
this.Height =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "height", (int)
(Screen.PrimaryScreen.Bounds.Height * 0.8));
}
Reading through the error information gives me the feeling I have to
configure all users/machines for using each and every part of the
environment, registry, files / folders, databases, several parts of .Net
framework. aso.....
Is this really true !?!?!??!?!
Will it be a really big job to make a client machine to accept the
application??
Kjell
I'm new to C# and .Net so be nice
I'm going throught a steep learing curve right now and finding it really
hard when after several hours of coding is running into security issue when
trying the new application on a client machine. (I'm a domain admin on the
client/network)
and apparantly the problem is in the very first lines of code in my
form_Load event.
Here a snippet of the part causing a security issue:
private void MDI_Load(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Normal)
{
this.Left =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "left", 50);
this.Top =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "top", 50);
this.Width =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "width", (int)
(Screen.PrimaryScreen.Bounds.Width * 0.8));
this.Height =
(int)Application.UserAppDataRegistry.GetValue(this.Name + "height", (int)
(Screen.PrimaryScreen.Bounds.Height * 0.8));
}
Reading through the error information gives me the feeling I have to
configure all users/machines for using each and every part of the
environment, registry, files / folders, databases, several parts of .Net
framework. aso.....
Is this really true !?!?!??!?!
Will it be a really big job to make a client machine to accept the
application??
Kjell