|
Well, finish reading the link I posted yesterday and then go to Administering Security Policy[^] for a hint on how to add the correct permissions to the security zone that your app is going to be running under, since it's coming from a network share.
You can scrap the permissions code you posted. It won't work because your app can't request, and get, permissions that are denied by the security policy for the zone it's running under.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can I add some custom controls I have created to a form at runtime ?
When the user clicks on a button, I want to add a custom panel object to the form.
I have tried something like this :
<br />
pnlTypeDeCiment = New pnlCementTypeFixed<br />
pnlTypeDeCiment.Parent() = Me.Parent<br />
pnlTypeDeCiment.SetBounds(100, 50, pnlTypeDeCiment.Width, pnlTypeDeCiment.Height)<br />
pnlTypeDeCiment.Visible() = True<br />
But without success.
|
|
|
|
|
Hi Leblanc,
try adding the panel to your forms Controls collection. This should work:
me.controls.add(pnlTypeDeCiment)
hope this helps.
-jim
|
|
|
|
|
WOuld it be feasable to instead of attempting to dynamically add controls, to add the panel at design time and then show/hide (.Visible) when necessary?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
This was my first idea, but for data loading reasons I had to scrap it.
|
|
|
|
|
Data loading reasons....what might they be? Couldn't you do something like:
<br />
On ButtonClick()<br />
<br />
GetData<br />
AddToPanel<br />
ShowPanel<br />
<br />
Or am I missing the reason completely lol!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
The panels contain data grids which are bounded to data on an external database. With the 3rd party library which we are using when you bound an object like this, if retreives stuff from the db automaticly which I don't want to do everytime for bandwidth reasons.
I tought that by only creating the panels when they are used I would not create a panel the user never uses and thus save bandwidth.
|
|
|
|
|
This is actually a Visual Studio.NET problem. When I write a Turkish character in the source code files and then close/open visual studio, the IDE changes my Turkish character to another character which is not what I want (for example when I write "Uygulaması", it becomes "Uygulamasi"). I save the source file with Turkish-ISO encoding but the problem persists.
Did you encountered a problem like this before?
|
|
|
|
|
Add the following meta tag, save and then try whether it works or not.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
|
|
|
|
|
Hello,
I want to know that how to implement "SKINS" in VB.NET.
Kindly help me
EsHbAn BaHaDuR
|
|
|
|
|
You'll be searching for "Nonrectangular forms" on the web, but, as a head start...
Irregular Forms and Region Clipping[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi friends
i've got stuck about allocating one webpage into a specific frame, i do not know what system commands could be used to do so. when a user click on a link in one frame, that website should appear in other frame.
for example: i have a link button named Calendar, when the user click on this button, the calendar interface would display in the other frame.
could anyone help me please?
thanks in advance
|
|
|
|
|
Your question would be better handled in the ASP.NET Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
Kindly help me ???
How can i read the (*.rtf) Rich Text Format
file through FILE HANDLING in VB.NET.
I want to use (RTF) extension so that file cannot lose its formatting i.e (bold, italics, font size etc).
plz help me
Regards,
Eshban
EsHbAn BaHaDuR
|
|
|
|
|
|
Im using a console application because the program im working on is for automation purposes. Only problem is, i can figure out how to end the program. In a forms based program is is ME/MYBASE/THIS(C#).Close (because the program is a class) in the console its none of these. Ive tried Wrapping the API call of FreeConsole from Kernel.lib and it works only it doesnt stop the undrlying process just the window. Is there an easy way to do that that i may be overlooking?
Thanks Very much for the help.
G. R. Martin
|
|
|
|
|
|
yeah i know but i need to to prematurely quit... say on error... and im 4 functions down... and it cant just send me to an error dialog... has to print to a screen ... wait for any keypress and then terminate like a good dos program does...
|
|
|
|
|
I dont' know if this will work for you (I don't get into console apps very much), but you could try Application.Exit() .
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No it doesnt... if this were C# Forms or VB forms that might work, however... a console app is a module, it hasnt got a class name or functions behind it beside what it builds... id need to say get a handle of the running thread, and tell that thread to terminate...
im just not sure as to how i should do that.
Ive wrapped a few of the console APIs... FreeConsole onle destroys the window handle to the console itself... it doesnt terminate the process behind it...
|
|
|
|
|
Oh well, it was just a quick thought...
In that case, I'd implement a scheme as Colin suggests. Be sure it is a custom defined Exception and throw that when you need to. Make sure that the only Exception Handler that can handle that exception is the one in Main. All other exception handlers must not handle this exception if they do, must catch, then re-throw the exception to send it up the call chain back to Main.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Then throw an exception.
Create an exception class that is used for nothing else than premature exit. When you need to exit early throw the exception. Wrap everything in your main in a try/catch block and catch this specific exception. The catch handler can then process the exit in a considerate manner.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Is this what you are looking for?
System.Environment.Exit(0)
Jason
|
|
|
|
|
Yes... Thank you... sometimes i wonder if they hide things on purpose...
But thank you so much
|
|
|
|
|
How can you search through a data set for a specific value?
search dataset in column 1 for value1
search dataset in column 2 for value2
search dataset in column 1 and 2 for value1 and value2
I'm sure this is possible but not sure where to start?
Thanks,
Beginner in ASP.Net and VB.Net
|
|
|
|