Answer Questions
Greenstrike How can I clone a control?
Hi folks, could anyone please help me with the following problem: TextBox1.Text = "Test" Dim control As Control = New Control control.Name = "TextBox1" Dim s As String = control.Text When I debug this relatively simple code the string s contains nothing or just "". Why I thought that since I set the control.Name = "TextBox1" it would also clone other properties from TextBox1. Ny .NET version is 1.1. That's not how it works. The "New Control" code creates a generic control which is *not* the same as a TextBox control, TextBox is derived from TextBoxBase which is derived from Control. Neither the Control class nor the T ...Show All
divya mittal Form Refresh During extensive process
Hi, I need to refresh a winform (vb.net 2005) during an extensive process. The process is a DTS package execution (the process takes more than 5 minutes). I need to show to the user in a listbox the failure or success of every steps in the package during their execution. The form seems to frozen and even i use a timer to refresh it, it doesnt work. I tried the Application.DoEvents() too...but nothing seems to work. any idea sample code Thanks mcrisf Thank you, i will follow your suggestions! mcrisf application.doevents is bad practice - can cause unpredicatable results at times. The best thing to do in such a situation, when a process is time consuming i ...Show All
Alex2200 populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. very much so... so i have to come up with parameters for each field in the database right IGiberson wrote: Also, it is a 3 form application... with different information on all forms... would it be easier to populate the database each time they go through the form or should i just have it get all the info at the end and populate it then it depends entirely on the database and how you want the applicati ...Show All
Andre's Updating a Record in a Database Based on Another Record
When a user enters a record for an existing item, I want to find the last entry in the database and update the Date out to the current time. Basically the database would contain the following fields: DateIn DateOut - hidden in form Process Item If the item doesn't already exist, the initial entry will be DateIn, Process and Item. If the item exists I want to create a new entry and update the DateOut for the last entry of item. I say last because there will be multiple entries of item. What's the best way to i dentify the last entry for item while entering the current data. Feel free to offer better process if you have one... Thanks, I plan to use the prima ...Show All
mareikuramaori View computernames from a group in active directory
Dear friend, In my active directory, I have groups of computernames in spite of group of users. I know how can view users from a group, but in this case, I need to view the computernames from a group. Do you know how For example, to view users from a group the code is: DomainString = "GRUPOCGD.com" UserString = "rhs0002" Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString) For Each GroupObj In UserObj.Groups List = List & GroupObj.Name & vbCrLf Next Wscript.ECHO List UserObj = Nothing GroupObj = Nothing But how I can view the computername from a group Do you know how and way Thanks! ...Show All
Bryant Likes Redirect XCOPY output from the console to a rich text box control
Ok, this about has me tied in knots! I am trying to use xcopy in my program to copy files from one location to another location and have the info normally displayed in a console window redirected to a rich text box. I cannot get it to work. I don't get any errors. The code snippit is below. I can use "/K dir *.*" for the Arguments and it redirects fine. I am completely stumped. Dim myprocess As New Process Dim info As New ProcessStartInfo With info '.CreateNoWindow = True .FileName = "cmd.exe" .Arguments = "/K xcopy.exe C:\Test\Trash1 C:\Test\Trash2 /S /I /-Y" '.WorkingDirectory = Application.StartupPath .UseShellExecute = False .RedirectStandardOutput = True .Redirec ...Show All
Maxim Masiutin ConfigurationManager.AppSettings Error
hii all! When i tried to access a value from the configuration file ( ConfigurationManager.AppSettings("ADMIN")) i am getting an error: 'ConfigurationManager.AppSettings' is not declared or the module containing it is not loaded in the debugging session. can you please anyone help me who have experienced the above said error thanks in advance, best regards, Ammar. (platform: .NET Framework 2.0, VS 2005, SQL Server 2005) any help, suggestion, URLs would be greatly appreciated! best regards, Ammar. ...Show All
boulderbum GDI+ How to handle multiple complicated Paths individually
Hi All, I am developing an app that draws out complicated paths. I have this working fine. I want to be able to load an undeterminable number of paths onto the graphics and be able to handle each seperatly. Dim pathSection As New GraphicsPath pathSection.AddArc(250, 80, 100, 50, 30, -180) pathSection.AddLine(180, 220, 320, 80) Dim pathSection2 As New GraphicsPath pathSection2.AddLine(50, 20, 5, 90) pathSection2.AddLine(50, 150, 150, 180) ...Then I can set up Regions based on these paths and use Region hit testing to determine which path the user is selecting. The PROBLEM: This code will work but I have no way knowing if my app is going to have 2 GraphicsPaths or 1000.&n ...Show All
Mike_Sos Reading Bits
I am pulling an 'int' data type out of SQL Server with a length of '4' which I want to read the bits. I have no clue on where to start on this as far as declarations or methods to use...I need to be able to read each bits to see whether it is set or not. Possibly the easiest way I see is to store each byte as an array of bits so then I could just loop through and do my comparisons. I do not need to write, just read. Thanks a ton! EDIT Sry - I screwed up trying the example - It does give a list of boolean values representing the 1s and 0s. I've been looking at this for a while and haven't found any built-in methods for doing this. Most methods that ref ...Show All
Batikit Open 'Hidden' Form on Key combination (VB, VS05)
Hello, I'm trying to develop a program or service, which ever is best suited. Basically I need the program (or service) to run on Windows start, with compatability for Windows XP and Vista (2000 support isn't required but could come in handy) I have the program designed, but I cannot get the thing to run hidden and only show itself on command, via keyboard key combination (Ctrl + Alt + M for example) I could use "me.visable=false" but I dont know how to counter this on key combo. Any Ideas Many thanks Daniel 'fred' Munro Daniel, According to your demand that use key combination to hide the form, I searched KB and MSDN, there is an article titled XL97: How to Temporarily ...Show All
LiveGadgets 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. Im not sure... I've never heard of ...Show All
miku FileUpload - How do I trap maxfilesize problems
The fileupload control works well for files < 4MB (maxrequestlength), but if the file is larger than this the program fails with: - the page cannot be displayed, or Server error in '/xxxxx' application Maximum request length exceeded How do I trap this so that I can return a better error message The failure occurs before the Page Load from any callback, so I can't see any way of trapping the error, and I haven't seen any event or property of the Fileupload control that I can set to say "Do this when Max Request Length is exceeded" I don't want to accept larger files, I'm happy to live with the limit. Regards, Robert Barnes But that does not answer my questio ...Show All
Chrisky Retrieve Bios info with NO OS loaded on a Command Prompt!!!!
Hello, I need to Pull Mainboard SN# , manufacture and Model from the Bios, with NO OS loaded I am booting to a 95 /85 or XP command prompt off of a floppy. IS THIS POSSIBLE Any and all help and direction would be great... thank you Marcelo Not from Visual Basic.NET as any app written in it requires the .NET Framework in order to be able to run which in turn requires Windows. In order to do what you are looking to do you’d need to write such an app in a language such as C or C++ that can be built to native code. ...Show All
outcast1881 Access 2000 Macro
How can I connect to an Access database using ADO and execute a stored access macro code and documentation provided in spotty's first link... ADO or ADO.NET are you using VB6 if so, VB6 is not supported and is the wrong place to post and the best place would be to post at the appropriate communities: www.microsoft.com/communities General document about using the Access Object model using VB.Net http://support.microsoft.com/kb/317113/ With the following thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=64703&SiteID=1 Showing calling an Access macro from VB.Net. I have never used Automation, can you give me any more ...Show All
shmulik_segal The value violates the MaxLength limit of this column
pleas help me vs.net2005 i have textbox that binding to dataset table1.name my database in sqlserver 2000,my lenght name= 100 and nchar but i update sqldataadapter e error ecord The value violates the MaxLength limit of this column. please help me what error happen my lenght is 50 and my input 20 my database lenght is 100 but my input char is 20 but this error happend please help me Didn't help me... Make certain that the max length value of the column is the same in your dataset and in your database, also when do you get the error, are you trying to update data to the database when you recive this or, are you just inserting the row in the Table in the data set Try using nv ...Show All
