Multimobile Development: Building Applications for any Smartphone
System.Environment Class
Information   Base Types   Related Resources

Provides information about, and means to manipulate, the current environment and platform. This class cannot be inherited.

  • Namespace: System
  • Assembly: mscorlib.dll

  • System.Object
  • View this type on MSDN
  • Search for this type on MSDN using MSDN's own search engine
  • Google for this type - all Web
  • Google for this type - MSDN only
    Articles (6)Discussions (1525)MembersRotor
    Discussions

    Page: 1234567891011121314151617181920
    2122232425262728293031323334353637383940
    4142434445464748495051525354555657585960
    61
    multi-stream files? (VIP replies)
    Develop.com's DOTNET List
    Jason, this is interesting: from the exception thrown it seems the problem is in permission check code. The runtime attempts to parse the full pathname, and from what I can read from the code of System.Security.Util.StringExpressionSet.CanonicalizePath (boys, Anakrino rocks!!!) it does not support this syntax: internal static string CanonicalizePath(string path, bool needFullPath) { //... if (path...
    "\n" does not work inside a textbox control class (VIP replies)
    microsoft.public.dotnet.framework
    Hi, i am about to burst!!! how can i make my string break inside a textbox? i mean with a control charater like "\n", but it does not work! i have a string and i must set the wrap manuall, not controled by the wordwrap property of the textbox. as i alread said: "\n" does not work! Language s C# how can i solve this. Best Regards Kerem Gümrükcü
    "\n" does not work inside a textbox control class (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi, i am about to burst!!! how can i make my string break inside a textbox? i mean with a control charater like "\n", but it does not work! i have a string and i must set the wrap manuall, not controled by the wordwrap property of the textbox. as i alread said: "\n" does not work! Language s C# how can i solve this. Best Regards Kerem Gümrükcü
    "Process cannot access file" problem (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit anyway).... Private Sub LogChange(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs) If e.ChangeType WatcherChangeTypes.Created Then System.IO.File.Move(e.FullPath, textBoxDest.Text & "\" & e.Name) ...
    "Process cannot access file" problem (VIP replies)
    microsoft.public.dotnet.general
    Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit anyway).... Private Sub LogChange(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs) If e.ChangeType WatcherChangeTypes.Created Then System.IO.File.Move(e.FullPath, textBoxDest.Text & "\" & e.Name) ...
    'System.NullReferenceException' (VIP replies)
    microsoft.public.dotnet.framework.remoting
    An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll I get this error after acquiring an object: objDSRemote1 CType(Activator.GetObject(Type.GetType "DataLayer.clsSettings, DataLayer"), "//TestPC/clsSettings"), DataLayer.clsSettings) Then I access a function in the remote object: objDSRemote1.Register(Me, System.Environment.MachineName) I get the error when I acc...
    (0x80040154): Class not registered (VIP replies)
    microsoft.public.dotnet.framework.interop
    I'm hoping that someone could point me to the cause of this problem and suggest a solution. I have a C# program that dies with the following: System.Runtime.InteropServices.COMException (0x80040154): Class not registered at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at csno...
    .NET Compact alternative for Environment.Exit() (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hello, I am looking for a Compact .NET alternative to the Environment.Exit() function, which only exists in the full .NET framework. I'm thus looking for a way to exit my application (with an optional errorcode perhaps). Thanks in advance, Jo Vermeulen Student Computer Science at the LUC
    .NET Environment Variables (VIP replies)
    microsoft.public.dotnet.general
    Here is MY QUESTION: We have an old COBOL application that presently writes out text flat files to the hard disk using Windows environment variable settings to represent D:\folder\filename. We have created a similar .NET application and would like to see a code snippet or get instruction on how to have .NET use the Windows ennvironment variables. (We have SAN drives and Microsoft Cluster environme...
    .NET Framework version (VIP replies)
    microsoft.public.dotnet.general
    Is there a way in VB.NET to display a messagebox that contains the version of the .NET Framework that is running?
    .NET Parent/Child table relation (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.databinding
    Hi, Below is my code for setting up a parent/child relation. It seems to work as far setting up the relation is concerned. For instance, I'm using a DataGrid with navigation and I can move from the parent to the child tables and back etc. However, when I delete a row in the parent table, it does not delete the related child table rows. Furthermore, I also have to "manually" set the child table "re...
    .NET technology equivalent to VB for Application (VIP replies)
    microsoft.public.dotnet.general
    Hi, can anybody point me to get more info for developers on a technology in .NET equivalent to VB for Application that allows an application to expose itself as an object hierarchy to the .NET programming environment? Thanks, Vincent
    <***VB.NET***> DataTable.Select's efficiency? (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hello!! You would be welcome to answer the Question: I make a DataSet's instance(sfSalesPlanDataSet) of DB's Table, Add new DataRow into sfSalesPlanDataSet, and seek a record, But When I Creating the DataRow, seek the record, it becomes very slow. the following code is the sample: When running the ***Sample 1*** , it is very fast (3 seconds); When running the ***Sample 2*** , it becomes very very ...
    About Box (VIP replies)
    microsoft.public.dotnet.languages.vb
    I hate to bother you again, but being an upgrader from vb6 to this language, I am having some difficulty. In my about box, I have a label (lblVersion) that displays the version number. I tried this: lblVersion.Text "Version " & Environment.Version, but it caused an error. How should I do it properly? Thanks in advance. Jay Feldman JayFeldman@NOSPAMmonmouth.com P.S. Does anyone know any good books ...
    About displaying multiline tooltips... (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    How to display multiline tooltips for any control at run time ? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
    Accessing command parameters in code (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hi, how can I access command parameters in my VB Windows forms code (example: MyProgram Parameter1 Parameter2 How can I get the values of the two parameters?) Best regards Henry
    Accessing Default Directory in VB.NET (VIP replies)
    microsoft.public.dotnet.languages.vb
    Is there a default function or global variable that will allow me to derive the location of my install? I'm trying to store my system settings file from a persistent location. I know that I can set it through code but I want the option to install the same application multiple times on the same computer so I can foresee that being an issue. Any help or direction would be greatly appreciated. Sincer...
    add a boolcolumn to datagrid (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, I want to have a datagrid filled with data for the users to select which ever record they want and poplulate to another datagrid on another form(which is the calling form) Very much like letting the user clicking on the checkboxes on the datagrid then click on the button to have the data transported to the calling page's datagrid. So... I was wondering how i can add a boolean column to a datag...
    add new line (VIP replies)
    microsoft.public.dotnet.languages.csharp
    how do i add a new line? string a a (U 000D); //doesnt work can someone help me translate this html code into a c# string? font color "red" hello /font world br Thanks in advance
    Add user to SQL Server 2000 using vb.net (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi all, Can anyone tell me how I can add a new user to an existing SQL Server 2000 database programmatically using vb.net. Any help will be very much appreciated. I have had a good Google around but have been unable to find anything. Many thanks in advance.
    Adding new line character to string using TextBox contol (CF) (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi. I've a rather newbie question: I'm concatenating several strings, adding "\n" where necessary, and setting the final string to the text property of a multi line textBox control. However, instead of generating new lines, wierd symbols appear in the textBox. I'm developing using .NET CF for PPC. What am i neglecting to do to properly format my string? Thanks,
    Adding users (VIP replies)
    microsoft.public.dotnet.framework.wmi
    How can I add a new user to an W2k3 system using WMI? I did not find MSDN helpful on this matter, any suggestions?
    ADOX Question (VIP replies)
    microsoft.public.dotnet.languages.vb
    Anyone know the ADOX equvalent in VB.NET or ways of dynamically creating new tables using vb.net code and MSacess or SQL server. Thanks in advance
    Anyone see the problem with this line? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    sScript.Append("myOpener.doReload('1','" ContID "');" & vbCrLf)
    AOP or developers writing custom attributes - pls check this (VIP replies)
    microsoft.public.dotnet.faqs
    A classic case of writing to a log file each time a particular method is called for rudimentary performance statistics. Ordinarily the code below satisfy the requirements: //Considering EventLogManager to be singleton class defined in system. public class Foo { public void bar() { EventLogManager.WriteEntry("Bar method begin; writing Stack trace"); Debug.WriteLine(Environment.StackTrace.ToString()...
    Ad
    BootFX
    Reliable and powerful .NET application framework.
    iOS, Android and Windows Phone Development Training and Consultancy
    Hosted by RackSRV Communications
     
    Multimobile Development: Building Applications for any Smartphone
    Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
    Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734