[ADVANCED-DOTNET] PrintingPermission Documentation is very poor

2002-07-01 Thread Jeff Roberts
I am trying to make my assembly "security aware" and have found that the Microsoft documentation is poor in regard to many of the .NET permission types. There are 4 types of printing permissions "AllPrinting", "DefaultPrinting", "NoPrinting", and "SafePrinting". I can understand what AllPrint

[DOTNET] .NET Inadequacies

2002-06-27 Thread Jeff Roberts
mputer security zone. That's all I have ! It is not much considering the amount of c++ code I have ported ! If anyone can tell me how to solve these issues in managed code that will run in the Internet security zone I would be a very very happy camper ! jeff roberts You can read messages fro

[ADVANCED-DOTNET] Environment.ExpandEnvironmentVariables throws a security exception

2002-06-26 Thread Jeff Roberts
why would a Environment.ExpandEnvironmentVariables call throw an exception while being executed out of the Intranet security zone ? The exception was "Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKe

[DOTNET] Internet and Intranet security zone question

2002-06-26 Thread Jeff Roberts
Can someone tell me what override's are allowed for a Windows Forms Control in the Internet and Intranet security zones ? Where is this documented ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.dev

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks Tom. Does your book go into web deployment in detail ? Can you give me a link to where I can buy it ? Thanks again You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Yes I have and I tried it with your example and I get an exception when I try to a BinaryReader.ReadByte() call ! That is why I asked if there was a BinaryStreamReader class . thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks again ! I need to read a "binary" file into a byte array, can I do this with the StreamReader class ? I don't see a BinaryStreamReader Class ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Does anyone know if I can read a text file from a web server with the FileStream class ? For example, if my .net application was launched from www.ws.com\myapp.exe, could I read a file from www.ws.com by the name of mytextfile with the following code ? string Dir = AppDomain.CurrentDomain.Base

[DOTNET] Security Zones

2002-06-25 Thread Jeff Roberts
I have a question about security zones (MyComputer, Internet, Intranet, etc) I am striving to create a 100% managed application that may be executed in a partially trusted environment "zone". I have been reading up on what rights my application has when started from the various zones. I have

Re: [DOTNET] .NET Zero Deployment

2002-06-24 Thread Jeff Roberts
Steve, Thanks ! I have also found some good information in the Last 3 MSDN Magazine which talks about Deployment, isolated storage, and security You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] .NET Zero Deployment

2002-06-24 Thread Jeff Roberts
Is anyone familiar with the "..NET Zero Deployment" topic ? This is where sending your browser to http:\\servername\foo.exe causes the Windows Forms application (and it's assemblies) to be downloaded to the PC and started. My question is what are the requirements for the Browser (Do I need IE

[DOTNET] web deployment

2002-06-24 Thread Jeff Roberts
Can someone direct me to some documentation on web deployment ? I have a .net application with several .net dll's that I would like to deploy from a browser. Is web deployment what I am looking for ? I want to avoid the whole setup.exe process. How does the CLR get installed during web depl

[DOTNET] Any way to add tooltip to a menu item ?

2002-06-18 Thread Jeff Roberts
Is there any way to add a tooltip to a menu item so that when the operator drops down a menu and moves the mouse over a particular menu item a tooltip is displayed ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at ht

Re: [DOTNET] NotifyIcon and WinForms

2002-06-12 Thread Jeff Roberts
Yes I have tried that. That always returns my window to a non-maximized window state. If I minimized the window from a maximized state, then I want it to restore to a maximized state ! thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other Deve

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
Bill, Thanks ! that works. I am surprised there is not an easier way than that ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
Bill, Thanks, but that always makes my window normal size. If it was previously maximized, then I want it to restore to Maximized ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Jeff Roberts
Thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Jeff Roberts
I noticed that when I search the archives, it says that the list will be retired on 7/1/02. What does this mean ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
When my window is minimized, I want to restore the window to the previous size and location from within my application. In WIN32 I called ShowWindow(SW_RESTORE); Can someone tell me how to do this in c# ? thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or sub

Re: [DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Jeff Roberts
I do use Show and Hide, but when I call Show, it only Shows my window in the task bar and does not restore it ! When a user minimizes my window, I enable the NotifyIcon & disable the ShowInTaskbar property of my main form. This displays the icon in the task bar. When a user clicks on the ico

[DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Jeff Roberts
I have a WinForms application that minimizes into the System tray via a NotifyIcon class. I want to restore my window when the user clicks on the icon in the system tray back to the size and location it was before it was minimized. I don't see any Winforms method to restore the window like th

[DOTNET] Can someone tell me how to put my application in the system tray ?

2002-06-10 Thread Jeff Roberts
How can I get my application to appear in the system tray. When someone minimizes my window, I want the window to display a small icon in the system tray. Has anyone done this in .NET c# ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other

Re: [DOTNET] Desktop Language

2002-06-10 Thread Jeff Roberts
thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Desktop Language

2002-06-10 Thread Jeff Roberts
What is a CurrentUICulture ? How do I use a CurrentUICulture ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Does Netscape support .NET WebForms ?

2002-06-07 Thread Jeff Roberts
Does anyone know if the Netscape explorer supports .NET WebForms ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] TcpClient SSL Support

2002-06-06 Thread Jeff Roberts
Does TcpClient support SSL. I.e. Can you use TcpClient to connect to a secure server ? thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Why don't Buttons have a ToolTip property ?

2002-06-04 Thread Jeff Roberts
Why don't the standard push buttons have a tooltip property ? This would be a nice feature to have ! No ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] try catch question

2002-06-04 Thread Jeff Roberts
thats simple enough ! thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] try catch question

2002-06-04 Thread Jeff Roberts
Is it possible to catch more than 1 type of exception ? I am calling a method that can throw different types of exceptions, how do I catch them all ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] TcpClient Question

2002-06-03 Thread Jeff Roberts
When I call the TcpClient.Connect method, the Window network settings window pops up and asks me what network to use. How can I turn this off ? thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-30 Thread Jeff Roberts
Bryan, Did you get this ftp source to compile ? I unzipped both the assembly project and the demo into the same folder, Opened up the assembly project and tried to build it. I got the following errors: Any Ideas ? E:\JEFF\NET\ftp2\Documents and Settings\alexkwok\My Documents\Visual Studio

[DOTNET] Fonts

2002-05-30 Thread Jeff Roberts
Is there a simple way to determine if a specific Font is installed from C# ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-30 Thread Jeff Roberts
Where do I find Xceedsoft's Ultimate Suite ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Do Enum's take up memory ?

2002-05-29 Thread Jeff Roberts
Does an enum take up memory ? public enum XFERDefines { XFER_IDLE =0, //no file transfer in progress SENDING_FILE =1, //sending a file now } You can read messages from the DOTNET archive, unsubscri

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
Chris, Until today, I did not even know that System.Windows.Forms.Timer existed. I needed a timer, so I looked in System and saw System.Timer. I assumed that was the class to use for a timer. How many other people will fall into this trap ? The other bitch I have is that the System.Window

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
I created the form from my main form and called Show() from the Timer event. By the way I have a lot of code that uses the GUI from a System.Timer event. When I get the event, I create a Graphics object for the from and draw it without any problems ! jeff You can read messages from the DOTNE

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
Never returning from a Show() method would seem to be an exception in someones code to me ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
Mathew, It sure would have saved me a lot of time if an exception had been thrown ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
Ian, Thanks, I'll try it. Shouldn't the Show() throw an exception ? jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
Ian, I am using a "System.Timers.Timer" ! thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Modeless WinForms Bug

2002-05-29 Thread Jeff Roberts
I have a modeless form that works perfect when shown from a menu click event, but if I try to show it from a timer event, the Show() method never returns. Has anyone seen this, or know a way around it ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or sub

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-28 Thread Jeff Roberts
Patrick, Do you know if any of the links for frp are better than the others ? thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Closing Event question

2002-05-24 Thread Jeff Roberts
yes setting it to true stops the form from closing ! thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Closing Event question

2002-05-24 Thread Jeff Roberts
When my Windows Form is about to close because the X on the titlebar was clicked, then my Closing event gets called with a CancelEventArgs object. How can I stop the form from closing at this point ? If I set the CancelEventArgs.cancel property to false, then the form still closes ! thanks

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Jeff Roberts
Sean, I don't want to add 4 hours to Now, I want to add 4 hours to an older DateTime ! Thanks, jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Jeff Roberts
I am trying to add to the hours of a DateTime object and it does not seam to work: DateTime t = Convert.ToDateTime("11/1/2002"); string s = t.ToString(); //this yields a time of 12:00 AM t.AddHours(4); s = t.ToString(); //still yields a time of 12:00 AM Why doesn't the H

Re: [DOTNET] VS.NET on XP

2002-04-30 Thread Jeff Roberts
I get that problem all the time. I just right click on task bar button and close (end process) it ! It's a pain ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] ProgressBar Question

2002-04-30 Thread Jeff Roberts
Is there any way to have text in a ProgressBar. i.e. Have a ProgressBar that also contains the text "Operation x% Complete" ? Thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] BinaryReader Question

2002-04-17 Thread Jeff Roberts
Do you know what happens when I try to read 100 bytes and there are only 50 bytes left to read ? Does an exception get thrown, or do I get a return code of 50 back ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discu

[DOTNET] BinaryReader Question

2002-04-17 Thread Jeff Roberts
I want to read X bytes from a file with BinaryReader into an offset within a Byte array. Can this be done, or do I have to move the data after reading it ? Ex: private BinaryReader reader; private byte[] Buffer = new Byte[512]; I don't see any BinaryReader methods that allow me to read the dat

Re: [DOTNET] Saving application settings...

2002-04-16 Thread Jeff Roberts
what would be the best way to store them in a database over http/https ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.