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

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

Simple LookupAccountName (working)
Posted by nono9336 NO[at]SPAM hotmail.com at 3/14/2005 11:21:24 PM
Working code below (paying back to the groups :) /Tomas Class SidFunctions Enum SID_NAME_USE SidTypeUser = 1 SidTypeGroup SidTypeDomain SidTypeAlias SidTypeWellKnownGroup SidTypeDeletedAccount SidTypeInvalid SidTy...more >>

taking advantage of classes in a db intensive application
Posted by JohnR at 3/14/2005 11:05:40 PM
Assume you have a grocery store application. An order consists of an order header with the "customer" info, and multiple "item" records (one for each thing they ordered). Now, in a regular DB application this is straight forward stuff. However, I'd like some advice as to how to best take ...more >>

Easy way to sync SQL Databases
Posted by Sniper at 3/14/2005 10:45:01 PM
Hi Guys, can anyone tell me a good open source project or tool that I can use to sync data over the dial-up conection different two SQL Servers? I tried the replication it's giving wired messages. Please help Thanks, -Aruna ...more >>

Convert 8 bytes binary value to date in registry
Posted by yxq at 3/14/2005 9:48:08 PM
There are 8 bytes binary value stored date and time in Registry. 84 8B D7 DF 8B 28 C5 01 I want to convert the binary value to date using VB.NET. Dim a As FILETIME a.dwHighDateTime = 29698187 '(01C5288B to decimal) a.dwLowDateTime = -539522172 '(??????? by 84 8B D7 DF) MsgBox (GetFileTo...more >>

picturebox - empty path name is not legal
Posted by Chas Stapleton at 3/14/2005 9:35:02 PM
I have recently uninstalled VB5 and installed vb.net 2002. In working on an application, I attempted to add a picturebox and add an image... I immediately received an "empty path name is not legal" error. I attempted uninstalling it and reinstalling to no avail... I have also upgraded to ...more >>

error application has genarated exception that couldn't handled
Posted by Murthy at 3/14/2005 9:18:12 PM
Hi, After genarating the exe when i run the exe the following error is comming. Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0xdec (3564), Thread id=0xdf0 (3568) When I click CANCEL to debug, I get this error-mess...more >>

For Each.... Next
Posted by june hin via .NET 247 at 3/14/2005 9:07:23 PM
(Type your message here) Hi=2E Iam ahving some minor problems regarding for Each=2E=2E=2ENext=2E I= have a form whcih contains a set of radiobuttons in a a group= box=2E i have added a button and on clicking the button, i want= all the checkboxes to be set to false=2E the problem is that i=...more >>

for those that understand
Posted by Hyphessobrycon at 3/14/2005 8:58:17 PM
Hello, if i leave the displayed datagrid and immediately go back to it , i get this error. Additional information: De verzameling kolomstijlen van het gegevensraster bevat al een kolomstijl met dezelfde toewijzingsnaam. Translation: the collection of columnstyles of the grid already con...more >>



how to get decimal figures in a datagrid out of an access db
Posted by Hyphessobrycon at 3/14/2005 8:28:05 PM
Hello, always get 4 if the number is 4, but I want 4.00. in the datagrid. How to obtain that? thanks all Hyphessobrycon ...more >>

Application.EnableVisualStyles and no image in Tab control
Posted by #ROBERT at 3/14/2005 8:09:53 PM
(VS 2003 + .NET Framework 1.1 + WinXP Pro SP2) Calling Application.EnableVisualStyles() after the initialization() removes all images in the tab control (in the tab headers I mean). Without visual styles enabled, I have no problem. What is wrong and what is the solution? (PS: Using a manifes...more >>

Keep Menu open after click?
Posted by Engineerik at 3/14/2005 5:39:02 PM
I have a submenu with 3 menuitems on it. I have setup the click event handler to toggle the checked property on/off. I would like the menu to remain open when one of these three items is clicked so the user can see that the check toggled as desired and so one of the other items can be toggle...more >>

How to pass parameters to AddressOf for thread?
Posted by Brett at 3/14/2005 5:09:41 PM
I'm creating a second thread from my main form like this: Public t As System.Threading.Thread = New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf _ SynchItObj.ExportAccessToText(CSVFilePath, CSVFileName, DatabaseFileName))) It give this error: 'AddressOf' operan...more >>

how to get CPU usage of inidividual process in VB.NET
Posted by syong NO[at]SPAM cpstg.com at 3/14/2005 5:03:38 PM
I am trying to monitor the CPU usage of a particualar process in VB.NET, and the best that I can come up with is get the TotalProcessor time using the System.Diagnostic.Process object. Is there an easy way to do this? Thanks,...more >>

what is the .exe classname .net vs vb6
Posted by Gary Kahrau at 3/14/2005 4:31:09 PM
I have a third party application that starts up an application within their application. It requires the classname of the project. For vb6 I specify the following: WindowName:="HmiBanner",Classname:="ThunderRT6FormDC" What would the equivilent for vb.net be? ----------------------------...more >>

Need some help with using PageSetupSettings-dialog
Posted by Mika M at 3/14/2005 4:20:10 PM
Hi! I have some problems with setting PrintDocument margins using PageSetupDialog. Here some code to explain my problem... First PrintDocument declaring this way... Private pd As PrintDocument = New PrintDocument It is possible to set default values for PrintDocument printing in Ap...more >>

Opening files for output
Posted by Mark at 3/14/2005 4:17:03 PM
I typically open a file for writing like this: Public stLog As Stream Public swLog As StreamWriter ........ stLog = File.Open("c:\temp\Errors.log", FileMode.Append) swLog = New StreamWriter(stLog) But, what if I didn't know until runtime how many output files I needed to open? For e...more >>

treeview control
Posted by marc at 3/14/2005 3:39:41 PM
hello, I want to add scrolling and auto expanding after X msec to Drop & Drop in a treeview. Can someone me in the right direction. thanks Marc ...more >>

Window Activiation Causes Controls to Disappear
Posted by Mitchell Vincent at 3/14/2005 3:34:46 PM
I have a tiny little application that runs, and when minimized it throws itself into the systray until the user double clicks on the systray icon. To accomplish that first part I have this : Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As _ System.EventArgs) Handles My...more >>

ownerdraw menu almost ok
Posted by Peter Proost at 3/14/2005 3:33:49 PM
Hi group, I've got this ownerdraw menu module which I got from a site and modified to my personal needs, but the only problem I'm having is with the lines in a menu, when you type - as text, it normaly becomes a full line and the height of the menuitem is reduced but when you set a menu to own...more >>

Line numbering tools
Posted by J L at 3/14/2005 3:22:14 PM
Are there any free add-ins for VB.Net that will add and remove line numbers from the source code? TIA John...more >>

Datalist/datatable sorting
Posted by Brian Barnes at 3/14/2005 3:07:28 PM
Hi, I know this has been done quite often before, but all my research and trials have not worked. Basically I am trying to display a sorted list of e-mail Addresses in a datalist control (using web forms) from a dataset. The only table in the dataset has 2 columns (UserID (Guid (defined as a ...more >>

Finding week-number from selected dtae in calendar
Posted by ReidarT at 3/14/2005 3:00:37 PM
How do I find the weeknumber from a selected date from the calendar? regards reidarT ...more >>

DataGrid:Textbox - Enter Key not firing Validate
Posted by Bruce D at 3/14/2005 2:55:40 PM
I have a datagrid (uggg) that I use and create the columns programmatically...see below. objCol = New DataGridTextBoxColumn objCol.MappingName = "amount" objCol.HeaderText = "Amount" objCol.Width = 60 objCol.Format = "C" objDGTS.GridColumnStyles...more >>

Pdf reading
Posted by James at 3/14/2005 2:53:00 PM
Hi, Does anyone knows how to read a PDF file from vb.net. I need to read each word in the PDF file in order to search for some special words. Any help?, I am looking for something free. Thanks, KJaime ...more >>

How can I access messege?
Posted by sam via DotNetMonster.com at 3/14/2005 2:51:18 PM
I am doing LAN messenger in vb.net. I created one form on which 2 text boxes,1 button. 1 text box for typing messege & other for receiving. I am using concept of Windows "net send". I can send messege properly. Receiver can see that msg in one window with "OK" button (as usual when we send msg t...more >>

exposing datasets
Posted by rodchar at 3/14/2005 1:57:03 PM
hey all, is it ok to make a dataset public property? ok to make a dataset a public variable? which one is better, if any? why? thanks, rodchar...more >>

PrintSetup issues
Posted by Alex Clark at 3/14/2005 1:56:33 PM
Hi All, I have a print preview form in my app which consists of a PrintDocument which is tied into a Print Preview Control, a Printer Dialog component, and a Printer Setup Dialog component. The document property has been set on all of the latter of those 3. I can't seem to get my Print ...more >>

Cant update my database.
Posted by plenahan68 NO[at]SPAM hotmail.com at 3/14/2005 1:53:06 PM
I've made a small vb.net program to read my database and delete records that are specific to my needs. Well, the program says it's complete but nothing is deleted from my database. I've listed the code below. Imports System.data.oledb Imports System.Data Public Class Form1 Inherits Syste...more >>

Formatting Numbers
Posted by Mark at 3/14/2005 1:33:04 PM
I am running into a weird problem. I am using the following code: String.Format("{0:0}:{1:00}:{2:00}", Hours.ToString, Minutes.ToString, Seconds.ToString) Just say seconds is set to 1, it should return a string that displays 0:00:01, but it isn't display that, instead I get 0:0:1. Can an...more >>

Formatting strings in VB.NET
Posted by RichardF at 3/14/2005 1:32:11 PM
I have seen lots of information in help and in here about formatting numbers and dates, but what about strings? In VB6 I could do something like this... Format("abcdefghi","@@@-@@-@@@@") ....and the result would be... abc-de-fghi How can I do this in VB.NET? I have looked at...more >>

Simultaneous processing needed?
Posted by USCG at 3/14/2005 1:04:57 PM
I have an application that connects to remote machines with valid IP addresses. However, if I try to connect to a machine that does not exist, at least 45 seconds goes by before my application times out and moves to the next machine. I am interested in reducing this timeout to about 20 s...more >>

Another excel question
Posted by E-Cube at 3/14/2005 12:45:07 PM
How do I convert this VBA script into VB.Net? Rows("4:5").Select Selection.Rows.group I did take a look at the office 2003 sdk for excel at the group property but that did not provide helpful information. Any information is appreciated? E-Cube...more >>

'Tab' character causing problem in tooltips
Posted by Cesario at 3/14/2005 12:21:03 PM
I'm trying to display formatted multi-line text in tooltips. It seems that the newline character works fine whereas the 'tab' character is causing problems and can't display properly. More specifically, when I set the caption of a tooltip to something like "Hello" + vbTab + "there", the too...more >>

VB.Net Environment Preferences
Posted by Joachim Hofmann at 3/14/2005 12:10:22 PM
Hello, is it possible to save my personal preferences (menus, shortcuts, ...) to retrieve them on another machine with another VB.Net Environment? How can I do this? Thank You Joachim...more >>

Update vb.net app
Posted by Viktor Zadro at 3/14/2005 11:58:48 AM
How live update my vb.net app from FTP site? ...more >>

Which event to use to set initial form position?
Posted by Oenone at 3/14/2005 11:45:14 AM
In VB6 I used to use the Load event of a Form to set its position on the screen (based on wherever the user put the form the last time they used it). This was ideal as it fired before the form became visible. Since moving to VB.NET I'm finding that the Form is already displayed on screen wh...more >>

Intellisense, public modules, and public methods
Posted by Christopher W. Douglas at 3/14/2005 11:45:04 AM
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I then reference from the project that needs it. Let's say I have a method, Bar, that I want to acces...more >>

Rgistering Assemblies To The GAC Programatically
Posted by Ram at 3/14/2005 11:41:36 AM
Hey, Can I register an Assembly to the GAC programatically __WITHOUT__ using gacutil? Thanks ahead --Ram ...more >>

Online Help
Posted by Ahmed Hashish at 3/14/2005 10:51:20 AM
Dear All I didn't install the help documents (MSDN) for the VS.net, How could I attach VS.net online help to Microsoft site directly, i.e.. use the msdn on Microsoft (msdn.Microsoft.com) , so when pressing F1 or open the dynamic help window VS open the help from the internet. Ahmed ...more >>

Toolbar button problem - text not visible
Posted by Jan Krouwer at 3/14/2005 8:24:52 AM
I have a problem that shows up only on some systems - the toolbar text in buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I changed the textalign property to "right". This solved the problem, but I don't know what's happening. I notice that there is a small "dot" in t...more >>

Exception when working with app.config with windows .net
Posted by harinathch NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 3/14/2005 7:36:49 AM
Hi, Iam working with myapplication.exe.config file in my vb.net windows application.Its working fine in my development environment. When i test this application in some other machine using exe and all related dll's and files. Iam getting following error. Thx in advance. Hari. See the e...more >>

Excel.dll question
Posted by E-Cube at 3/14/2005 7:33:02 AM
Hello All, I have excel version 11 currently referenced in my vb.net proj. I have created an excelsheet using Excel.Worksheet. When I look at the available functions, such as insert i get Insert([Shift as Object], [CopyOrigin as Object]) I was wondering where can I look to find valid valu...more >>

ListBox.DataSource = DataTable... How to Set Selected?
Posted by Zorpiedoman at 3/14/2005 4:55:01 AM
Ok, I have a DataTable: ID Name -- ------------ 1 John 2 Jacob 3 Jingleheimer 4 Schmidt 5 John I have set my DisplayMember of my listbox to "Name"; my valueMember to "ID" and my datasource to myDataTable. So far so good. It shows the li...more >>

Using COM components
Posted by kd at 3/14/2005 3:49:03 AM
Hi All, Would anybody be able to help me on how to use COM components in vb.net? I have a dll and would like to use the functions of the dll. Here are the steps that I followed: 1. Register the dll 2. Add reference to the dll in the solution explorer Is there a need to add import statem...more >>

intermittent download using Stream.Read()
Posted by Loane Sharp at 3/14/2005 12:42:41 AM
Hi there I'm downloading data from a remote server to my local disk using Stream.Read() and Stream.Write() (as previously suggested by Ken Tucker in this group). By and large the download and local write operations occur successfully, but frequently the data transfer is "intermittent", ie. ...more >>

Parameterized Query
Posted by Rob at 3/14/2005 12:03:10 AM
I have a problem I can't seem to solve although it should be easy. I've done these many times before. But I keep getting an exception, "Line 1: Incorrect syntax near 'GetFinancialData'." This query works fine through Query Analyzer or if I do not set SQLParameter for the query. I hope so...more >>


DevelopmentNow Blog