Answer Questions
nsam Centering Form2 inside Form1
How I have centering Form2 inside Form1. CenterToParent() doesn't work. Oh u know . . . I am so late but I am so thankful to u both. it`s very very great . . . thanks Beautiful! Thank you very much! Good bye! Blader Thank you, James. Blader wrote: How I have centering Form2 inside Form1. CenterToParent() doesn't work. Blader, 1) Use Design View of Form2 2) Select the Form in the properties window 3) Change the "StartPosition" property to: CenterParent Note: This will only work if Form2 is the child to Form1. To accomplish the relationsh ...Show All
Maxim Michtchenko restrict the program run twice
Hi i have a program that run in service. and this program always start many times due to the different user log in into server. How can code to check the duplicate process and the service is running and prevent it run again. thanks Hi, Several methods. First set the application to single instance: open My Project and set Make Single Instance. Second, walk the process list to see if you are already present, watch out for the currently loading instance by its comparing its handle. How to walk processes: Dim Proc As Process() Dim p As Process Proc = Process.GetProcesses() For Each p In Proc If p.ProcessName = "<program name>" Then <do what you nee ...Show All
Jon Watte Does COMs dead in VS2005?
When i update my project from VS2003,All of the forms that contains COM does't work... Or ned to register windows installer You would still need to register COM components for them to work. You can do this using Regsvr32.exe Are you using a windows installer or publishing using click once How to do this when Install ...Show All
RussellH Can't Get VB6 Serv Pak 6 to install in Vista RC1
Has anyone gotten VB6 Service pack 6 to install in VISTA RC1 I tried and it errors out with some cryptic error about a missing file and quits. VB shows no sp installed and programs that were created with SP6 installd on XP will not run in the API on Vista RC1 with an error message "Component missing". Has Microsoft a fix for this We have lots and lots of custom written programs that we will have to maintain and support on VISTA (if installed) and there seems no way to do it because the service Pack 6 can't install. Scott, I'd like to keep track of issues with VB6 installing on Vista. You were trying to get this working on RC1 and you received errors. What build did you get it working on Thanks, Ch ...Show All
Naolin String Functions
Through playing I have noticed that whenever I type the name of a string, for example str, with a . after it a list appears with common and all functions availible. Commom: Contains EndsWith IndexOf ..... etc. I am trying to find which functin would accomodate me the best. I am currently using the .Contains to find if a specific "key" word appears in the string I just read in. But what I don't know how to do is extract data that appears after the "key" words. Can someone please help me.....!!!! Example: Itinerary for Doe,John on 01-01-1001 The informaion in yellow is the data that I need. The red ar the "key" words. Would the way ur showing me or the ...Show All
adb123 Visual Studio Is Busy?
Pentium IV - Northwood 3.5 Ghz - I Gb of Ram. XP SP2 .. all current patches applied. VS2005 RTM Team Suite On occasion while debugging the IDE becomes nonresponsive and I receive a Bubble message informing me that "Visual Studio is busy waiting for an internal operation to complete - If you receive this message often, please inform Micorosoft" After I receive this message the IDE never recovers. All I can do is to delete the process and restart it. Any idea what's occurring It's happening consistently for me any time I try accessing a remote site. The site was working yesterday, but when I got in this morning, I am unable to access it via VS 2005. I can get in fine using 2003, though. If I resolve ...Show All
KrazyMGA modify data, and update datagrid!
Hi, I am having a problem updating and displaying data. On a form, i have a data grid which, when the user double clicks on a record my data table updates. For this i am using the following commands: dt = Me .FantasyDataSet.Draft dt.Rows(position - 1).Item(Team) = player & ", " & pts dt.AcceptChanges() As i step through my program, i can see that my datatable, dt, is being updated with new values. i have another datagrid which i want to display the datatable i just updated, but it never updates. I have another routine which i call just after dt.AcceptChanges(): Public Sub updateTeamGrids() Dim oCon As OleDb.OleDbConnection Dim oCommand As OleDb.OleDbCommand Dim ...Show All
Ralf_from_Europe TImer w/ call fx
i need 2 call 2/4 fx in a loop at the same time, add a timer/delay b4 every fx is executed code is sumtink likie this Private Sub Walk_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Walk.Click Dim a As String Dim b As Integer Dim c As String Dim d As String a = &HFF b = &H5F c = &H11 Do Until Timer2.Enabled Call RLeg_Up() Loop Call LLeg_Up() d = (SendWalk(0) Xor SendWalk(1) Xor SendWalk(2) Xor SendWalk(3) Xor SendWalk(4) Xor SendWalk(5) Xor SendWalk(6) Xor SendWalk(7) Xor SendWalk(8) Xor SendWalk(9) Xor SendWalk(10) Xor SendWalk(11) Xor SendWalk(12) Xor SendWalk(13) Xor SendWalk(14 ...Show All
Rajasekaran Ponnusamy Array list
Hi all, i have stored several class object in an arraylist. Example: arrList1.Add(aClass) May i know how to check/see or print the item in the arraylist this is because I need to know what data is in the arraylist. Here is a sample which is very similar to yours showing creating objects and adding items to an arraylist from a dataset and then verifying the contents are correct. As I dont know how you are determining the items are all the same - if its by the fact that there is a messagebox which is showing each iteration of the loop. This is going to show you the first item of the arraylist everytime. Possibly changing this to something like MessageBox.Show(intw1.Count) or MessageBox.Show( CType (intw1.Ite ...Show All
zx5000 I'm making a conversion program...
For those of you who know me, I've finally settled on an idea for a program. It converts (for starters) from anything that ends with meters (you know, centimeter, millimeter, kilometer) into anything else that ends with the word meters. You get the idea. I'm useing combo boxes, and I need to assign values to the names in the box, so they can be multiplied. Like, the selection (this is exactly what it looks like) "centimeter(cm)" needs to be assigned the value 0.01. How do I do that, and make it so that when one thing from one box is selected, and one thing from another box is selected, and a button is clicked, they get multiplied together Thanks. What you can do is set the entry in the combo b ...Show All
Binary Object Test Bench
in VS2005 Standard, when I right click a class in class view, select create instance, and say OK, I get "create instance failed", with details = 0x80004005. I've tried this with several different classes...which have warnings but no compile errors, and which I don't think are "generic" (because I don't know what that is and didn't try to make them that.) Any suggestions Thanks! The Object Test Bench is available in Standard (I have standard, and I have Object Test Bench). The only thing mentioned as being only available to Professional and Enterprise is the Class Designer. I had been getting the same exact error as you mentioned; however, by viewing the details printed to the ...Show All
Surezsu I need help on opening a file on the computer
I want to click a button and it will open a program in the Start Menu then it opens All Programs and then it will open a file in the all programs folder well you need to know the path and filename otherwise you can't really run the process. you can get the filename by right clicking on the shortcut and going to properties and seeing what the "target" property holds in the shortcut properties of that item in the start menu. you can get the path to the start menu no problem using the Environment.GetFolderPath(Enivornment.SpecialFolder.StartMenu) however you need to know the executable filename and its path. so is this your own application you want to run from within another app where ...Show All
Vincent Fournier What's the difference
Ok folks, so I've got a program that runs code that has a FOTRAN dll that (thank god) I finally have working, for the most part. At least it does when I pass it the path/name of a file that I've created using notepad. Buuuut, that's not gonna cut it when it comes down to it. What I've done is created a GUI that creates an input file for FORTRAN and all it does is write a line of text for each input in FORTRAN. But when this VB written file,written using streamwriter or FileSystem.AppendText (I wondered if there might be a problem with the streamwriter making hidden characters but no), is passed to my FORTRAN dll and the methods native to the FORTRAN code attempt to consume the data, I run into an interesting problem ...Show All
Rafael Mores Why Does my Add Record not Save--See Code Inside
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me .ClienteTableAdapter.Update( Me .BaseDeDatosPenaDataSet.Cliente) Me .BaseDeDatosPenaDataSet.AcceptChanges() Me .Update() 'Error is::::Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. 'Error is ::::Update requires a valid UpdateCommand when passed DataRow collection with modified rows. End Sub ACCOUNTINGONLINE.US to update the datasource (Database i.e.) you have to set the Update/INSERT/DELETE Command for the adapter the DataAdapter's Update method calls the respective Insert, Update, or / and Delete for each inserted, updated &a ...Show All
Peteraap DirectoryServices (Active Directory)
I've got an existing program that retrieves a list of computer names on the domain via Active Directory. I need to update the program to retrieve computer descriptions from Active Directory along with computer names. I can't figure this one out and after googling high and low I've found no solutions. Any help would be greatly appreciated. Here is a code snippet demonstrating the retrieval computer names: Dim myActiveDir As New DirectoryServices.DirectoryEntry("LDAP://microsoft") Dim mySearcher As New DirectoryServices.DirectorySearcher(myActiveDir) Dim mySearchResult As DirectoryServices.SearchResult Dim alDomain As New ArrayList mySearcher.Filter = ("(objectClass=computer)") For Each mySearchResult In ...Show All
