Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008


all groups > vb.net > august 2005 > threads for wednesday august 17

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Bind variables in vb.net
Posted by RDS at 8/17/2005 11:47:45 PM
Does anyone know how to do the following vb6 code using bind variables for oracle dbs, in .net? dim cmdMyCommand as ADODB.COMMAND Set cmdMyCommand = New ADODB.COMMAND With cmdMyCommand .ActiveConnection = objConn .CommandText = "Select COL1 from TABLENAME Where COL2 = ?" .Parameter...more >>

An Error stating that ViewState is corrupted
Posted by Ramakrishnan Nagarajan at 8/17/2005 11:25:19 PM
Hi, I tried to execute a page. For first few steps it was working fine. Then suddenly at an unknown step of a dropdown change I am getting the following error message. The viewstate is invalid for this page and might be corrupted. I have initialized the particular ViewState during page lo...more >>

Very weird problem using NotifyIcon and Context Menu for MSN like form/app closing behavior
Posted by ThunderMusic at 8/17/2005 10:19:52 PM
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click on it and choose Open from the context menu, I want the form to reappear. For that, I got the point ...more >>

Treeview add node problem
Posted by poldoj at 8/17/2005 10:14:32 PM
Hi all, I have a treenode control and I would like to add a node in a certain level as child. For example I know that with this code I can add a level one node plus a level two node: ------------------- Dim node As TreeNode node = TreeView1.Nodes.Add("Level one node") node.Nodes.Add("Level...more >>

How to protect my SQL Server queries
Posted by Dino Buljubasic at 8/17/2005 9:45:34 PM
Hi, My application is extensivelly querying a remote server. Somebody sniffing the traffic could eventually find out all important information such as passwords (from users in datatables as sell as the password and user name used in connectiong string to that server. How can I protect my s...more >>

Deployment project properties - Version
Posted by evan at 8/17/2005 8:48:37 PM
Hi, Does anyone know how to access (at runtime) the "Version" parameter of the deployment project? I need to be able to display the "Version" of the deployment project in an 'About' box. /evan ...more >>

Ping and Tracert
Posted by Adrian at 8/17/2005 8:41:35 PM
Hi I need a VB dotnet ping and tracert GUI utility written in VB.net 2003 (not 2005). I was sure there would have been many working examples for ping but I cannot find any :( I was hoping to find one I could just add to my app as there is no point in reinventing the wheel! I could liv...more >>

Help creating a function
Posted by Gary Kahrau at 8/17/2005 8:22:44 PM
I want to create a function and can only get half way to my goal. dim sStr as string sStr = Entry(2,"a,b,c,d") ' Sets sStr = "b" Entry(2,sStr) = "B" ' Sets sStr = "a,B,c,d" I tried create a public property. However, the Set does not allow ByRef. How do I work around t...more >>



Assigning 2 Databinding Expressions To The Same Property
Posted by Nathan Sokalski at 8/17/2005 8:07:44 PM
I have two databinding expressions (the first & last names from a DB) that I want to assign to the text property of a Label so that the result is LASTNAME,FIRSTNAME. At the moment, I have the following which I know works when I use it by itself: text='<%# DataBinder.Eval(Container,"DataItem...more >>

Error: COM object is either not valid or registered
Posted by Daryl Zavier at 8/17/2005 7:05:05 PM
Hi Guys, Paradon my ignorance on this issue. I've done up a simple VB.net windows application which when executed from a client PC, is suppose to execute a DTS job on my server. When I implemented and executed the application to my client, I get this error message "COM object with CLSID...more >>

NuSoap Send a Dataset to VB.Net
Posted by Gary Townsend at 8/17/2005 6:55:54 PM
I am writing an app in vb .net that will use an XML webservice written in PHP NuSoap. I want to have the NuSoap server send a dataset to my VB .NET application i am trying to find any documentation of anyone pullling data from a database in PHP then using NuSoap to send it to a .NET application ...more >>

Problem Getting Data From DataSet
Posted by Nathan Sokalski at 8/17/2005 6:06:37 PM
I have retrieved data from a database using a SELECT statement that includes an INNER JOIN. The data seems to be retrieved to the DataSet OK, but I am having trouble getting the data from the DataSet. The code I am using is as follows: Private Sub btnDownloadDB_Click(ByVal sender As Syste...more >>

BitMap Size vs Drawing
Posted by Dennis at 8/17/2005 4:52:04 PM
I create a bitmap of 12 pixels wide x 15 pixels high then create a graphics object from the bit map. When I draw a rectangle g.DrawRectangle(blackpen, new rectangle(0,0,12,15)), I get the top and side but the far side and bottom are not drawn. If I draw a rectangle g.DrawRectangle(blackpen, ...more >>

How to pass Ctrl+C to the background application in vb .net?
Posted by Alison at 8/17/2005 3:26:02 PM
Hi, All, I have a vb .net program that starts a process in the background and I wondered whether it is possible to pass Ctrl+C to interrupt (not to kill) the background process. I know the background application was written in C and used SIGINT to handle the interrupt. I am at a loss about ...more >>

IsNothing(_myVar) vs. _myVar Is Nothing
Posted by Dave Taylor at 8/17/2005 2:46:23 PM
This is really not very important but something that I'm just curious about...which is faster to execute or are they the same: (1) If IsNothing(_myVar) Then ... or (2) If _myVar Is Nothing Then ... I find myself using #1 most frequently but for no real reason other than I like the w...more >>

mouse click
Posted by marauder at 8/17/2005 12:21:03 PM
I am trying to write an auto clicker for a web game. I can bring up the web page with a linklabel control, but i can't figure out how to move the mouse (through code), and cause it to click what ever is underneath it. I am new to VB, and only a novice programmer in Delphi. I would appreciate a...more >>

Add records to a dataset manually
Posted by Derk at 8/17/2005 11:56:55 AM
I have a text file that I would like to load into a dataset, fields are fixed length, Could someone point me in the right direction Thanks Derrick ...more >>

Device Manager listing in VB.Net
Posted by hayworth NO[at]SPAM hotmail.com at 8/17/2005 11:28:49 AM
Does anyone have any VB.Net code to get the devices listed / enumerated in the Device Manager listing. I'm trying to figure out if a device (it's actually a digital camera) is connected to the computer. When it's plugged in (Firewire), it shows up in Device Manager under the "Imaging Device...more >>

Spell Check Component Recommendations
Posted by Evan Stone at 8/17/2005 11:10:55 AM
Hello All, I'm looking for recommendations on commercial-grade spell check components, and was hoping you might have some good advice for me... So far I've seen ComponentOne, RapidSpell, and Aspose, so I was wondering if there was a general preference for one of these three, or perhaps anoth...more >>

ProcessID and Thread ID Exceptions in framwork installed system
Posted by Tulasi at 8/17/2005 11:02:05 AM
hi all, i am the developer of vb.net.My project everything is completed and closed.But My project is not running on Only framework installed system.The application running fine on Dot Net Installed system.In framework installed system i am getting the error as follows. "ProcessId and Thread ID ...more >>

Compile on the fly
Posted by LS at 8/17/2005 9:06:53 AM
Hello, I have a vb.net program and I would like to include vb code into my database (or into texfiles) which should be compiled or interpreted whenever necessary for my program. So that I can make changes on the fly without always having to stop and recompile my program. Is this possibl...more >>

Set column values in a DataTable all at once?
Posted by nate axtell at 8/17/2005 9:02:54 AM
Is there a way to set all of the values in a DataTable Column to a specific value without looping through the rows? The table/column already exist; I just want to clear all the values out to a general value, like setting them all to False. Thanks, Nate ...more >>

Fill ComboBox
Posted by Meelis Lilbok at 8/17/2005 8:49:38 AM
Hi "Dumb" question; What is the best way to fill ComboBox from database? I have seen many different samples(Do..Loop,DataBinding;DataSource), but what is the "correct" and "best" way? Regards; Meelis ...more >>

VB<->VBA interoperability
Posted by kuhni at 8/17/2005 8:21:13 AM
Hi All, I have a very general question regarding the interoperability of VB/VBA applications. I know that it is possible to create a form e.g. in Excel from which I launch Word and then show the Excel form on top of Word. But I cannot manage to show a form - which I have created in a sta...more >>

Programatically uncheck a property in desktop/properties/display/
Posted by Rich at 8/17/2005 8:16:02 AM
I just discovered that if I set an accelerator letter on a button it won't display the accelerator underline unless the "Desktop/Properties/Display/Effects/Hide Keyboard Navigation Indicators Until Use the Alt Key" property has been unchecked. This property is checked by default. All of...more >>

Instancing a class where base object already exists
Posted by Lee Gillie at 8/17/2005 7:41:19 AM
What I am hoping to do is make a constructor for a derived class that can accept an instance of the base class. Maybe this just is not possible? I am working with the new SSLStream in the 2005 beta. They came up with what seems to be an awkward object model to me. The SSLStream has nearly t...more >>

HashTable gone nuts...
Posted by Q at 8/17/2005 4:58:34 AM
Hi, I'm using a hashtable to store away a bunch of numbers from my array: The Hashtable should look like: Key Value 1 01234 2 01235 3 01245 .... 10 23456 I use a module to keep my Hashtable "alive" all times/during the whole runtime: Module ModGlobVariablen Public lfdNrHash...more >>

Set focus to a textbox on page load
Posted by Water Cooler v2 at 8/17/2005 3:20:32 AM
I am new to ASP/ASP.NET so kindly be gentle. When my index.aspx page loads, I need the focus to be on one of the textboxes called txtUserName. I come from a VB background, so expecting the obvious, I go to the Page_Load event of the index.aspx page and try to write txtUserName.SetFocus but I ...more >>

TabControl and Form.Dispose() - Strange Behaviour
Posted by theintrepidfox NO[at]SPAM hotmail.com at 8/17/2005 12:02:29 AM
Dear Group I wonder if you can help me with the following. I have a form(Form2) that contains a tabcontrol. If I click 'Tab2' Form3 should be displayed and 'Form2' closed. The instruction to close Form2 is in the Load event of Form3 but it actually doesn't matter where I put it. Every time I ...more >>

now.ticks does not work
Posted by Willie jan at 8/17/2005 12:00:00 AM
place this behind a button that fills a listbox. as you will see the time is now and then 0 or filled in???????????? by hitting the button. is there a way to determine the real elapsed time? thanks, Willie Dim T As Double T = Now.Ticks System.Threading.Thread.Sleep(3) T = Now.Tic...more >>

How to make MODAL MDIChild
Posted by Chris Petchey at 8/17/2005 12:00:00 AM
My App is an MDI Parent with MDI Child forms. One of the child forms calls a modal dialog form. I would like the modal dialog form to be INSIDE the mdi parent window. I am not bothered about any of the other things associated with MDI Parent/Child relationships, this is purely an appearan...more >>

Printing Document
Posted by DazedAndConfused at 8/17/2005 12:00:00 AM
I have a 8.5 x 11 landscape document with about 1/4 inch of space on the left and right where there is no print. The document displays perfect in print preview, but when I print it, about 1/2 inch on the right is not printed (leaving about 3/4 inch empty margin on the right side of the page)....more >>

Regular Expression Help please
Posted by Kerry at 8/17/2005 12:00:00 AM
Please help. I need a regular expression that parses a stream of up to 450 characters into 15 separate strings of up to 30 characters each. The regex must break at newlines. Ideally, the regex will "word wrap" that is, not break in the middle of words. I have the following: (?m:(?:(.)?){...more >>

Thread
Posted by Doug Bell at 8/17/2005 12:00:00 AM
Hi, I have an application that is required to print labels. One issue that I would like to clean up is that the application hangs for a time while it prints the required label. I have a Class to take care of the printing. Could someone explain how I can call this class and have it run in ...more >>

One Application server to multiple remote clients
Posted by Rui Dias at 8/17/2005 12:00:00 AM
Hi there! I've got this situation: One application server where the application is installed; One DB Server where the VB.NET application opens two sqlconnections at startup; One intranet wich application users (about 100) use to connect via remote desktop to the application; Because...more >>

20,20 is not a valid value for Int32?
Posted by Robin Tucker at 8/17/2005 12:00:00 AM
I have a customer (our first "beta" case as it happens) who has Norwegian Windows XP. Our software is not translated to Norwegian (yet), we just have the basic, default, EN version. Anyway, when the software runs he gets an exception: "20, 20 er en ugyldig verdi for Int32." .... which ...more >>

Error : Display Credentials
Posted by Sam at 8/17/2005 12:00:00 AM
I would like to display username on web page via User.Identity.Name using MS VisualStudio.Net 2003 but it is show nothing. However, when I use Web Matrix, it show the username on web page. What's wrong the coding or do I need settings at MS VisualStudio.Net 2003 ? Coding ------- <%@ impo...more >>


DevelopmentNow Blog