Search results for query: *

  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

    Ok got it 1) create a server side click event for a button 2) create a process object 3) run process 4) wait for process to complete 5) query database for process results Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim p...
  4. E

    Global Variables

    You may want to look up information on session variables but here is how I would try to do it. On some event, either a click event or a page load, declare a session level variable: Session("variableName") = txtTextBox.text Then on other pages you can call that session variable by name...
  5. 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...
  6. E

    Re-Size DataGridView

    Shouldn't have posted so fast....I just docked the control to the top of the form......
  7. 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
  8. 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...
  9. E

    Remote execution

    Have you ever looked into a sysinternals application called psexec. I have authored a few vb.net apps that execute remotely. All I have done in the past is create a sort of admin console for myself then have that console leverage psexec to send the necessary files and execute them.
  10. E

    List Active Directory Users and Groups

    Thanks again hauprta. Now I am really confused. I finally have the data elements that I want, now why is my search only returning 1000 rows? A different 1000 rows each time I run my app. Is there a size limit I have to set?
  11. E

    List Active Directory Users and Groups

    Unfortunately I do not have the ability to run any utility on the domain controller. This is what I am running to list my user accounts. Try Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domainController1/OU=User_Accounts,OU=Group3,OU=Group2,OU=Group1,DC=Mydomain")...
  12. E

    List Active Directory Users and Groups

    That sample is working great for me, thanks! Would you happen to know what the column name for the lan id would be? Or even what all the different columns I could pull from? Thanks for the help
  13. 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")...
  14. E

    Form Navigation

    Nevermind, I tried it a bit of a different way. On form1 Dim nf As New frmNotFound Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked Me.Hide() Me.AddOwnedForm(nf)...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. E

    Detect Services By Name

    Thanks John, I will try that out! This is what I started playing around with... Dim gogo As Boolean = False Dim op As String If Directory.Exists("\\" & compname & "\c$\windows\system32") Then op = "xp" Else op = "2k" End If Dim...
  20. E

    Detect Services By Name

    Thanks guys. John, using what you had suggested, this is what I tried. dim s as string dim pass as boolean dim arr as array = System.ServiceProcess.ServiceController.GetServices() Dim i as integer = 0 do until i = arr.length s=arr.tostring if s = "Service Name" then pass = true exit do end...
Back
Top