Yes, I have tried it but it won't work with SharpDevelop (the IDE that I use to code VB.net). Is there any other way?
re infecta
Posts
-
How to print out a RichTextBox -
How to print out a RichTextBoxI have googled and googled but not found a single simple solution: How to print the contents of a RichTextBox? The contents is text only and font courier 12.
-
How to control mouse and keyboard?Hello, I'm using VB.net with NET 2.0. I would be most grateful if you could post answer to all or any of the following questions. How to: 1. Use custom icon for mouse instead of deafult mouse cursor? 2. How to disable all the other mouse buttons than the left button? Some mice have 3 buttons, some have five or more. 3. How to disable the function keys (F1, F2 and so on)? 4. How to disable Windows-key (the kye between to Alt and Ctrl) 5. How to disable "Menu-key" (the one between AltGr and Ctrl)? 6. How to hide Windows taskbar completely? 7. How to disable (from code) all 8. How to disable Ctrl+Alt+Del? 9. How to disable all Windows accessibility settings (for handicapped people) from code? This should happen in a way that when the user closes my application normal Windows operation will be restored.
-
Reading a file in the internetI need to read the contents of a file that is located in the internet. The problem is that this file is located in a folder that needs username "ukkeli" and password "hattu123". I'm using the code below: Dim myWebClient As New System.Net.WebClient 'the webclient Dim file As New System.IO.StreamReader(myWebClient.OpenRead("http://www.examplesite.com/subdir/file.txt")) Dim Contents As String = file.ReadToEnd() file.Close() How can I make the application to give the needed username and password automatically?
-
Best practice to make the program multilingualI a bit of a beginner. How do you do this in practice? Could you give me an example? Let's say label1.Text is in Finnish "Jotain" and in English "Something".
-
Best practice to make the program multilingualOK, I have never used INI files. Could you give me some practical example or reference in web? Thanks?
-
Best practice to make the program multilingualWhat is the best way to make my program in several languages? Should I create text files that contain label text, window titles, messagebox texts in different langugaes or what do you recommend?
-
How to detect if "My documents" or "Internet explorer" is dropped...Hello! How to detect if user drags and drops icons "My documents", "My music, "My pictures", "My videos" Or "Internet Explorer" from desktop to a listbox of my application? For example "My Document" icon on desktop isn't actually a folder and neither an ordinary shortcut. Please help! :)
-
How to read volume labelHow to read the volume label of drive X? For example, if the drive D has label "Linux", the function would return this name when called with parameter "D:".
-
Running a function every hourIs there a better way to run a function every hour than enable a timer with tick value "3600000"? The problem is that when my application is running and this timer is enabled, Windows XP won't shutdown.
-
How to delete folder and its subfoldersHow to delete all folder starting with the characters "abc"? All sub folders should be deleted too and the deletion should work even some folders had files in them.
-
Integrating the necessary .NET componentsIs it possible to compile an application so that the necessary components would be integrated? I think it is annoying that the users of my application have to download and install the whole .NET package from MS's website. I would like to make one zip file that contains program.exe and the necessary .NET component files.
-
How to calculate the time differenceHow to calculate time difference in hours between two dates, let's say 01/01/01 12:00 and 02/02/07 7:00?
-
How to use integrated zip-compression?I heard on this forum that .NET 2.0 has an integrated capability to compress folders to zip file. How to use this and what is the syntax? Can you give me an example code? I would like to compress two folders "C:\temp" and "D:\foo" into a single zip-file that would be saved into "E:\zipfiles".
-
Three topics - help greatly appreciated!So, what would be the best way to recognize if the inserted USB memory stick / USB hardrive is the same as the one used before?
-
Three topics - help greatly appreciated!1. Yes, I am using .NET 2.0. How to use this zip support. Could you give me an example code to zip folder and all its subdirectories in "C:\temp\" to folder "D:\here" with the file name "myfold.zip". 2. How to make a registry entry for the startup? Could you give me an example code.
-
Three topics - help greatly appreciated!- How to get a list of all drive letters and names, including USB-memory sticks, eg. "D: Removable drive"? Am I right that every drive has an individual ID-number or name? If so, how to get this name/ID from vb.net? I would like to compare if the two USB sticks are the same when used one after the other in the same USB-port. 2) What code snippet would tell my app to make "foo.exe" start on every Windows log in? 3) Is there an API to compress a folder into a zip-file or is the only way to use some 3rd party command line application?
-
How to quit application completely?My application is very simple, so I _think_ I haven't open any additional resources. MidiOutOpen is called when main form is loaded, but I close that in the MainForm_closing event. I'm a beginner and I don't know what are threads. Can you please explain me? Still, I can see that two threads are left open even though application should have been shutdown. How to close all threads? Are active timer components threads? What does the "Me.Dispose" command do? It didn't help though.
-
How to quit application completely?I'm writing an app in VB.net with .NET 2. The application has a main form plus two other forms. When I click Exit-button on the main form, I call Me.Close(). After that MainForm_Closing routine handles the shut-down procedures. Ultimately I call Application.Exit(). The problem is that although the main form dissapears, application (.exe) keeps reserving system resources (95%!). How to close the application completely? I think the problem is that the two other forms are not closed, but hidden.
-
Reading cursor position with a timerI'm using Vb.net. How to make a timer to read mouse cursor position on the form? I know how to use MouseMove event but it won't fire if mouse cursor is still. I would like to have a timer that would constantly report what are the current cordinates of the cursor.