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 > march 2005 > threads for tuesday march 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

Disable clipboard paste in textbox ?
Posted by Steve at 3/8/2005 11:11:47 PM
Hi all, Is it possible to disable pasting from the clipboard into a textbox ?? I can't find a property for it but I guess it must be possible. thanks Steve ...more >>


Inherits form problem
Posted by Agnes at 3/8/2005 11:09:43 PM
I new a inherited form (named frmSearch) I can inherit it sucesfully, Now, I add a new button to that form . and want all the form can be renew automically. After i complie the project. remove the library under "reference", add the library again. Fianlly, i am fail to renew all the form ,wh...more >>

Why is my app still inside Task Manager ??? Help
Posted by Dino Buljubasic at 3/8/2005 10:52:03 PM
Hi, Does anybody know how can I close my app and remove it from Task Manager? I have an application that has a log in form and several others. User can close application from Log In form or from Main Form (all other forms are modal) using X button on the top right or using button I provid...more >>

Databound UserControl
Posted by Lespaul36 at 3/8/2005 10:52:00 PM
I want to make a databound user control, but I was wondering if there are some classes that I can implement in order to populate the control, or is the only way do loop through the database? ...more >>

Raising Events Between Classes
Posted by MeltingPoint at 3/8/2005 10:48:27 PM
Just wondering if this is the right way to do things, or if there's a better way. <code> Public Class UserClass //This is the class I want the user to use:)// Event UserEvent(ByVal s As String) Public Sub DoSomething() Dim pc as New MyFriendClass AddHandler ...more >>

Row Count in Tooltip-Datagrid
Posted by james at 3/8/2005 10:28:53 PM
I have been looking for a way to reproduce the tooltip that Access displays when scrolling the Datagrid that shows the record count (changes as you move the thumb up or down). So far, nothing I have tried in the Datagrid's Scroll event (using a tooltip control) seems to work. Any ideas ? james...more >>

Memorystream
Posted by Bob Hollness at 3/8/2005 8:48:41 PM
Hi group, I am trying to decipher MemoryStream. I need to read the contents of a text file to memory line by line, process each line and the output the line to a new text file. However, it is proving a bit painful trying to work out how to do this with memorystream. Any chance someone cou...more >>

Problems to insert a combobox (dropdownstyle=dropdown) in a datagrid
Posted by Xavier at 3/8/2005 8:37:53 PM
Hello, I'm working on VS 2003 with the framework 1.1 SP1. I'm trying to insert a combobox on a datagrid . If i use a combobox with the property dropdownstyle = dropdownlist it's OK but if I change this property to dropdown, when I try to activate my combobox (MyCombo.focus) the focus is...more >>



Parsing Seconds Into DateTime Representation
Posted by Nikeman at 3/8/2005 8:15:06 PM
good day, I simply would like to know as to how I can parse seconds to convert them into equivalent DateTime representation. To be more persice, I have a DirectShow app written in VB.NET, with a timer in it. Timer ticks every 1000 milliseconds and then I get the current position of the video ...more >>

Controlling Windows Services Remotely
Posted by OpticTygre at 3/8/2005 8:08:47 PM
Imagine this scenario: I have 3 servers: A, B, and C. These servers are in remote locations across the country not easily accessible. On each of these servers, I have a windows service running, which I programmed myself. I also have a central server at my location. Is there a way that I...more >>

How to get an old DLL working in VB.NET
Posted by Tom Edelbrok at 3/8/2005 6:56:19 PM
I have an old 32-bit DLL that is very necessary to our operation. It extracts data from a proprietary inudstrial database and gives it back to our VB6 programs. Everything works great under VB6. But under VB.NET fetching data via this DLL doesn't work (actually parts of it work - we can ope...more >>

win32 app pass Parameters
Posted by André at 3/8/2005 6:45:03 PM
Hi, How do I create an win 32 app and pass parameters to have it respond to the passed values? Like winzip "winzip32 -a" Kinda like Console args but I want to be able to call it via Start run helloworld.exe – something Can someone post a simple example or a link? vb.net or C# T...more >>

Array or collection of withevents?
Posted by Rob Nicholson at 3/8/2005 6:39:04 PM
A thought - has VB.NET been extended to be able to handle arrays or collections with events? A problem with VB6 was that you could only declare: Private WithEvents MyControl As MyControl Private Sub MyControl_Click() End Sub which could track one control on the form. If you happened to h...more >>

How to obtain System Fonts folder
Posted by Adry at 3/8/2005 6:13:03 PM
Hi, how can I retrieve the system fonts folder ? or, better, from fontname how can I retrieve the font file complete path ? For example, having a "Tahoma" fontname, I would like to get the complete path of the file installed on the system ("c:\windows\fonts\tahoma.ttf"). Thanks Adr...more >>

Flat file database
Posted by Dennis D. at 3/8/2005 4:58:32 PM
I want to construct a simple flat file, non-relational database within my windows application. It would be a simple table with fields contained in a separate file which accompanies the distribution. It needs to be searchable. I don't want to use MS Access or MSDE (SQL Server) in this applicati...more >>

Reloading MDI Container ?
Posted by Corobori at 3/8/2005 4:11:08 PM
Hi, Say a form, a MDI Container, called frmMain; another form frmLanguage allowing me to change the User Interface Language. Changing the language works fine when I quit the application and comes back. I would like to make that more user friendly. The code in frmLanguage where I am changin...more >>

sendmail hangs when I declare an api function
Posted by Bernie Yaeger at 3/8/2005 3:54:08 PM
I have a simple mailsys solution that works splendidly. I decided to add a listview with file association icons to replace a listbox that displays the full path only of an attachment. But when I add this (which I need to get the file association icons): Private Declare Ansi Function SHGetFi...more >>

Q: Array List of Array List
Posted by Geoff Jones at 3/8/2005 3:24:51 PM
Hi Can anybody show me some code to create an arraylist of an arraylist i.e. a 2D array. When I write something like Dim my2DArray As ArrayList = New ArrayList() the brackets at the end disappear when I move to a new line. Can anybody help? Ta Geoff ...more >>

Accuracy with variable progress bar?
Posted by Brett at 3/8/2005 3:10:16 PM
If I have a certain process that will require an indeterminate amount of time to complete, how should I handle that on my progress bar? Would I just start over once the bar reach the end? Thanks, Brett ...more >>

Parent/Owner Form Variable Value?
Posted by Bruce D at 3/8/2005 3:01:57 PM
I have a form that opens up with my application. It acts as the main menu. Let's just say it looks like this: Public Class frmStartup ' some other settings Public UserID As Integer = 0 ' a bunch of functions and subs End Class Now let's say I have a button click on this form ...more >>

Filtering data in CR
Posted by TS at 3/8/2005 2:53:04 PM
Hi all, In my windows form, I need the user to select a client name from a combo box and click on a button that opens another form having CRViewer showing the data for that client selected. I connected to the SQL database where the cbo box gets the clients names from and I can see the names...more >>

Lock taskbar & Start button
Posted by news.microsoft.com at 3/8/2005 2:20:28 PM
I'm trying to write a program that will lock down the system. I want to hide the start button and taskbar. I found code using ShowWindow & FindWindow but they fail to work. Butttonhwnd = FindWindow("Shell_TrayWnd", "") Butttonhwnd = FindWindowEx(Butttonhwnd, 0, "Button", Nothing) ShowWind...more >>

What caused this error on an ASP.net web site?
Posted by Ed Willis at 3/8/2005 2:01:55 PM
The specified module could not be found We had some problems with the server. The server was restored and now we get this error? Help thanks. ...more >>

to kill a file
Posted by Alvaro Lamas at 3/8/2005 1:55:53 PM
I have this problem when I'm trying to delete a temporal file I made, the problem is I create this file from a Twain source and then make a temp file to do some editing to it, I assing the mantioned file to a picturebox and work from there, when the form closes I try to delete the file and I k...more >>

VB Like *
Posted by André at 3/8/2005 1:35:06 PM
Hi Does anyone know how I can use the Like statement in VB.net and C# .net? I know it works in VB.net but when I turn on option strict, It doest like it. How would I use this statement in VB.net and C# If textbox1.text Like "*Week*" Then …. End if If(textbox1.text Like “*Week*â€...more >>

btn_Click event still happens after clicking
Posted by Ron at 3/8/2005 1:33:43 PM
Hello, I have a button click event that opens two forms from a main form which has a timer on it. After the two forms get opened, I perform some procedures with them then close these two forms down. Then the button on the main form re- clicks itself and the two forms open up again. How ...more >>

DLLImports
Posted by Howard Kaikow at 3/8/2005 1:04:43 PM
In a C# program, I find [DllImport("user32")] public static extern bool ShowWindow(int hwnd, int nCmdShow); which I converted to <DllImport("user32.dll")> _ Public Function ShowWindow(ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer End Function and, the C# private enu...more >>

use of SqlDataAdapter with a table without Primary Key
Posted by DraguVaso at 3/8/2005 12:41:15 PM
Hi, I thought it isn't possible to use a SqlDataAdapter and a Databound grid when there isn't a 'real' primary key on the table. Although, is there a way to use it, and define somewhere in the SqlDataAdapter my own primary key on the table? I can't add a primary key to the table, so I guess...more >>

Windows Form Datagrid Checkbox 3 states problem
Posted by pmclinn at 3/8/2005 12:31:44 PM
Below is the code I'm using to dynamically fill a datagrid from a datatable (fed by an ole connection). Everything is working great except that my users have to click 2 time on the checkbox to select it, and if they click on it again it gets greyed out... click on the check again and then it di...more >>

Word and VB.NET
Posted by punt at 3/8/2005 12:13:25 PM
Is it possible to create a custom Microsoft Word doc from a VB.net application? If so are there any tutorials out there explaining the process? Thanks Punter ...more >>

Read and Write to TextFile with
Posted by Sam at 3/8/2005 11:36:31 AM
Hi guys If I have to read/write a text file which has the following format, what would be the best way to read it? Should I readline method of the streamreader to a string variable and parse it to the format below? 1 0.000016 7.999882 0.000000 2 1.000013 ...more >>

One More Context Menu Question
Posted by snesbit at 3/8/2005 11:15:51 AM
I want to add a separator bar between sections of the right mouse menu. I want the bar to be horizontal to separate a vertical group of menu = items. I've tried the few methods and combinations thereof but can only create = a column separator bar which at the moment I do not want. ie. ...more >>

Help Executing Access query.
Posted by Brett at 3/8/2005 10:58:25 AM
I'm trying to export an Access table to a CSV file. I'm using this code: Function ExportAccessToText() As Boolean Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=e:\My Documents\db1.mdb") AccessConn.Op...more >>

How to make a Test Case
Posted by norton at 3/8/2005 10:58:20 AM
Hi All I have writtern a VB.Net Windows Applications, i would like to know how should i write the test case for the application? For unit test i know i can test it using NUnit and each case can be test in a logical manner, but when i testing an application which is integrated with many class/...more >>

How to package for Deployment
Posted by Todd at 3/8/2005 10:57:03 AM
I apologize for this very rookie question. I have a solution in VB .NEt that I have created. I need to be able to package and make a .exe out of it so I can install it on a ghost image I am creating. In VB 6 I thought there was a option called "Make .exe" I can not seem to find that anywh...more >>

Need to dispose??
Posted by Just Me at 3/8/2005 10:37:19 AM
I have many subs that creates a graphics object: Dim lG As Graphics After use I dispose it. usually just before leaving the Sub Is that necessary or does leaving the Sub cause it to be disposed soon if needed. Same question about a Bitmap object. ...more >>

How to create Previous/Next Page button on Scrollbar?
Posted by rh at 3/8/2005 10:35:56 AM
Hi, is there a property on the VScrollbar to activate this feature or is custom coding required? This feature exists on MS Word's vertical scrollbar and I would like to add this feature to my VB.NET Windows app (to the scrollbar on a DataGrid and a TreeView). Any suggestions? Thanks in a...more >>

.Net Outlook Inbox Folder Question Getting 1st Message problem.
Posted by Roger at 3/8/2005 10:32:36 AM
All, I have some code that is executed when a "New E-mail" arrives. When executing this code on several different machines I get either the New Message or the Last Message. All machines are running same version of Outlook 2003 SP1. On one machine Visual Studio .Net is installed. On this...more >>

open a crystal report
Posted by TS at 3/8/2005 10:27:03 AM
In my windows form, I need to add a control that opens a crystal report. I searched for CrystalReportViewer in the toolbox, I didn't find it. I added the reference for CrystalDecisions.Windows.form and still don't see it in the toolbox. Please help !!! -- TS...more >>

Periodic problem in InitializeComponent of modal form with a forms.timer
Posted by Stephen Rice at 3/8/2005 10:06:54 AM
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a thread to access the database and then displays a modal dialog which allows the user to cancel the tas...more >>

Adding to an existing MenuItem's MenuItem Collection Dynamically
Posted by snesbit at 3/8/2005 9:42:13 AM
I have a static ContextMenu already built and it works. =20 I am trying to add a submenu (right arrow with a new menuitem list) = dynamically when the popup is created. The new set of menuitems requires some DB queries to be done and then = the menuitems to be added to the Menuitems collecti...more >>

Project/Solution GUIDs
Posted by Howard Kaikow at 3/8/2005 9:37:28 AM
Being lazy, I sometimes copy a project to another directory, then tweak the code. A problem arises because then both projects have identical GUIDs in the .sln file, and in the assembly file. Is there any way to change the GUIDs, other than by overcoming my laziness and creating a New Projec...more >>

Would like to know if it is possible to run a windows application
Posted by Eduardo78 at 3/8/2005 9:33:01 AM
I would like to know if there is a way to run a windows application on a client computer without having to run the setup. I was wondering if it could work to have the application on a file server and run it from the client computer. I know that the perfect thing here would be a web applic...more >>

How to add LinkLabel in a ListBox
Posted by vince at 3/8/2005 8:27:03 AM
Hello, I have a ListBox filled with many lines of simply text I want to make few lines be a LinkLabel How can I do this Thanks...more >>

VB.Net windows Email Question
Posted by BrianDH at 3/8/2005 7:35:04 AM
Hi I have a VB.Net windows application that sends an email with a screenshot image attached to the email. Is there a way to send this screenshot embedded in the email not attached? All my users use Outlook 2003 & XP Pro. Thanks BrianDH ...more >>

Uploading file to a different web platform using ASP.NET/VB.NET
Posted by brianinbox NO[at]SPAM gmail.com at 3/8/2005 6:41:29 AM
Hi, I've been trying to upload file using webclient.uploadfile method from my IIS webserver to an Apache webserver without any success. On the Apache server (server that receives the incoming file) I have a simple php script, getFile.php to receive the file. The script look like this: <?php ...more >>

.doc to .txt conversion. Need a different way of doing it without
Posted by try2nd at 3/8/2005 6:03:02 AM
A 4 line solution I found using VB.NET BUT needing Word application as a part of the codes is: 'reportPath and writePath are strings to the name of origin files and destination files respectively Imports Microsoft.Office.Interop Dim WordApp As Word.Application = New Word.Applicatio...more >>

Extracting the directory path from the full path of the file
Posted by kd at 3/8/2005 5:31:11 AM
Hi All, Given a full path name of a file, is there a command to extract the directory path (without the file name)? Thanks. kd...more >>

Office 2000 -> external web services
Posted by nicolas.mailhot NO[at]SPAM laposte.net at 3/8/2005 3:04:24 AM
Hi, I've been tasked with doing a study of how to migrate our current excel VBA macros (that currently dig in a very insecure and uncontroled way in various corporate databases) to a setup were everything is arbitrated by Weblogic web services (with EAI-provided web services looming on the ho...more >>

Application.StartupPath in console application
Posted by kd at 3/8/2005 12:07:03 AM
Hi All, Is there an equivalent for Application.StartupPath in a console application? kd...more >>


DevelopmentNow Blog