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 > november 2006

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

Find Window Question
Posted by Newbie Coder at 11/30/2006 11:33:47 PM
Hello Group I am trying to find a window using the known classname, which I got through Spy++ The classname is'AfxWnd80s' & when I use FindWindow API to return the INT32 with the window handle it returns 0 (zero) Example: Private Declare Function FindWindow Lib "user32" Alias "Find...more >>


Access and SQL server update
Posted by Bonzol at 11/30/2006 8:24:42 PM
Hey there,, I know when updating,, Access can be differnt from SQL server this works in access from a vb.net 1.1 prog SQL = "Update Clients SET UnameID= '" + updatevalue + "' WHERE ID = " + checkValue + "" Can anyone just quickly tell me what i have to change for it to work in SQ...more >>

Calculate inside a form and use the same form as Insert record form
Posted by reidarT at 11/30/2006 7:49:41 PM
I have 3 fields in an aspx page. The 3. field should be the sum of field A and field B I use OnTextChanged to calculate the sum in field3. At the same time I want to insert the content of theese 3 fields into a row in a table. The problem is that I need 'postback is true' on the textfields to...more >>

Fastest String search
Posted by beersa at 11/30/2006 7:36:26 PM
Hi All, I have to query the database with the string from text file. Here are the details: OS: WinXP Home Pro DB: Oracle 9.x The table in DB has 20,000 rows. The text file has 15,000 rows. I wrote a program and read the string from text file and run SELECT query in DB to look for the s...more >>

vbc : Command line (0,0) : error BC2006: option 'r' requires':<file_list>'
Posted by Franky at 11/30/2006 7:17:46 PM
using Dim VBCodeProvider As New VBCodeProvider the first time my code is run, to compile and run the sample code it works OK the second time my code is run, to compile and run the same sample code I get the following: vbc : Command line (0,0) : error BC2006: option 'r' requires':<fil...more >>

Cross-thread operation not valid.
Posted by TClancey at 11/30/2006 5:34:02 PM
I'm confused! Probably becuase I know little about threads, and really should. But... I have a serial port control, when it reads data I want to update several things, database fields and tables, also a text box. Everything works fine apart from updating the text box where I get this err...more >>

Email Socket Question
Posted by googlegroups NO[at]SPAM theindianmaiden.com at 11/30/2006 3:16:57 PM
I am learning vb.net and trying to create a simple program to watch port 25 and receive email. I do not need any advanced features. I just need to connect, watch and grab the emails as they come. This seems like it should be a pretty simple but I can not seem to find any examples in vb.net 8....more >>

Best way to get a Junior Programmer up to speed
Posted by BK at 11/30/2006 2:13:41 PM
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic experience. We employ some parts of XP such as pair programming, and this should help. Other than books, do...more >>



End Processing in Multithreaded App
Posted by Jay at 11/30/2006 1:08:58 PM
How do I stop execution of remaining sub procesures in a multithreaded app? For example: sub form_load dim i as integer for i = 1 to 5 '5 threads dim ts as threadstart(addressof classname.procwhatever) dim wthread as thread(ts) classname.currentthread=wthread whread.setapartmentstate(apar...more >>

Best way to communicate from Desktop to SQL DB
Posted by Anil Gupte at 11/30/2006 1:06:10 PM
Hi All: I am looking for general directions on "the right way" to do something, which is very critical to my application. I want to communicate with a SQL server database on a Windows Server (in the future it could be a Linux MYSQL server, but I don't know for sure). My application is a...more >>

NNTP Question
Posted by Bishop at 11/30/2006 1:00:06 PM
I'm using VB.NET with Sockets to read newsgroup content. I seem to have everything working good but when I read the messages in the newsgroup I don't seem to get the most recent messages. I issue the "Group" command which gives me the oldes and newest message number and I'm able to loop th...more >>

how to display data in a crystal report in vb.net 2005 windows based application?
Posted by Gurunadh at 11/30/2006 11:30:55 AM
Hi friends, we have developed a windows desktop application in vb.net 2005 with MS-Access as backend ,our problem is we have to display data from a datagridview to a crystal report,we have written the code to display in crystal reports it is working in the system in which w...more >>

deployment of project migrating MSDE to SQLExpress
Posted by Matt Fielder at 11/30/2006 11:00:49 AM
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current install is via InstallShield. As I've just found out that MSDE is not supported under Vista, I n...more >>

Hiding dialog causes ShowDialog to return
Posted by NickP at 11/30/2006 10:24:38 AM
Hi there, I was wondering if there was any way to stop the hiding of a dialog from returning from the ShowDialog function? i.e. If you create your own dialog and put some code in that hides it temporarily during it's use, the ShowDialog function will return the second it is hidde...more >>

catching close button
Posted by lord.zoltar NO[at]SPAM gmail.com at 11/30/2006 8:18:14 AM
How can I prevent the big close button in the top of the window from closing the window? I want to have and "are you sure?" confirmation so the user must press "Yes" before the program ends. Right now, I've tried catching the FormClosing and FormClosed events. The message box appears at the righ...more >>

Great VB GUI Code
Posted by Scott at 11/30/2006 7:18:58 AM
VB GUI source code for developing please see below web site. GUI Ver. 1.0 Is a very fancy pull down menu, toolbar multi tabbed GUI menu interface for any version of Visual Basic should run and compile from versions VB 1 to V6 (VB 1, VB2, VB3, VB4, VB5, VB6), Has pull down menus, toolbar, tabb...more >>

String to Byte & Vice Versa
Posted by Hugh Janus at 11/30/2006 4:35:14 AM
Hi all, I am using the below functions in order to convert strings to bytes and vice versa. I totally ans shamefully stole these functions from this group btw! Anyway, they work great but as sooooo slow. Anyone know how I can speed this functions up? I basically need to convert a byte to ...more >>

Serialization problem
Posted by Norman Chong at 11/30/2006 4:34:01 AM
Hiddeldi ho, I want to save an object so that I can use its content after I restart my program. I tried to solve this with serialization because someone told me that this is the correct way for this. So I wrote the following code to serialize\deserialize the object, but now I have the problem...more >>

Transparent text box.
Posted by zebik NO[at]SPAM op.pl at 11/30/2006 4:27:17 AM
Hi. Does anyone know how to create one effect. When I choose a text in combobox, a richtextbox gets a new text loaded to it. But it is not transparent. VB.NET 2005 desn't allow me to do it. Is any other way to have transparent textbox? Thnks. ...more >>

Dropping folder on desk top icon
Posted by al jones at 11/30/2006 3:27:09 AM
Normally I have some idea of where in the MSDN to start looking but on this one I have absolutely no idea. A fellow who uses my 'toy' asked if would be possible to drop a folder of files / folders to be processed onto the desktop icon ( well, of course it would ;) ) My question is how do I det...more >>

Create Property on the fly
Posted by Marc Robitaille at 11/30/2006 12:22:02 AM
Hello, Is it possible to add a property to a class on the fly? If yes, How can I do this or where can I find an exemple? Thank you Marc R. ...more >>

load external html vs 2005
Posted by Jeff Allan at 11/29/2006 10:36:31 PM
Hello, I am trying to load an external HTML page into a DIV tag with .NET 05 and I can't figure it out. Any suggestions? My Scenario: - Gridview populated with list of available files - I can get the external page to load in a new window just fine - I would like the detail to show on the...more >>

I need to find a way to lock" freeze" table in datagrid.
Posted by kdpo1990 NO[at]SPAM gmail.com at 11/29/2006 9:10:48 PM
I've worked with ASP.NET apps. for a long time, but now, i have to figure out how to do same in win app. I need to find a way to lock or freeze table column in datagrid. This is a link to an article explaining on how to do this in HTML: http://web.tampabay.rr.com/bmerkey/examples/locked-col...more >>

Full Screen
Posted by Richard at 11/29/2006 9:08:41 PM
Dear All, Does someone have a clue as to how you can get a form to show show itself "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you press F11? Really need a solution Regards Richard ...more >>

advanced validation by code
Posted by Sankalp at 11/29/2006 6:43:01 PM
Hi I am writing a large program where I am using three text boxes. I am performing validation controls on these text boxes however there are some conditions Names of textboxes 1. x 2. y 3. z The conditions are 1. x , y , z should be numeric. 2. x and y can be blank ( x = "" , y = "") ...more >>

VB vs. C# language challenge question
Posted by Tomasz Jastrzebski at 11/29/2006 5:28:12 PM
Hello, Below there are two equivalent(?) pieces of C# and VB.Net code. While the C# version compiles with no warning, the VB.Net version does not compile due to the compiler error BC30149: Class 'c2' must implement 'Sub m1()' for interface 'i1'. Does it mean that in VB interface must be imp...more >>

problem with join()
Posted by André at 11/29/2006 4:47:46 PM
Hi, I have a two-dimension array with integers and i want to join it into a string. See my code: dim va(10,5) as integer dim mystring as string .... for j=1 to 10 for k=1 to 5 mystring = Join(";",va(j,k).ToString) next next The error i get is: "value of type string cannot be conver...more >>

how to make cookies into an array?
Posted by André at 11/29/2006 3:48:26 PM
Hi, I need several cookies depending of an variable (x), so i defined a HttpCookie() as an array. My problems: 1)I get the error: Object reference not set to an instance of an object. 2)My second question is: how to request those cookies, because there is no name? Thanks André I d...more >>

Add new record to database
Posted by Marko at 11/29/2006 2:20:44 PM
I am trying to add new record in database. There is no compile error but program is not adding any record to database. Hot to fix it? This is my code: OleDbDataAdapter odbAdapt; DataSet dsObject= new DataSet(); DataTable dtObject; string SQL; string ConnStr; int BrojSlogova; ConnStr =...more >>

Delete Selected Lines from Text File
Posted by cdun2 at 11/29/2006 2:13:04 PM
Hello, I have some code that reads each line of a text file, and if a line is found where the length of the string in the line is > 384, it writes the line to a text file. The other step that I need to take is to delete the line from the source file. The code is as follows; -**************...more >>

How to recognize a Command Line parameter?
Posted by Anil Gupte at 11/29/2006 12:18:00 PM
I am trying to send a command line parameter to a utilty I wrote. For example: c:\utilities\powerbuddy.exe 50 The 50 can be any number. How do I see it in the program? Do I have to create a Main rountine and pass it the value? If so how? And then, how do I load the main form of the ...more >>

How do you translate your WinForms app? (outsourcing localization)
Posted by Joergen Bech NO[at]SPAM at 11/29/2006 12:16:50 PM
Suppose I have written a .Net application and - until now - have hardcoded all my text strings. Now, the application needs to be translated into another language. Furthermore, the translation must be done by someone at the other end of the world, without access to Visual Studio. I suppose t...more >>

edit text in file using streamreader and string.replace
Posted by moondaddy at 11/29/2006 12:12:18 PM
I need to edit the text in many files so I'm writing a small routine to do this. First I have a method that loops through all the files in a directory and passes the full file path to another method (ReadFile). I'm going to use this to edit the file paths in all of my WMP play lists. When I ...more >>

loading treeview dynamically is very slow
Posted by cowznofsky at 11/29/2006 11:53:16 AM
Rather than load all my data into the treeview I am loading when a level-1node gets expanded (for the first time). To set up the code below, I've added a single child node for each level-1node, just so that I can get the "+" and the capability to expand. So the first time I click on any lev...more >>

Column header resizing to accomade the lable
Posted by Prashwee at 11/29/2006 11:52:15 AM
Hi All Just a small problem. I am using DataGridView control for my project implementing in VB 2005. I need to resize my column header lable withd dyamically so that the user can see the lable text as a whole when i enter headers text dynamically. What is the property that i need to set her...more >>

connect vb app to sql 2005 express
Posted by josh NO[at]SPAM adnetss.com at 11/29/2006 10:34:21 AM
I'm pretty new to both sql 2005 and VB but please bear with me. I have installed SQL 2005 express on a Windows 2003 Standard server. I have also installed VB 2005 Express edition on the server. SQL seems to be running fine (I can create databases, tables, modify them, etc.) I have created a ve...more >>

Add a META line to an existing HTML doc programmatically
Posted by Bill Nguyen at 11/29/2006 10:24:58 AM
The HTML doc looks like this: <HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <HEAD> <META NAME="Generator" CONTENT="Microsoft MapPoint 2004"> Now I need to add a META line to force the browser to refresh every 5 minutes as follow: ...more >>

Can't Figure Out why this array is out of bounds now!
Posted by RallyDSM at 11/29/2006 8:45:03 AM
Pre STory - I've had a lot of problems with this program, and I just added the last part of it (the add item code) and now an older part of the program crashes. Public Structure Stocks Public stockName As String Public numShares As Double Public datePurchased As String Publi...more >>

DataGrid borders
Posted by si_owen at 11/29/2006 8:02:16 AM
Hi all, I have a datagrid receiving results from a database with several records for specific date, what i want to do is add a line or blank row under the last record for that date and before the records for the next date begin. does anyone know the code to implement this??? any help wil...more >>

Convert today's date and time to a long
Posted by Holmsey at 11/29/2006 7:21:03 AM
Hi I have to convert am today's date and time (now) to a webservice. The example the web service gives was "1163313527144#" which comes out to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long value? ...more >>

Transparent Picture boxes
Posted by lord.zoltar NO[at]SPAM gmail.com at 11/29/2006 6:55:13 AM
I have a couple of images I'm using to try and pretty up some forms. They are PNG images with transparent parts. I have one of them partly overlaying the other, but my problem is with the transparent parts: If Image1 is over Image2, I cannot see Image2. The transparent parts of the images are co...more >>

send data to OPC
Posted by nizargermany NO[at]SPAM hotmail.de at 11/29/2006 6:37:01 AM
hello i will send data to a slave but i can't: my first code: private datasocket as cwlib.cwdatasocket datasocket= New CWDSLib.CWDataSocket datasocket.ConnectTo("URL", CWDSLib.CWDSAccessModes.cwdsReadWriteAutoUpdate) datasocket.Data.Value = System.Convert.ToByte(1) my second code: ...more >>

Windows Installer Vs. ClickOnce
Posted by douglass_davis NO[at]SPAM earthlink.net at 11/29/2006 6:06:49 AM
I am making a VB 2005 app, and I have another installation question. :-) Have you ever had to use the windows installer instead of clickonce installation? I read an article that says you have to use the windows installer when you have a "complex" installation. What does that mean? Specifi...more >>

Logic Troubles - reading in a difficult textfile
Posted by Justin Fancy at 11/29/2006 5:45:49 AM
Hi everyone, I have a textfile which I need to read and compare dates. The text file summarizes every time I do an update to an internet site. Sample output is as follows: Copying humanresources\compensation files from tcinfotest to tcinfo ----------------------- Start Time: Tue 01/03...more >>

Looking for a simple explanation of how to walk through a dataset in .net 2.0
Posted by SmartbizAustralia at 11/29/2006 4:11:13 AM
Hi, This seems to be a neglected bit of info as everyone gets carried away with data binding examples instead. Can simply use the datareader as below: Private Sub PopulateControls1() Dim sSql As String Dim cn As SqlConnection cn = New SqlConnection(m_sConnection) cn...more >>

Data Grid Check Boxes
Posted by si_owen at 11/29/2006 3:21:16 AM
Hi all, I have a db field that holds data as a booleon 0 or 1. when it is pulled into datagrid it is automatically changed to a checkbox, either ticked or unticked. Does anyone know of some code that will change the output of that cell. I need the 0 or 1 to become text "in" or "out". any...more >>

Its Urgent: I have export database into excel file if office not installed then it gives me error
Posted by mina at 11/28/2006 10:50:27 PM
One of my client want to export data into excel file but he can not installed office just installed excel and want to export file into ..xls format at that time he got error .... Retrieving the COM class factory for component with CLSID{00024500-0000-0000-C000-000000000046}failed due to the foll...more >>

How to have a context menu while in Designer
Posted by Franky at 11/28/2006 9:10:38 PM
I put a RichTextBox on a form and right click it while in the Designer and one of the context menu items is "Edit Text" I have a control that has a RichTextBox on it. I'd love for that control to have that ability. Can you tell me where to look for info on how to accomplish that? Than...more >>

Where is the VS mru list file stored?
Posted by Hexman at 11/28/2006 4:47:54 PM
Hello all, I want to remove some (not all) projects from the mru list. Where is it stored so I can edit it or is there a way to selectively remove an entry? Thanks, Hexman...more >>

Create a Deployment Package!
Posted by Vai2000 at 11/28/2006 4:22:11 PM
Does any1 know how to invoke a custom action or script while u install a VB6 package... TIA ...more >>


DevelopmentNow Blog