Search results for query: *

  • Users: Adagio
  • Content: Threads
  • Order by date
  1. Adagio

    Start process with local user

    As probably many has done before me, I'm trying to start another application with elevated rights. I have tried many different things, but so far I have only gotten it working with domain Administrators Here's the code I have seen posted most places: Function ConvertToSecureString(ByVal str...
  2. Adagio

    Question How to cast an object into its type?

    I'm having a bit of a problem here, hoping a nice person here can help me out I have a method which receives an object as parameter. This object is always of a class I have created, it will never be something simple as string, integer, etc In my simple example I have created a class called...
  3. Adagio

    Listview doesn't update selected index count

    Anybody who has any idea on what to do here? When I try to set an item to be selected programmatically, I have noticed that is only visually it is selected. If I set an item to be selected and clicks on the arrow down key, the listview seems to think that it is the first item in the listview...
  4. Adagio

    Console application quits unexpectedly

    I just started working on a new console application (sooner or later it will be changed to a service application, but during test it runs as console application) The problem is the application quits unexpectedly. No exceptions are thrown or anything I have added many breakpoints and I'm trying...
  5. Adagio

    Question Get registry value - x86

    I have been searching for a way to retrieve the full path for Outlook.exe and have managed to do it like this: Public Function GetOutlookPath() As String Return My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE", "Path"...
  6. Adagio

    Question How to debug when exception is thrown in designer?

    Most people here have probably seen this error before: "to prevent possible data loss before loading the designer, the following errors must be resolved" Currently I'm battling with a situation where I can't seem to find a solution. When I open design view for the form I get the following two...
  7. Adagio

    Interop Outlook not working (Retrieving the COM class factory)

    After using Google to find a solution I can see that many people have the same problem as I have, but unfortunately I haven't had any luck at all finding a solution :( Here's a quick overview of the situation: I'm developing a ClickOnce application (in vb.net). In my project I have added...
  8. Adagio

    Question Process.Start with local user

    Many times I have startet a different application from my programs with other users, but now I can't get it working with a local user Here's the situation: On a server we have created a local user (not administrator), that is allowed to run the program needed. If we log in as a different user...
  9. Adagio

    Question Serialize an object, exception because form is not Serializable

    I have a bit of a problem here and hope somebody here can help me figure out what the problem is I have a class called Truck and a form called frmTruck I have some code like this in a method. It recieves obj as Truck Dim ms As New MemoryStream(1000) Dim bf As New BinaryFormatter(Nothing, New...
  10. Adagio

    Question Load icon from file

    I have now tried many different codes found all over the web, but so far I haven't had much luck :( I need to load the icon from a file, any file (including shortcuts) in as high quality as possible (it's ok if the code only works in Vista/Windows 7) So far I have only been able to get low...
  11. Adagio

    Question Binaryreader - Reading to end of file?

    I have tried to create a method for writing information from an instance of a class to a binary file. The code works fine, the only problem is finding the end of the file. After it has read the last value that should be read, the basestream.Length is still higher than basestream.Position (by a...
  12. Adagio

    Answered Cannot open form designer

    There is no editor available for...Make sure the application for the file type (.vb) is installed I have a huge problem, I get the above message when opening any form in our project at work. This just happened today and it is like this on all computers with VS.Net 2008 We have noticed that the...
  13. Adagio

    Question Monitoring methods and properties

    Does anybody here know if this is possible somehow? Let's say that I have something like this: Public sub WriteLog(str as string) ' Code to write to log End Sub Public class AwesomeClass public sub DoSomething End sub public property SomeProperty as string set get return "Nice" end get...
  14. Adagio

    Answered Uninstalling programs using force?

    I'm currently in a situation where I need to uninstall a certain program from a local computer (and automatically install a newer version of that program), because this old version of the program randomly causes my program to malfunction I have found this article: CodeProject: How to list all...
  15. Adagio

    Question SQL server 2008 - Connection problems

    I get this lovely message from time to time: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote...
  16. Adagio

    Answered VScrollBar in custom control?

    Hi I'm currently making a custom control that needs it's own scrollbar. I'm using the OnPaint method of the control to paint what needs to be shown The control needs to show a vertical ScrollBar under certain circumstances. I would prefer to use the VScrolBar that is already available...
  17. Adagio

    ByRef vs ByVal

    Thread split from here: http://www.vbdotnetforums.com/vb-net-general-discussion/32352-byref-vs-byval.html -JuggaloBrotha Ah, now I see... thanks But that's not the same as our teacher told us about the difference, that's for sure
  18. Adagio

    Question ByRef vs ByVal

    From what I understand, this is how it works: ByRef (a.k.a. By Reference) points to where the object is in the memory. Any changes made to the object sent ByRef should change the values of the original object ByVal (a.k.a. By Value) points to a copy of the object. Any changes made to the object...
  19. Adagio

    Question Get running instance of Outlook

    I currently have an application where you can drag drop a mail item from outlook into my application. Now for various reasons I need the same instance of Outlook that is running I have tried looking into what proccesses are open, and find the Outlook application that way, but it doesn't seem to...
  20. Adagio

    Resolved Crystal Report - Load report failed

    A few weeks ago Crystal Report started giving us a lot of trouble, after having run flawless for a long time, even though no changes has been made in the code The error: Load report failed. System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified...
Back
Top