Topics
-
-
- Leaders
- 1 reply
- 1.2k views
How can I move the mouse using code. Say I click Command1, the mouse would move a certain number of units. Where can I find a tutorial on how to do this?
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 1.3k views
Hi, I wanna delete all scheduled tasks that starts with a certain string, for example delete all scheduled tasks that their name start with "My Application Task". I need to do it via a VBScript code! I found a code but didn't test it: Dim SchedulesID As Integer Dim strComputer As String Dim objService As Object Dim objNewJob As Object SchedulesID = 1: strComputer = "." Set objService = GetObject("winmgmts:\\" & strComputer) If SchedulesID Then Set objInstance = objService.Get ("Win32_ScheduledJob.JobID=" & SchedulesID) objInstance.Delete End If But I don't know how to change it so delete by name? Anyone can help me do it since I am not very familiar…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.2k views
I have a small .exe runing on windows 7. It is being called through Local_Machine/.../Run. The problem is that it asks for user permissiosn whenever it attemps to run. Is there a way to make the .exe run with full permissions? Thank you.
Last reply by EFileTahi-A, -
-
- 3 replies
- 9.6k views
Hello everyone! Is it possible to export a Dataset to a Excel file? I can't use an ASP.net solution. Any idea??? Thanks
Last reply by tfowler, -
- 1 reply
- 3.2k views
Hi all, My problem is that I am using an UDPClient to recieve UDP packets (few hundred per minute). Each packet is numbered so that I can keep track of how many packets I am losing. If I just look at the number of each packet and nothing else, I dont lose any. But If I read the whole package I start losing alot of them. (ca one out of ten). Meanwhile the CPU usage is just 13-16%. Is this a buffering issue?
Last reply by carlk, -
- 1 reply
- 7.1k views
Hi, how can I read an open Excelsheet into a dataset? Usually I'm using this : String sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=c:\xlfile.xls;Extended Properties=Excel 8.0;"; OleDbConnection objConn = new OleDbConnection(sConnectionString); objConn.Open(); OleDbCommand objCmdSelect = new OleDbCommand("SELECT * FROM [sheet1$]", objConn); OleDbDataAdapter myda = new OleDbDataAdapter(); myda.SelectCommand = objCmdSelect; myda.Fill(ds); I can't use this way because i can't close the file... Thx
Last reply by cikaPero, -
-
- Leaders
- 1 reply
- 789 views
Hi Forum I want to add multiple files to a single compressed file using System.IO.Compression. And extract them back... So I found this code on MSDN which works fine, but does not support adding multiple files into 1 single compressed file. :confused: http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx Any suggestion on how to do it without using 3rd party component? Thanks :)
Last reply by snarfblam, -
-
- 1 reply
- 1.2k views
Linq2Xml: [Edited] I would like to get the count of elements where candidate has maximum/highest . I need some help. <Pronvice_Data> <Pronvice>PronviceA</Pronvice> <Registered_Voters>115852</Registered_Voters> <Sam_Kea>100</Sam_Kea> <Jeje>500</Jeje> <John_Doe>400</John_Doe> </Pronvice_Data> <Pronvice_Data> <Pronvice>PronviceA</Pronvice> <Registered_Voters>25852</Registered_Voters> <Sam_Kea>200</Sam_Kea> <Jeje>100</Jeje> <John_Doe>300</John_Doe> </Pronv…
Last reply by skea, -
-
- Administrators
- 1 reply
- 1.2k views
I have a Dropdown with two values "P" and "Q" with AutoPostBack= true. I have another Custom WebControl called BDTextBox, this custom textbox have a Boolean property called LabelMode , on setting it to true would render the textbox as label.This LabelMode Property is set using ViewState and not using private variable. my need is that if Dropdown has value "P" the labelmode = false and on "Q" labelMode = true; my code looks somewhat like this. I have tried writting this code in PanelCreation , OnPrerender but there seems to be a issue with it. As i hit this code and suppose Dropdown value is "P" , it goes in if loop and as per code it sets value as false, that …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- Administrators
- 5 replies
- 1.7k views
Hi, İ have a problem with Vb.net development enviroments. İ have exampled a code below to show what i have encountered. When instruction pointer comes to the debug line the form hangs and dont show what setted at debug point. How can i solve this hang problem. I want fastmoving codes like i do at old Vb6 days Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click For i As Integer = 1 To 10 ListBox1.Items.Add("Line # " + Str(i)) 'Put debug point here …
Last reply by snarfblam, -
-
-
- *Gurus*
- 2 replies
- 7.1k views
Hi, Here is my problem: How can I move a node in a treeview. for example Root --1 ----11 ----12 ----13 ----14 --2 etc... Now I would like to select 14 and move it one up so the result would be: Root --1 ----11 ----12 ----14 ----13 --2 etc... If you know the answer to my problem, please help me? Code examples would be very helpful thanx
Last reply by kevinuni, -
-
-
- Leaders
- 1 reply
- 891 views
well how can i make the cursor invisible?
Last reply by snarfblam, -
-
-
- Leaders
- Administrators
- 6 replies
- 1.4k views
Well im wondering how to make my text editor ask to save the changes before closing, what i mean is if you changed the document it will have a message box if it has been saved after changens, i know i can do: Dim SaveSts as String = "Saved" 'Under TextBox1_TextChanged: SaveSts = "Unsaved" 'Under Savebtn_Click: SaveSts = "Saved" 'Under Form1_FormClosing: 'use e.cancel = true and a msgbox Is there a better way of doing this?
Last reply by reconrey, -
-
-
- Administrators
- Leaders
- 2 replies
- 3.6k views
Dim DirInfo As IO.DirectoryInfo = DriveInfo.RootDirectory If I get into a protected system folder like "System Volume Information" in the root of drive, I get System.UnauthorizedAccessException. So how can I check DirInfo to prevent this exception? Thanks.
Last reply by snarfblam, -
-
- 8 replies
- 4.1k views
Ok, I just wanted to try my VS 2008 application in another computer and guess what? I can't even install it, it gives me an error, you know the "Illegal Operation Error". Which gives me the following options, Send Report or Don't send it... When I clicked on details I saw it has something to do with 'System.Security.Security' and that's it. How the heck will I solve this? I'm incredible ****t off. VS is loosing quality over and over. Never experienced problems with previous version of VS regarding deploying applications... Thanks for any possible help on the subject and sorry for my bad mood.
Last reply by WaddellG, -
- 0 replies
- 998 views
well i just recently made a program that will record sound from your mic, using MCI Send String...., and i am wondering if there is a way that will allow it to record from you speaker, i think its called Wave Out?
Last reply by reconrey, -
-
- Leaders
- 8 replies
- 43.8k views
I have a listbox in which users can add items to it.. i would like to have a button that lets them move the selected item either up or down. I called my checkedlistbox "listboxMiscGoals"
Last reply by Armaggoth, -
-
Hi, i'm at uni doing a project using the FTDI USB chip. It allows you to connect to it using a dll and control its logic pins. I can connect to it fine in visual basic 6. But i'm trying to get it working in vb.net so i can start getting familiar with .net and vb.net does multi-threading. I've copied the code from vb6 directly to vb.net and it seemed to compile fine so i'm assuming there are no language differences. But when i try to use the code i get errors returned from the dll and it won't allow me to connect. Is there anything i should be doing or is the dll just not compatible with .net - but i thought dll's were usable by any language? i've attac…
Last reply by Andres Ossa, -
-
- Administrators
- 1 reply
- 2.5k views
I just bought a new laptop. On the laptops is written Windows 7. I want to install a program from my office but I get an error. If I use windows Vista, it works fine, but Vista is not compatible for my laptop. What should I do ?
Last reply by AWS, -
-
- 0 replies
- 1.6k views
im trying to make a method for update query, to receive parameters and values and process the update for all fields with values for each one, but it gives me an error: here is my code: Public Sub qUpdate(ByVal Table As String, ByVal Fields As String, ByVal Values As String, ByVal Condicion As String) Conexion.myCommand.Connection = conn Conexion.myCommand.CommandType = CommandType.Text Conexion.myCommand.CommandText = "Update " & Table & " set " & Fields & " = """ & Values & """ where " & Condicion & "" Call Connecta() myCommand.ExecuteNonQuery() Call Desconecta() End Sub …
Last reply by manuelpeh,
-
Who's Online 0 Members, 0 Anonymous, 11 Guests (See full list)
- There are no registered users currently online