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 monday august 8

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

last item in a listview
Posted by Jon Vaughan at 8/8/2005 11:36:10 PM
Hi, This should be straight fwd , but I cant seem to do it , all I want to do is programatically select the last item in a listview, so its always displayed example : my listview can display 3 items with out scrolling - after 3 items have been added you dont see the new items being adde...more >>


Control Arrays Question
Posted by Diarmuid at 8/8/2005 9:53:56 PM
Are there control arrays in vb.net 2005? Maybe some one could help me out with an example. I know how to this in VB6. My database is called Planner.mdb There is a table called Weekdays. I want to read the first record in, and use that to set my labels as follows me.lblDay1 = WeekDays!Day1 ...more >>

Combobox / Display Member / SQL Question
Posted by Stewart Lane at 8/8/2005 8:51:24 PM
Can the display member of a combobox who's datasource is a dataset generated from a SQl command in a data adpater BE SET to the concatenation of two fields, like fname+' '+lname? This is my SQL command: SELECT custnumb, fname, lname FROM custmstr ORDER BY lname, fname I've also tried: S...more >>

Toolbar Images Disappear Runtime
Posted by GarrettD78 at 8/8/2005 8:40:28 PM
I have a toolbar with an imagelist to build images. The toolbar uses indexes to point to the icon in the image list. At design time I can see the images just fine, but at runtime the images aren't there. Any suggestions would be appreciated....more >>

simulate an event
Posted by Maileen at 8/8/2005 8:26:52 PM
Hi, I would like to know how to simulate an event in VB.NET ? in fact, for example when user press enter in some special textbox, i would like to raise a listview column click (for example). Moreover, how to tell VB.NET that : if user click on a button1, it is not the default button1_click...more >>

How do you determine the owner of a process
Posted by Ken Soenen at 8/8/2005 8:14:09 PM
I can get all the processes on the local machine using "GetProcesses". Now I need to know the owner of each of these processes. If the Windows Task Manager could talk, I would ask it.!! Any help would be appreciated. I still haven't mastered the finer points(if there are any) of finding somet...more >>

Size the Help App
Posted by Shane Story at 8/8/2005 7:29:13 PM
I need to provide help in my application and have that part working fine. I would like to open help to a certain page and have the left pane of the help hidden and the entire help window to the right...kind of like Office does. Any ideas? thanks, Shane ...more >>

Manual scroll rendering
Posted by Workgroups at 8/8/2005 7:17:34 PM
I need to scroll a virtual grid that is 1.2M pixels x 1.28M pixels in size. I think this is too large of a size for a control or a form, so I think I need to "fake it" with a custom drawn control. I do not need to maintain a bitmap or make the control surface physically larger than the scre...more >>



Converting Hex colors in to vb.net colors
Posted by Stu at 8/8/2005 7:00:23 PM
Hi, How do you convert web colors (hex) in to rgb values for use in asp.net (vb)? I know #ff0000 is Color.Red in .Net - how do I get the rgb color values for something like '#AD5511'? Thanks in advance, Stu ...more >>

getting Nth position in a comma delimited string..
Posted by hazz at 8/8/2005 5:09:30 PM
yes i should know this but ... V,-1,1,2,-1,333,5 I would like to return the value from any position within the comma delimited string position 1 is "v" position 2 is "-1" position 6 is "333" at first I thought I could use string.chars(n) until I realized that 1. There are commas and...more >>

Application.DoEvents
Posted by Dennis at 8/8/2005 4:59:01 PM
I find myself having to use Application.DoEvents to clear out my program events before proceeding to the next line of code, especially when working with MCI and using "NOTIFY" callback. Is this considered good programming practice? I thought that I had read somewhere that using Applicaiton...more >>

Advanced Help for Combo box Needed
Posted by Jean Christophe Avard at 8/8/2005 3:53:39 PM
Hi! I'm designing an application that produces invoices. I have a combobox that is populated with the Name of every client in the database. What I would like to do is to have the combobox to display the name, and to have the value set to the ID of the record... Like in HTML where you have s...more >>

string to string collection
Posted by WebBuilder451 at 8/8/2005 3:40:04 PM
I have a string that is in the format of a url query string, but it is not a query string. "RESULT=126&PNREF=V54A0A779FD7&RESPMSG=Under review by Fraud ice&AUTHCODE=422PNI&AVSADDR=N&AVSZIP=N&IAVS=N&PREFPSMSG=Review" It's a return from verisign What is the easiest way to split this up into s...more >>

PrintDocument to Acrobat PDFWriter print driver
Posted by William LaMartin at 8/8/2005 3:07:24 PM
I have a vb.net win form where I want to output some text to a printer. Everything works fine when printing to my laser or inkjet printers. However when I print to the Acrobat PDFWriter printer driver, I get correct formatting but the text is gibberish. I am using ev.Graphics.DrawString(li...more >>

Sub main in a DLL
Posted by Marc Robitaille at 8/8/2005 2:47:36 PM
Hello group, I know how to add a Sub Main to an winform application and set the projet to start with the added Sub Main method. I want to know if it is possible to do the same thing with a DLL? I want to know if this is possible because I want to know when the DLL is load in memory to log ...more >>

Unable to delete row
Posted by travlintom NO[at]SPAM yahoo.com at 8/8/2005 2:43:31 PM
Hi. I'm new to VB.net and am used to working with recordsets (much easier). I have a datagrid that, when the user double clicks on a row, I am giving them a chance to delete it. I thought this would be simple but it's taking me forever. I am getting an error when I try to delete the record. I ca...more >>

hate when this happens
Posted by rodchar at 8/8/2005 2:27:19 PM
hey all, i remember seeing a tip somewhere but now i can't remember when or where. The tip show how to display the xml data of a dataset when you are in debug mode. Does this ring a bell or anybody know how to do this? thanks, rodchar...more >>

data table question
Posted by rodchar at 8/8/2005 1:41:05 PM
hey all, Dim _dt As New DataTable("Controls") _dt.Columns.AddRange(New DataColumn() _ {New DataColumn("Name"), New DataColumn("Type")}) I saw this excerpt in an article on creating a stand alone data table. And I was wondering if you don't specify the column type what wo...more >>

ComboBox - Setting the SelectedIndex - Throwing an error
Posted by john.halet NO[at]SPAM usa.net at 8/8/2005 12:22:09 PM
This line of code had been working with out issue, now its throwing errors. In my case I have three items in the ComboBox. If I try to change the selected index it throw the error. Earler in the code I check to see if the combobox has any items, if so then I set it to 0 with out issue. ...more >>

Weird one.
Posted by Shawn at 8/8/2005 12:01:27 PM
I have a dataset named "dsMessages" that has a single table. I have a timer that runs a query against an SQL db every 5 seconds. At the beginning I have it run dsMessages.Clear(). The first time this runs, it causes a long pause, but then it runs fine every time thereafter. I have other datase...more >>

Number input translation to SQL
Posted by Fredrik Melin at 8/8/2005 11:44:13 AM
I want to allow my users to enter filter's on a SQL sentence for a numeric field. I would like to allow them to write for sample "0-10, 101" which should give all from 0-10 and 101, in other words allow - for range and , to separate several numbers. Is there a built in function to decode...more >>

Recursive function to get parent child relationship
Posted by RJN at 8/8/2005 10:54:10 AM
Hi I need help in writing a recursive function. My table structure is as below. InstanceId LevelId ParentId 100 1 null 101 2 100 102 3 101 103 4 102 104 5 ...more >>

Add table to Crystal report in VB.NET
Posted by GatorBait at 8/8/2005 10:51:30 AM
Hi all, I have a VB.NET application that uses SQL server and Crystal. Basically what I am trying to do is have a report in which the user can select which fields will appear on the report. I have everything set up correctly and working in a small sample project. I attempted to incorpora...more >>

Problems converting icons to IPictureDisp
Posted by Map Reader at 8/8/2005 10:50:40 AM
Greetings, I am converting an old VB6 application to use .NET. One of the old controls loads icons from the disk and displays them. However, the transparent color turns to blue somewhere in the process. I narrowed it down to the conversion to IPictureDisp by first loading and saving the ico...more >>

How do I dump Image data type in SQL Server
Posted by BJ at 8/8/2005 10:39:16 AM
I have a column, of data type image, in a SQL table that I'm trying to dump to a windows form control. Does anyone have an example of this code and what control I would use on the form? -BJ ...more >>

VB.NET and ADO.NET
Posted by Pinky_n_need_of_a_brian at 8/8/2005 9:41:57 AM
The problem I having is a need to extract a value from a database and place it within my ASP.NET application. The application is written in ASP.NET and VB.NET using SQL Data provider. In classic ASP I would have done the following: Set GetDetails = Server.CreateObject("ADODB.RecordSet") SQ...more >>

Formatting Text Automatically for Labels and Textboxes
Posted by Mitchell Vincent at 8/8/2005 9:36:47 AM
I have a bunch of text boxes and labels that hold currency values. I need some formatting on them, but since they are databound to a set, I'm confused as to how to do that. Do labels and text boxes have some kind of format string that can auto-apply a format to what ever data is entered? Is ...more >>

Preventing user from typing into a combo box
Posted by Xero at 8/8/2005 9:36:02 AM
hi. one of the annoying problem i have encountered using the combo box is its property of allowing users to type into the box. once typed, the value set by the user is rendered instead of the original value and i have to write more code to eliminate such entries. is there a way to make t...more >>

How to set tetxbox change automatically
Posted by Ivan V via DotNetMonster.com at 8/8/2005 9:16:18 AM
Dear All: I have this one stupid that I cannot solve lately. It's all about the textbox. For instance, I have 2 textbox, one is called A and the other is called B. First, I had to input any value into A, then when the cursor is in B, the text in it will automatically change to the the same ...more >>

Reading FTP Data in stream
Posted by pmclinn at 8/8/2005 9:08:31 AM
I have a datadump from internal equipment that is about 500 megs. The file is dumped every morning in a comma delinated format. Instead of downloading this file to the client and then processing it is there any way to stream the data into the client and read/parse it as it comes in? The fil...more >>

Converting a Dataview into a Dataset
Posted by Ramakrishnan Nagarajan at 8/8/2005 7:41:06 AM
Hi can any one help me in converting a DataView into a DataSet or a DataTable into a DataSet, I tried the following ways dSet= ((DataSet)_gridRegStudDetails.DataSource); dSet = ((DataSet)_gridRegStudDetails.DataSource).Tables[0].DataSet; studData = ((DataSet)dView).Tables[0].DataSet; But ...more >>

accessing control collection in tabcontrol
Posted by Sudhakara.T.P. at 8/8/2005 6:44:03 AM
Hi, I have an tab control in one of the forms and it has two tab strips. Now I have written an general function that accepts form name as parameter and iterates through all the controls in the form and re-initialises that. Now in this context, i have around 15 controls on one of the tab strips...more >>

Return by references or value
Posted by Arne at 8/8/2005 6:31:05 AM
Will the dataset below be returned by value or reference? Public Shared Function getDS() As DataSet Dim ds As New DataSet '... do something Return ds End Function...more >>

VB exe and batch file question.
Posted by Kannan.V [MCSD.net] at 8/8/2005 5:26:04 AM
hi, I have this situation here, I need to call a VB application (which i can code), which does some calculations on some dates and returns a date value. For simplicity lets say, i pass a date to the VB app as command line arguments, my vb app should return me a date 15 days earlier. I will ...more >>

CASPOL -S off
Posted by marcmc at 8/8/2005 4:15:03 AM
Does anyone know the realistic implications of this command for Code Access Security Policy on a users machine. I would like to know... a) does it affect all dot net code run on a enterprise network? b) does it open up security issues?...more >>

Security Policy
Posted by marcmc at 8/8/2005 3:14:03 AM
When I distribute myApp to a network drive I get an error. Tells me I need to change my secority policy so I write a batch file as follows: C: CD\ CD C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ CLS caspol -quiet -cg 1.2. FullTrust and run it on my machine which prevents the problem...more >>

Admin Access to SQLConnection class
Posted by marcmc at 8/8/2005 1:47:03 AM
Hey All, When I log in as admin, i want to be able to set the database properties (UserName, Password, Database & Server) to be passed to the SQLClient.SqlConnection class. I have been working with defaults during development. Now if admin logs in I want to allow them to change the settings...more >>

Error in system.windows.darawing.dll
Posted by ajithrnair at 8/8/2005 1:44:10 AM
Hai I got the error "An unhandled exception of typ 'System.ArithmeticException' occurred in system.windows.darawing.dll Additional information: Overflow or underflow in the arithmeti operation. " while running the dot net application If any one have the solution for this error pls mail m ...more >>

Can i pass arguments to a windows service
Posted by Glenn at 8/8/2005 1:27:12 AM
Hello Is it possible to pass arguements to a .net service once it is in a running state. If this is not possible , are they alternative ways in which to achive the same thing? Glenn ...more >>

Event Driven in ASP.NET (Code Behind in VB.NET)
Posted by Peri at 8/8/2005 12:00:00 AM
Dear All, Can anyone help me out to write event driven code in ASP.NET. That is 1. How do I get a Keypress event in a text box (or a control). 2. How do I get a Lostfocus event in a text box (or a control) Say there is a code (user input). Once he enters the code in the lost focus event I ne...more >>

MyClassCollection = MyDataTable
Posted by DraguVaso at 8/8/2005 12:00:00 AM
Hi, I want a fast way to use assign a tha values in a DataTable to a collection/Array/List of Classes. Each record in my DataTable should be new Class, and tha Class would have property's for each Field in the DataTable. Is something like this possible? Or how should I do something like this...more >>

Parse Date
Posted by Doug Bell at 8/8/2005 12:00:00 AM
Hi, I have some data in the format of yyyymmdd (Int32) that I want to display, in a datagrid, formatted in International Date Format dd MM yyyy. Any suggestions on an efficient approach? Thanks, Doug ...more >>

Alter system menu
Posted by Dragon at 8/8/2005 12:00:00 AM
Hello, Can I modify system menu of my form, so it could contain additional items? TIA Roman ...more >>

Registry writing
Posted by romy at 8/8/2005 12:00:00 AM
What's the API of writing keys & values to the registry ? ...more >>

handle doubleclick without handling click
Posted by Boni at 8/8/2005 12:00:00 AM
Dear all, I am interested in mouse down and double click events of a control. When doubleclick happens the processing for mouse down should't be done I did follwing: sub MyMouseDown(.) handles MouseDown(..) if e.clicks>1 then return 'This is double click <-----------------(*) .... end sub ...more >>

Check if valid XML doc
Posted by Adrian at 8/8/2005 12:00:00 AM
Hi I have a text box where I can paste XML docs into and then send them however sometimes the call fails I assume to incorrectly formatted text! it fails on the line below: doc.LoadXml(txtToSend.Text.ToString) How can I check if the text constitutes a valid XML xml document before ...more >>

VB Voice Record
Posted by Arthur Yuen at 8/8/2005 12:00:00 AM
Dear all, Where can I find sample and documentation for VB voice recording and playback? Thanks, Arthur ...more >>

Automatically generated code quality
Posted by John at 8/8/2005 12:00:00 AM
Hi VS 2005 automatically generates data binding code when fields dropped on a form. What is the quality of this code? Can it be used as it is? Is it a 3 tier coding? Pros or cons of this kind of coding please. Thanks Regards ...more >>


DevelopmentNow Blog