Answer Questions
SG2005 How can I put a delay in between code strings?
Have an OLE wave file that I want to allow to finish playing before the system executes the next line fo code. I've tried "System.Threading.Thread.Sleep" and it doesn't work. Here's the section of code. oleChevronLock.DoVerb______________I want the delay here imgGate.Picture = img1Engaged.Picture Quick responce appreciated. oleChevronLock.DoVerb DoEvents() imgGate.Picture = ...Show All
lzeca Mixed data type in a Mulicolumn listbox
How do I store an object and the object.text in two separate columns in the same row of a listbox I want to make one listbox column visible and one hidden. you dont need two columns. . . Override ToString for your object to be the Text you want to display. load your objects in an arraylist/list generic set the ListBox.Datasource to the list. play along - Create a new form Add a listbox and a button Listin ...Show All
Bassam Basamad Creating Arrays
I have an array that is filled with strings, about 250 to be approximate. Now this is tons of typing as you might think. I already have all the strings in a text file, one string per line. Is there a way of filling the array with the strings from the file. I want each line in the text file to be a seperate value in the array. So, line 1 in the text file would be value 0 in the array, line 2 would be value 1 and so on. Thanks. RyanTsai: ...Show All
rouellet Protecting Class Library DLL's?
I originally posted this on VBForums.com, but haven't received any replies yet, so I thought I'd try here. Anyway, the project I'm currently working on is getting quite large and we are looking at breaking a few components of the software off into manageable class libraries (i.e. DLL's). I've been experimenting with it over the past few days and the problem I'm finding is that the DDL's are insecure. What I mean by this, is that when we distrib ...Show All
Jess Sturgeon vb.net console app loads uxtheme.dll
Hi, I was testing out for how to make vb.net not load vb.dll at runtime and the code is like this: Imports System Module MainModule Sub Main() Dim s1 As String = "abc" Dim s2 As String = "abc" If String.Equals(s1,s2) Then Console.WriteLine("done") Console.ReadLine( ) End If End Sub End Module The above code was compiled as a console app. Strangely I ...Show All
chapel21 Child form???
Excuse me guys. Could someone please tell me how to create what I’m assuming is called a child form (a form that when open takes priority over the main form so I can't access the main form until I’ve closed the child form). Thanks in advance!!! System.Windows.Forms.Form class has a property called ShowInTaskbar. To stop your new dialog from showing up in Taskbar, myForm.ShowInTaskbar ...Show All
greesman_jr Automate MS Word Doc with VB.Net
I amtrying to pull info from a Sql Server to populate a word Doc using a VB.Net App any ideas You need to create Data Connection, Data Adapter, and a Dataset. For more details on these steps, follow this walkthrough: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbwlkwalkthroughdisplayingdatafromsingletableinwindowsform.asp . Let say we have a Data Connection to a Northwind database, and a Data Adap ...Show All
ADG How to refresh a bindingsource
I have an SQL Server database with a table I want to export to a comma separated text file. That table is created with a query which filters data from another table. I thought that by using a bindingsource, I could step thru each record and write them line by line to an ascii file. However, the bindingsource frequently maintains the data contents of the previous query. Is there some way to refresh the bindingsource so that it uses the ...Show All
OktaEndy Error when Minimized
I have a form that uses Threads to process data every second. I have noticed during testing, when the Form is minimized, I receive the following error (stack trace): at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] argument ...Show All
surachet Assembly Information button
I'm reading Wrox's Professional VB 2005 and it says the following: Selecting the Assembly Information button from within your My Project window opens the Assembly Information dialog box. Within this dialog, shown in Figure 2-5 it is possible to define file properties, such as your company’s name and versioning information, which will be embedded into the operating system’s file attributes for your project’s output. The frame of the assembly file ...Show All
Tony Lee Hex function and Byte type declaration problem
I have a program that is supposed to format data into 4 hex bytes and sent thru the serial port. The declaration section contains the following: Dim Addr, MsData, LsData, CkSum as Byte Dim Cmd1, Cmd2, Cmd3, Cmd4 as Byte Data is input to the Addr, MsData and LsData bytes and ChkSum is computed as (MsData and LSData are parsed from a single text box input (0 to 4095 range): MsData = Int(InputData / 64) LsData = InputData Mod ...Show All
Alex cai Newbie:-Pros and Cons?
Hi, Given a classic n-tier architecture, I've seen a couple of ways to utilize the data tier and was wondering what the pros and cons of each approach were. One approach has a data tier object referenced/instantiated in the business tier and then its methods and properties are used, whereas in the other approach the data tier was inherited by the business tier. Which method is best/most used and what are the pros and ...Show All
igor1960 trouble setting a max and min value
I have the following code: Private Sub numericTextboxKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim tb As TextBox = CType(sender, TextBox) Dim chr As Char = e.KeyChar If IsNumeric(e.KeyChar) And Not e.KeyChar = "-" Then 'If adding the character to the end of the current TextBox value results in ' a numeric value, go on. Otherwise, ...Show All
JoeP Capture text from another program and store it in the clipboard
I've seen several articles regarding "screen scrapes" and other forms of captures but I have not found one that fits my needs. I am currently developing an application that needs to read text generated by another program. The other program is a telnet client. An example would be: In the other program, I type a command that will generate anything from 30 to 256 lines of output. I want my program to capture this output as it is gen ...Show All
MichealCollins Alright, I've done it!
Basically what I did was create a database in Access that held the password. My application code then looks for the existance of the database. I simply used the username as the database name. Next I took VS 2005 beta 2 and added a database connection in the 'Data Sources' pane then draged the table over so that all data connecting code is done. The code looks like this: Dim DB As Boolean Dim DB ...Show All
