Search results

  1. E

    Question Visual Studio Debug - Please Help

    I have recently moved from XP Pro VS2008 to Win7 Ultimate VS2010 and all the sudden I am unable to debug code and I can't write log files (ex: c:\mylog.txt) anymore. What am I missing here? I am using the same code that used to work. My biggest issue is my inablility to debug. I was writting a...
  2. E

    Question Local Admins Group

    How do I list the contents of the local admins group then verify and add if necessary? I don't need to do this remotely just locally. Thanks
  3. E

    ASP.Net Process/How do I pull this off Question

    Hello, I need some ideas on how to accomplish this task that I have taken on. I need a way to run a vb.net application on a local pc from an internal webpage and then return the results of that locally ran application to the very same webpage it was launched from. If that is unclear maybe this...
  4. E

    Re-Size DataGridView

    Hello All, I have a DataGridView on a form that I would like to change size when I resize the form. Hope this is something simple - just a property of this control I am missing? :o Using Visual Studio 2005 Thanks in advance
  5. E

    Console app will not run in DOS Mode

    I am new to making console applications so please forgive me if this is an easy one. I have a need for an application that runs off a bootable USB flash drive. All the application has to do is present some menu options and then start another application based on those options. I was able to...
  6. E

    List Active Directory Users and Groups

    I am looking for a way to do something in .Net 2003 that I was able to do in vbscript. I need to be able to list AD groups and users. This was fairly simple in vbscript but I am having difficulty doing this in .Net. In vbscript for groups: colgroups = GetObject(WinNT://mydomain,domain")...
  7. E

    Form Navigation

    I have a windows project with two forms in it. On form1 one I have a linkbutton to be able to open form2. When form2 is opened I want to hide form1 and then show form2. On form2 there are some text boxes asking for information and a submit button. When the submit button is clicked I do some...
  8. E

    Execute batch file?!?!

    How do I execute a batch file in ASP.NET 2.0? When I debug this code in the compiler (VWD 2005) all is well. system.diagnostics.process.start("\\server\share\file.bat") When I move the page up to my webserver nothing happens. Its like that line of code does not exist. What gives? Thanks in...
  9. E

    Multiple DataKeyNames From One GridView

    Hello all I have a webform with three GridViews on it. The first GridView populates a summary of information at the Form_Load event. I have set this gridview to be selectable. When an item is selected off this gridview I need it to pass two different values - one to each of the subsequent...
  10. E

    Event Handler for GridView RowUpdating

    I am struggling to figure out how to create an event handler for RowUpdating. I am using Visual Web Developer Express 2005 .NET 2.0. I can't use the wizard because my GridView displays a custom query that joins several database tables. From what I am finding online I need to build a sub routine...
  11. E

    Detect Services By Name

    Hello all Does anybody know how to detect if a service exists by name or how to detect if a specific service exists at all? Thanks in advance
  12. E

    Set Default Button for the Enter Key

    How do I set the button that is controlled by the enter key? I have a text box and once that text box is populated I would like to have the ability to press the enter key instead of clicking a button. I have tried a couple of things: ClientScript.RegisterHiddenField("_EVENTTARGET", "Button1")...
  13. E

    How to open a new page and pass parameters

    Hello all I am trying to make a web app that has a sign in page and then upon successful login, redirects you to the next page. I have two questions about this. How do I handle opening the new page and how do I pass parameters to that new page? Thanks in advance
  14. E

    Get Client Info/Read Registry

    Hello All I am just now trying my hand at ASP.net and I have hit a bit of a roadblock. I would like to know if there is a way to obtain information about the client that is accessing my asp.net webpage. For instance, is it possible to determine the OS that the remote client is running? Also...
  15. E

    Get Local IP Address Using WMI

    Hello Everybody I am trying to find a way to get the ip address of the machine that my application is running on. I was attempting to do the following: Dim moOS As ManagementObjectSearcher Dim moIP As ManagementObject Dim ip As String moOS = New ManagementObjectSearcher("SELECT * FROM...
  16. E

    FolderBrowserDialog

    Hello, I am trying to set up a File Browser Dialog so that a user can select a text file for reading. When the dialog opens I want the user to be able to select the folder and the file and then for that path to be shown in a text box. What I don't get is how to browse to a file. I can browse...
  17. E

    string.remove problem

    This seems very simple. I must be overlooking something easy. I am trying to remove a character from a string and I am failing miserably. Dim status AsString = "status in ('status1','status2','status3',)" Dim L AsInteger L = status.Length L = L - 2 If status.Substring(L) = ",)" Then'this...
  18. E

    Binding Query to label

    Hello everybody, I am trying to bind the reults of my query to a label on my form. I am doing this many times over into many different labels on the same form. I am building something like a summary report. This is what I am doing. Dim myconn As SqlConnection = New SqlConnection(cnxn) Dim...
  19. E

    Try Catch Block question

    I have a try catch block that looks like the following Try Do While i < num 'loop through directories on a server and report the size of each i=i+1 Loop Catch ex As System.IO.DirectoryNotFoundException 'directory not found error '*****need code to resume loop**** End Try What I don't...
  20. E

    Microsoft.Office.Interop.Excel, What am I not understanding?!

    Grrrrrr File or assembly name Microsoft.Office.Interop.Excel or one of its dependancies was not found I am trying to use an app I made on a separate machine than it was developed on. The app exports the contents of a data grid to an excel spreadsheet. On the pc the app was developed on I can...
Top Bottom