Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score Newbie: error trying to save directory path to database
Keith R - 2 Dec 2006 11:08 PM - 4 messages
I'm working on an windows application (vb.net express, SQL express) where I want to store a path and filename (separately) in a database, then be able to click on a row in the DataGridView to have the app load the file. In ...
Score Key Validation
Arne Beruldsen - 2 Dec 2006 9:30 PM - 4 messages
I have a form where only the letters A-D are allowed in certain text boxes.  This was easy in vb6...but I don't know what to do in vb.net 2005 Thanks ...
Score Database Connection Designer Variables
jimmy - 2 Dec 2006 8:36 PM - 6 messages
Hi, I am working on a database application and have used the database connection wizard to connect to an SQL database. I now need to reference the connection variable (cnn) from another form in the program and i cannot do this. How can i make the variable global or ...
Score Need some Simple Help knowing when a form is accepted???????????
Suzanna - 2 Dec 2006 8:35 PM - 3 messages
Hi Guys, I am trying to use the below code to open a messgae box when the OK button is clicked on a dialog form. Its not working though. The dialogue form is a separate form with just a single OK button ...
Score Re: Upgrading Access 97 application to dotNet
kavsak - 2 Dec 2006 7:22 PM - 2 messages
Thanks guys. I need to rewrite it sooner rather than later to maintain my sanity, because it is expected to last for another 20 years. The front end has 40000 lines of code and and the back end stores 100000 records with a ...
Score Select All CheckBoxes
Newbie Coder - 2 Dec 2006 6:41 PM - 4 messages
Hello All How do I select all checkboxes on a TabControl in code? I have tried this, but the CHECKED property, doesn't work because its not part of the Control class         Dim c As Control ...
Score renaming active control from handler
Marc - 2 Dec 2006 5:21 PM - 2 messages
Hi all, The code below works fine....however i am trying to find a way of renaming the active button control with the text entered in the 'newtxtbox' ,instead of opening a message box! -see MsgBox("test message") when enter is clicked). ...
Score PIAs for Excel 9.0 Make Code Fail
James - 2 Dec 2006 3:44 PM - 3 messages
I am doing some  Excel 2000 automaton using Vb 2005.  I am referencing the Excel 9.0 COM Object Library. The following code was working fine: Dim xlApp as new Excel.Application Dim xlWb as Excel.Workbook Dim xlSheet as Excel.Worksheet ...
Score enter key press
Marc - 2 Dec 2006 2:30 PM - 8 messages
Hi, I want my user to be able to rename a button control by selcting rename from a menu. This then opens a text box in which to enter the new name in. I want the button control to inherit the name when the enter key is ...
Score How Do I Kill Non-Printable Characters?
William Foster - 2 Dec 2006 1:07 PM - 3 messages
Good evening all, I have an annoying query regarding non-printable characters.  I am undertaking data validation on a very large CSV file retrieved from a SQL Database, anything on the other side of the file retrieval is totally out of my control.  Unfortunately, there has been some issue in ...
Score Working with a database
jimmy - 2 Dec 2006 11:11 AM - 3 messages
Hi, I currently have the following code in my program which loads data into a data reader and then adds it to a DataGridView. Using the datareader i cant however delete and modify the data because it is read only. How ...
Score Find All users Desktop
reidarT - 2 Dec 2006 8:58 AM - 2 messages
How do I find the all Users Desktop. I want to put a shortcut there? And at the same time I want to add a shortcut to the 'StartBar' reidarT ...
Score How to set an objects property using Reflection
diego - 2 Dec 2006 6:54 AM - 3 messages
hi everyone, i have a sub that opens a form given the form's name as string and opens it using System.Reflection. How can I set the form's properties at runtime. Here is my code. Public Sub OpenForm(ByVal cFormName) ...
Score best way to learn Windows Forms
jello_world - 2 Dec 2006 12:47 AM - 13 messages
I am a VB6 programmer and I know how to build console apps.. I just dont understand how to get my mind around WinForms; they just seem a lot more complex than VB6. Thanks -Charlie ...
Score Merging two tables in Dataset? I only want to get the matching info based on the two key fields
mike11d11 - 1 Dec 2006 11:55 PM - 7 messages
I have a dataset with a account table and another table that contains transactions for accounts in the account table.  I create a crystal report based off an inner join query of the two tables but takes way too long to generate.  I was told if I can get them into one table that ...
Score Drag and Drop controls during runtime in Windows App
mattgcon - 1 Dec 2006 10:03 PM - 4 messages
I was curiuos if anyone knew of a way to allow drag and drop functionality on the actual controls themselves during runtime within a Windows Application. I want to allow the user to customize a report by moving textbox controls and dropdown controls to locations of their liking. ...
Score Enter Key vs. Tab Key
Michael Cook - 1 Dec 2006 9:45 PM - 4 messages
In my data entry forms, I want to treat the Enter key on text box as though the user has pressed the tab key and jump to the next control. In VB6 I would do this by using the SendKeys "{Tab}" routine. What is the best practice for ...
Score Q: VS2005
G .Net - 1 Dec 2006 8:57 PM - 4 messages
Hi Is there a way in Visual Studio 2005 to compile a solution using .Net 1.0 or ..Net 1.1? Thanks G ...
Score Upgrading Access 97 application to dotNet
kavsak - 1 Dec 2006 8:53 PM - 18 messages
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k network ...
Score For loop variable date
martin1 - 1 Dec 2006 8:49 PM - 8 messages
Hi, all, I try to use Date as For Loop variable, but it said date cannot be used to For Loop vaiable, anyone has any iead? Thanks, Martin1 ...
Score How do you start an assembly dynamically with constructors
rjjaw - 1 Dec 2006 8:30 PM - 3 messages
Here is what I have but it isn't working if someone could point me in the right direction I would greatly appreciate it. Try             Dim objAssembly As Reflection.Assembly ...
Score Magnetic Cursor
Charlie Brown - 1 Dec 2006 6:37 PM - 4 messages
I have written some custom controls that can dragged around a container control.  When the controls reach the edges of the container control, they stop moving.  The mouse continues to travel beyond the border of the control.  When the mouse direction of travel changes, the control ...
Score Manage DataBase
Marcos de Lima Carlos - 1 Dec 2006 6:30 PM - 6 messages
Hi all,     I have a VB aplicantion in many places. I need to manage databases over files on pen drive. What's the database i using to manage this program?     My conditions is this: i have most computer but it's not conected to ...
Score Changing Color of TextBox on Hover - With Correct Examples!!!
Henry Jones - 1 Dec 2006 6:21 PM - 3 messages
I have a VS 2005 VB.NET project and would like to change the color of the textbox when the user hovers over it.  In a Module I have the following routines: Public Sub Button_Hover(ByRef btnName As Button) ...
Score Best Approach When Saving a New Project
Steve - 1 Dec 2006 5:50 PM - 5 messages
When I create a new project in 2005, and I go to save the project files, vb.net displays a dialog box that repeats the name of the application and has a checkbox if I want to create a new directory for it.  If I click the ...
Score SyncLock Required?
Jay - 1 Dec 2006 5:13 PM - 2 messages
Given the following code I am wondering if SyncLock is required.  Because I am using system.timer is there already this type of lock behaviour in place? I need to assure that I'm only selecting one distinct record at a time per ...
Score Error in displaying data grid
Death - 1 Dec 2006 5:05 PM - 3 messages
Hi all I am having some trouble on displaying datagrid data from my database Below is the code sample : <%@ Page Language="VB" Debug ="true" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> <script language ="VBSCRIPT" runat="server"> ...
Score Changing Color of Textbox on Hover
Henry Jones - 1 Dec 2006 4:03 PM - 13 messages
I have a VS 2005 VB.NET project and would like to change the color of the textbox when the user hovers over it.  In a Module I have the following routines: Public Sub Button_Hover(ByRef btnName As Button) ...
Score No Response Redirect but something like Response Forward?
marcwentink - 1 Dec 2006 3:53 PM - 6 messages
This is probably a very simple issue but I cannot find the answer googling at the moment. I got this function in a ASP-page VB code     Private Sub GoToTheOtherWebSite()         Dim InternetAdresPR As String ...
Score Is user admin?
Norman Chong - 1 Dec 2006 3:06 PM - 3 messages
Hi ng, I want to know if a user has admin rightsSo I wrote the following code to check, if the user is in the admin-group: Dim bIsInRole as Boolean Dim myUser As Security.Principal.WindowsIdentity = Principal.WindowsIdentity.GetCurrent() ...
Score Disable sort on specific columns with VB.NET datagrid
ECD - 1 Dec 2006 2:14 PM - 3 messages
Hello all, I can usually find solutions to my .NET problems by searching these groups, but I'm stumped on this one.  I have a datagrid in VB.NET (2.0 framework).  I want to disable sorting on the first column in the grid ...
Score component to show info
Vicente García - 1 Dec 2006 12:53 PM - 3 messages
Hi all, I am making up an application in Visual Basic .NET but I have a problem. I have some rows (categories) with three fields, in addition I have other rows (the subcategories) with five or six fields. I would like to expand and ...
Score What does this mean?
Jorge - 1 Dec 2006 12:05 PM - 4 messages
Iam a newbie.  What does this error message mean? A first chance exception of type 'System.ArgumentException' occurred in Microsoft.VisualBasic.dll ...
Score Offline application for reporting and collect data
Senthil - 1 Dec 2006 11:25 AM - 7 messages
Hi All We are having a VB application on SQL. But we need to collect information from persons who will be offline to verify data and insert new data. Generally they will be entering the data in Excel spread sheets which can be uploaded to the database using the application ...
Score Report Viewer Asynchronous thread abort error
steve - 1 Dec 2006 6:42 AM - 4 messages
Hi All I have a VB.net 2005 app which uses MS Report Viewer to create reports Occassionally I get the following error when changing to a different report User code running on thread 196 has attempted to abort thread 3560. This may ...
Score Re: Is VB.NET Stable??
Michael D. Ober - 1 Dec 2006 6:02 AM - 3 messages
There are OpenVMS clusters that measure their current uptime in double digit years.  In an OpenVMS cluster, you can bring down one machine and _ALL_ processes will automatically move, with current state intact, to another machine.  I'd call that a pretty darn crash proof OS. ...
Score Access and SQL server update
Bonzol - 1 Dec 2006 4:24 AM - 4 messages
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 ...
Score Fastest String search
beersa - 1 Dec 2006 3:36 AM - 6 messages
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 ...
Score vbc : Command line (0,0) : error BC2006: option 'r' requires':<file_list>'
Franky - 1 Dec 2006 12:17 AM - 3 messages
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: ...
Score Find Window Question
Newbie Coder - 30 Nov 2006 11:33 PM - 3 messages
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) ...
Score Email Socket Question
googlegroups - 30 Nov 2006 11:16 PM - 16 messages
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 ...
Score Best way to get a Junior Programmer up to speed
BK - 30 Nov 2006 10:13 PM - 13 messages
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 ...
Score deployment of project migrating MSDE to SQLExpress
Matt Fielder - 30 Nov 2006 7:00 PM - 6 messages
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 ...
Score NNTP Question
Bishop - 30 Nov 2006 7:00 PM - 4 messages
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 ...
Score Calculate inside a form and use the same form as Insert record form
reidarT - 30 Nov 2006 6:49 PM - 3 messages
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 ...
Score End Processing in Multithreaded App
Jay - 30 Nov 2006 6:08 PM - 10 messages
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) ...
Score Cross-thread operation not valid.
TClancey - 30 Nov 2006 5:34 PM - 5 messages
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 ...
Score catching close button
lord.zoltar - 30 Nov 2006 4:18 PM - 6 messages
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 ...
Score Re: Is VB.NET Stable?? To Aaron Kemp - Ahole Extrordinare
Tim Patrick - 30 Nov 2006 3:29 PM - 24 messages
Perhaps you mean me. Sorry, it's not me. I'm not afraid to sign my posts with my real name. And if you have ever read any of my posts, you will see that I always check my temper and my language at the door, unlike some.... ...
Score String to Byte & Vice Versa
Hugh Janus - 30 Nov 2006 12:35 PM - 17 messages
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 ...
Score Serialization problem
Norman Chong - 30 Nov 2006 12:34 PM - 3 messages
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 ...
Score Transparent text box.
zebik - 30 Nov 2006 12:27 PM - 5 messages
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. ...
Score Hiding dialog causes ShowDialog to return
NickP - 30 Nov 2006 10:24 AM - 3 messages
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 ...
Score Best way to communicate from Desktop to SQL DB
Anil Gupte - 30 Nov 2006 7:36 AM - 7 messages
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 ...
Score Re: Is VB.NET Stable??
RobinS - 30 Nov 2006 7:14 AM - 7 messages
This comment makes no sense at all. If it did, it might be offensive. Hitler didn't need to invade Italy; Hitler and Mussolini had a non-military alliance. [link] Robin S. ...
Score how to display data in a crystal report in vb.net 2005 windows based application?
Gurunadh - 30 Nov 2006 6:00 AM - 2 messages
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 ...
Score Re: Is VB.NET Stable??
Tim Patrick - 30 Nov 2006 5:38 AM - 3 messages
Aaron, you may not be a "junior programmer," but everyone thinks you are because of your attutide. I find your lack of historical programming perspective amazing. Perhaps you are not aware of how programming was done even just 20 or 25 years ago. Every programmer needed to know and use multiple programmable ...
Score Create Property on the fly
Marc Robitaille - 30 Nov 2006 5:22 AM - 7 messages
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. ...
Score I need to find a way to lock" freeze" table in datagrid.
kdpo1990 - 30 Nov 2006 5:10 AM - 2 messages
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: ...
Score load external html vs 2005
Jeff Allan - 30 Nov 2006 3:36 AM - 3 messages
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 ...
Score Dropping folder on desk top icon
al jones - 30 Nov 2006 3:27 AM - 6 messages
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 ...
Score advanced validation by code
Sankalp - 30 Nov 2006 2:43 AM - 2 messages
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 ...
Score VB vs. C# language challenge question
Tomasz Jastrzebski - 29 Nov 2006 11:28 PM - 11 messages
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'. ...
Score Delete Selected Lines from Text File
cdun2 - 29 Nov 2006 10:13 PM - 3 messages
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 ...
Score Full Screen
Richard - 29 Nov 2006 8:08 PM - 12 messages
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 ...
Score loading treeview dynamically is very slow
cowznofsky - 29 Nov 2006 7:53 PM - 4 messages
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 ...
Score Problems reading a text file in VB 6.0
TeABaG_ - 29 Nov 2006 6:52 PM - 3 messages
I am trying to read a text file with utf-8 encoding in Visual Basic 6.0.  The problem is that when I use the "Line Input" method, it gets more than what is really on the first line when I look at the file with a text editor.  The ...
Score connect vb app to sql 2005 express
josh - 29 Nov 2006 6:34 PM - 14 messages
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 ...
Score Add a META line to an existing HTML doc programmatically
Bill Nguyen - 29 Nov 2006 6:24 PM - 3 messages
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 ...
Score edit text in file using streamreader and string.replace
moondaddy - 29 Nov 2006 6:12 PM - 5 messages
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). ...
Score Reverse and Flip Form
David S. Zuza - 29 Nov 2006 5:44 PM - 2 messages
I know this is a strange question. I want to be able to reverse the display and/or flip it whenever I need in the program and was wondering if there was a way to do it. I am trying to make it so that the software can be viewed in ...
Score Can't Figure Out why this array is out of bounds now!
RallyDSM - 29 Nov 2006 4:45 PM - 4 messages
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 ...
Score Combo box to start at first character after user selects
Mike OKC - 29 Nov 2006 4:24 PM - 6 messages
The text in my combo box is longer than the control can show, when I click on the down arrow, I can see the whole text, but when I select one of the items, the text box of the combo box shows the end of the text. Due to limited room ...
Score DataGrid borders
si_owen - 29 Nov 2006 4:02 PM - 3 messages
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 ...
Score problem with join()
André - 29 Nov 2006 3:47 PM - 3 messages
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 ...
Score Convert today's date and time to a long
Holmsey - 29 Nov 2006 3:21 PM - 5 messages
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 ...
Score Transparent Picture boxes
lord.zoltar - 29 Nov 2006 2:55 PM - 3 messages
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 ...
Score how to make cookies into an array?
André - 29 Nov 2006 2:48 PM - 8 messages
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 ...
Score send data to OPC
nizargermany - 29 Nov 2006 2:37 PM - 2 messages
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: ...
Score Exposing Com Interfaces of a .Net Class Library (Trouble Regsvr32)
GB - 29 Nov 2006 2:21 PM - 7 messages
I have created a .Net Class (Component), which uses also references pure .Net assmblies.  I use this component as an interface to the .Net Class, and call the Component in a "classic asp" page. All of this works fine locally, ...
Score Windows Installer Vs. ClickOnce
douglass_davis@earthlink.net - 29 Nov 2006 2:06 PM - 3 messages
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. ...
Score Transferring Data to a Website
Arne Beruldsen - 29 Nov 2006 1:57 PM - 2 messages
Back in my VB6 days I used the following code to transfer some info from my app to a webpage.  The code looked like this: ShellExecute 0&, "open", "[link]" ...
Score Logic Troubles - reading in a difficult textfile
Justin Fancy - 29 Nov 2006 1:45 PM - 2 messages
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 ...
Score Add new record to database
Marko - 29 Nov 2006 1:20 PM - 2 messages
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; ...
Score Looking for a simple explanation of how to walk through a dataset in .net 2.0
SmartbizAustralia - 29 Nov 2006 12:11 PM - 3 messages
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 ...
Score Data Grid Check Boxes
si_owen - 29 Nov 2006 11:21 AM - 2 messages
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. ...
Score How do you translate your WinForms app? (outsourcing localization)
Joergen Bech - 29 Nov 2006 11:16 AM - 10 messages
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 ...
Score Its Urgent: I have export database into excel file if office not installed then it gives me error
mina - 29 Nov 2006 6:50 AM - 5 messages
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 ...
Score How to recognize a Command Line parameter?
Anil Gupte - 29 Nov 2006 6:48 AM - 6 messages
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 ...
Score Column header resizing to accomade the lable
Prashwee - 29 Nov 2006 6:22 AM - 2 messages
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. ...
Score Where is the VS mru list file stored?
Hexman - 29 Nov 2006 12:47 AM - 4 messages
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 ...
Score How to update .NET Development Environment to import a new namespa
RichART - 29 Nov 2006 12:05 AM - 2 messages
Hello everybody, In one of the replies on my previous question somebody said that I have to update my .NET to import a new namespace. (Available from version 2.0). I updated te version under "Help >> Check for Updates..." ...
Score Runtime Look Is Different Than Design Look
Michael Cook - 29 Nov 2006 12:04 AM - 3 messages
Some of my controls look different when running vs. when in design mode. For example, a button looks rounded and has a nice shinny look when I am looking at it in the design mode, however when I run it through the IDE it looks like ...
Score Need pre-built report administration application
Hexman - 28 Nov 2006 10:45 PM - 3 messages
Hello All, I'm nearing the end of my current project and the users came up with 2 more requests.  I'll talk about the first one in this message. I've developed (with much help from this group) a vb.net app and is being put into the users hands this week.  I am using Crystal Report X to ...
Score how sql xml query to get empty element tag
martin1 - 28 Nov 2006 9:41 PM - 2 messages
Hi, All, I want to generate empty data tag, for example, the table1 has 2 fileds called field1 and field2, the field1 has data there but field2 no data, when creating xml fiel using query: select field1, field2 from table1 for xml auto, elements ...
Score Create a Deployment Package!
Vai2000 - 28 Nov 2006 9:22 PM - 3 messages
Does any1 know how to invoke a custom action or script while u install a VB6 package... TIA ...
Score Attaching multiple files of any type to a mail message?
Robert Dufour - 28 Nov 2006 7:08 PM - 6 messages
I am trying to use framework 1.1 - stuck with it. to send emails from a windows form application. The email messages can have attachments, usually two and they can be either text or sounds (wav files) or images (bmp, gif or ...
Score Attachments in VS2003 web mail
Robert Dufour - 28 Nov 2006 6:41 PM - 2 messages
In a windows form app the code I got is Dim AttachItem As String If MailAttachments <> "" Then  'The fully qualified paths of all the files that I want to attach Dim delimStr As String = ";" Dim delimiter As Char() = delimStr.ToCharArray() ...
Score Adding Dropdownlist to GridView
mitchman10 - 28 Nov 2006 4:48 PM - 2 messages
My Time table has TimeID,Employee,PayPeriod,ChargeCodeID,Hours My Chargecode table has ChargecodeID,c_Text I need an Editable datagrid that will show the TimeID,Employee,PayPeriod,C_Text in a label and hours, along with an edit linkbutton. When they click on edit, the edit button turns to Update Cancel ...
Score Read and write database
fniles - 28 Nov 2006 3:36 PM - 10 messages
When using VB6 and ADO, if I only do a Read, I will open a recordset with Forward Only cursor and Read Only lock, thus  it will be faster than a non Read recordset. In VB.NET, when only need to do a Read, is it correct that I want to use ...
Next » 2 3 4 5 6 7 8 9 10