-
- Editing Registry in vista
by sunrunner
- 4 Replies
- Last post
by sunrunner
- I'm trying to get one of my programs working in vista and have ran into a couple issues. I am not able to write to or delete keys without getting the error: "Attempted to perform an unauthorized operation."
Here's my code:
Code Snippet
Sub SetAsStartTask()
Dim key As Microsoft.Win32.RegistryKey
Try 'delete if found
key = My .Computer.
-
- Datagrid View - DataTable - DataReader - Error
by Adamus Turner
- 4 Replies
- Last post
by Adamus Turner
- Greetings,
I'm receiving the following error: Invalid attempt to read when reader is closed.
Here's the code:
Dim sqlConn As New SqlConnection(ConfigurationManager.ConnectionStrings( "MyConnection" ).ToString)
Dim sqlDataReader As SqlDataReader
Dim myQuery As String = "SELECT PONum, Class, PayCode, CostCenter, EmpNum, Reason, InDCMS FROM D
-
- save file on another have the same name :"overwrite"
by mm_ezzo
- 9 Replies
- Last post
by nogChoco
- hi :
how can i save file overwrite on the another have the same name
-
- Changing ConnectionString at runtime
by DanglingChap
- 9 Replies
- Last post
by DanglingChap
- In my application, i am not sure where will be the database. So i thought to put the connection string in app.conf file. So that i may read it runtime and create connection. Working good. But what if i have to change the connectionString define in app.conf at runtime It may not be necessary that i must use app.conf, you people can suggest me one better approach so that i may not be dependent on d
-
- Threads in a DLL?
by Cryo75
- 3 Replies
- Last post
by Cryo75
- Hi all,
I've got the following scenario:
A VB6 legacy application needs to enhanced whereby the client app needs to launch lengthy tasks as background tasks whilst the client app continues to work further. These "tasks" use a server app (also in VB6). These "tasks" should be listed in the form of the Print Spooler.
The easiest solution is to do this in .net 200
-
- DeleteSetting problem
by ShadowRayz
- 2 Replies
- Last post
by ShadowRayz
- i have that code
Code Snippet
DeleteSetting( My .Application.Info.Title.ToString, "settings" , "nick" )
DeleteSetting( My .Application.Info.Title.ToString, "settings" , "ip" )
DeleteSetting( My .Application.Info.Title.ToString, "settings" , "port" )
DeleteSetting( My .Application.Info.
-
- How to set location to a word application?
by Antinsh
- 1 Replies
- Last post
by Riquel Dong ¨C MSFT
- How to set location to a word application that is opened with appWord.Documents.Open(path) method
I'm also having trouble with width and height properties. After i assign new values word doesn't resize like a noral form would.
-
- Bug? DataGridViewRow seems bound to one DataGridView on one Form.
by John Oliver (UK&am
- 1 Replies
- Last post
by pyeung
- Hi All,
The OP of this thread appears to have a similiar problem.>>
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1957097&SiteID=1
Even if I create a new instance of a DataGridViewRow in Form2 I still get an error .
Why can I not pass a DataGridViewRow via a Public variable in the same way that I can pass a String, anyone please
It looks li
-
- Accessing control from different form.
by Syco54645
- 3 Replies
- Last post
by Dick Donny
- Hello VB 6 convert here and I am trying to access a few controls on frmMain from frmNew. frmNew is shown with a showdialog and in frmNew i have dim frmMain as new frmMain. To access the controls I coded a public sub Public Sub ClearLists() lstArmyPool.Items.Clear() lstArmy.Items.Clear() lstArmy.Items.Add("test") End Sub in frmNew I call frmMain.ClearLists() yet nothing ha
-
- VB Upgrade Tool
by MrJP
- 9 Replies
- Last post
by JohnHart_MSFT
- I tried to upgrade a program from vb6 to vb2005(express edition) but i keep getting this error: cannot start upgrade engine. not able to bind the source (exception from HRESULT: 0x8004000A (OLE_CANT_BINDTOSOURCE)).
I get this error even if i dont type in any vb6 code in the window. I have read previous threads on this issue and i have tried their suggestions, ie checking the registry for the dl
-
- insert tab using the string builder
by wayliff
- 4 Replies
- Last post
by tkerns
- Hello,
I'm building a string to be displayed into a textbox at a later time.
The code for the line that gets added in my loop is :
sb.AppendLine(newFile.Name & " " & newFile.Status & " (" & newFile.Modified & ")>>>(" & oldFile.Modified & ")" )
However I'd like for the lines to say filename is newer<tab&
-
- Opening Excel 2007, and not Excel 2003, from Visual Studio 2005
by Gedde
- 2 Replies
- Last post
by Gedde
- Hi,
I am trying to open an Excel 2007 file from Visual Studio 2005 (Coding in Visual Basic). I have both Excel 2007 and Excel 2003 installed on my machine.
I added a reference to the "Microsoft Excel 12.0 Object Library" in the reference list, and I have checked that "Microsoft Excel 11.0 Object Library" is not referenced. But when I am running the following cod
-
- How do you add a pause with the Timer control?
by Solitaire
- 14 Replies
- Last post
by Solitaire
- I know how to do it using Sleep, but can't figure out how it would work with the Timer control. I have a large application that "flips" digits in textboxes casino style, using the Sleep method. All the code for that procedure is in a button click event. However, if the user decides to click on a different button (to reset, or exit, etc.) it needs to wait for all the digits to finish flip
-
- Loop through text file and view one line in listbox
by TonyFlora63
- 14 Replies
- Last post
by TonyFlora63
- Hi
I'm looking to write the contents of a text file to an array and view one line at a time in a listbox. When I say one line at a time I mean only view one line in the listbox and as It loops through the text file the line that is showing is replaced with the next line, and so on.
TonyFlora63
-
- Windows Service communication
by Priyan R
- 2 Replies
- Last post
by Jason Callas
- How can we communicate with a windows service.
as we can use ExecuteCommand , but we can only pass an Integer
I need a way communicating with windows service, like calling a method,
ie, passing objects to the service and get the result object back
Is there any way to do this
-
- Resource Adding Errors
by NytewolfAU2k7
- 4 Replies
- Last post
by NytewolfAU2k7
- I am seriously sick of this... EVERY time I edit a resource (.resx) file in a Windows Application Project by adding a new or existing resource and attempting to save it, a message pops up saying "Visual Basic Compiler must close". In VB Express 2005, VS Professional 2005, VB Express 2008 Beta 2 on my home PC, I can recreate the above problem. It doesn't matter how many resources I add or
-
- How can I make a form filler?
by kcdclan
- 2 Replies
- Last post
by Bruno Yu - MSFT
- I wanna be abel to auto fill text box in a webpage. Dose any one know a good way of doing it Like with the new msn toolbar or off google toolbar. Sorta like that.
-
- cant add text to richtextbox quick enough
by Chris128
- 9 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi All,
Just a little problem, I have a button on my form that causes another form(we will cal it form2) to appear and in form 2's load event it attempts to connect to a network share on another PC. on the first form I have a rich text box that I want to use as a log box basically. So I am using the following code for the button on form1:
Code Snippet
Private Sub installb
-
- Array Operation
by yhong
- 7 Replies
- Last post
by yhong
- Hi,
I am making a data process project. I am using jogged array to collect the data from DAQ card, the structure is like the following
public s(2)() as string
public s1(100) as string
public s2(100) as string
public s3(100) as string
s(0)=s1
s(1)=s2
s(2)=s3
now I would like to convert s into a 2-dimentional array with row as channel and column as sample d
-
- Printing directly
by john pittman
- 7 Replies
- Last post
by john pittman
- I have in the past created a way to print by creating a file and using writeline methods create the content and then in the end send the file location to a print method that would print the file...
but now, I want to print directly to the printer but after I create/format the output. However I am pretty sure the program will run over a network with not enough privileges to create a file, is the
-
- Help with DataGrid edit
by jbassmanp
- 6 Replies
- Last post
by jbassmanp
- I need URGENT help with the editing of my DataGridView Cells. I want to change any text input to uppercase (without the users having to press Caps Lock).
I thought this would be easy but No. All i want is all enter in this datagrid alone forced into uppercase below is my code. Any help Please....
Dim StrNew as String
Private Sub DataGridView1_CellValidating(ByVal sender As Obje
-
- Help Rnd maths!
by sstrck
- 2 Replies
- Last post
by JohnWein
- How can I exclude numbers from the Rnd function ex. 10* Rnd 'returns 8 10* Rnd 'exclude 8, returns 4 10* Rnd 'exclude 8 and 4, returns 5
-
- Running another VB application from a VB application
by jbassmanp
- 3 Replies
- Last post
by jbassmanp
- I have a Master application that I'm working on and another application that I want to run is was a VB6 app. now converted to 2005. I have tried to incorporate it into the '05' app but "no go" so I'm running it externally. The problem is when I select it, it initalizes in minimize mode. And any user would have to be on the look out for it and click on it to use it. Can someone help. Foll
-
- How do you open the Default email application please with a message ready to send?
by Lullington Garth
- 2 Replies
- Last post
by Lullington Garth
- Hello,
I'm looking for some code to open the Default eMail Application on a machine and for it to raise a message ready to send. I don't want to send the message, I want it to wait for the user to fill the message body and for the user to send the message in the conventional way.
Does anyone know how to do this please
-
- Datetimepicker Max Date difference with Dtpicker
by Pritesh O
- 1 Replies
- Last post
by Toddap_MS
- DTPicker in VB6 allows the max date to be 12/31/99 99 .
.NET date time picker allows the max date to be 12/31/99 98 .
I have a situaton where it has huge impact if I convert dtpicker to datetimepicker as part of conversion from VB6 to VB .net.
My application accesses DB2 database and there is extensive business logic based in Mainframe downstream systems where 12/31/9999 is h