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 > february 2006 > threads for friday february 10

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

Time conversion and vb.net
Posted by Paulers at 2/10/2006 11:36:19 PM
Hello, I'm working on an app that requires the functionality to convert the time in Austrailia to the time in New York (EST). I am wondering, what is the bestway to approach this in vb.net? Is there anything in VB.net that can make this conversion? If not, is it possible to hit a time server...more >>


Find specific pattern in a string
Posted by ksrajalakshmi NO[at]SPAM gmail.com at 2/10/2006 11:18:34 PM
Hai , in a textbox am having text as "(20/100)+pay1*pay2" .it's a formula. and stored in a particular variable. string strformula="(20/100)+pay1*pay2" ; i've to substitute the value of the variable 'pay1' & 'pay2' and finding the value of that strformula. can any onr tell me how to find ...more >>

SImple ADO.Net problem
Posted by Grumpy Aero Guy at 2/10/2006 10:04:45 PM
Set up a simple ADO.Net Windows app. Set everything up... fill data via ******************************************************************* Dim bmb As BindingManagerBase : : Private Sub MemberDetail_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ...more >>

DateDiff function returning incorrect results in asp.net 2.0 vb
Posted by reney at 2/10/2006 8:57:13 PM
I am trying to return the difference in minutes from a starttime and stoptime using the datediff function in a Web Project with VB.Net With: StartTime = 2/10/2006 8:46:03 PM EndTime = 2/10/2006 8:48:10 PM I am getting a return value of 1054586688 in the diff variable I tryed this sa...more >>

parameter to the file .exe
Posted by Franky at 2/10/2006 6:32:11 PM
the file .exe in the vbnet can received a parameter how can i received this parameter by code ?? ...more >>

print file to the printer selected by the user
Posted by Franky at 2/10/2006 6:31:57 PM
hi, can i printer a file in the printer selected by the user??? ...more >>

Datagrid display problem
Posted by JJ at 2/10/2006 5:57:11 PM
I have a datagrid on my form that displays its data from various tables within a specified dataset. That all works correclty. However, when one cell is selected prior to changed the displayed table, the cell from the old table remains visible, infront of the new tables data...?! I have tr...more >>

Load assembly exception
Posted by Boni at 2/10/2006 5:46:42 PM
Dear all, I created a mixed mode exe assembly. Now I try to load a class from this assembly within the VB project. I get following error: Unhandled Exception: System.IO.FileLoadException: Attempt to load an unverifiabl e executable with fixups (IAT with more than 2 sections or a TLS section...more >>



Q: Percentages
Posted by Geoff at 2/10/2006 5:31:32 PM
Hi Can anybody help me with a puzzling thing I've encountered with formating with percentages. If I have x = 123 and then use format this with "P" (using the String.Format technique) I get 12300% not the intended 123% Can anybody tell me what I've misunderstood? Thanks in a...more >>

Shared Variable... Help me please...
Posted by LB at 2/10/2006 5:28:02 PM
Hello, Here the situation: I have 2 Web services which call each one a DLL. Each one of these dlls uses a shared variable to read and write in a file XML (the same one). The problem, when file XML is updated by one of the applications, the other is not refreshed even if I make a ' xmlDoc...more >>

SOAP Body
Posted by Bryan Dickerson at 2/10/2006 5:01:46 PM
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our perspective, should be as simple as defining an object and viewing a parameter on that object. My boss has ...more >>

newbi question on character validation
Posted by joe.minga NO[at]SPAM gmail.com at 2/10/2006 4:48:18 PM
This is an assignment for an VB intro class and I have no experience. Any help would be appreciated. I need to accept users name as input and then check for the existence of a specific letter in the name. (the letter 'e') If it exists in their name, reply one way, if not, reply another way....more >>

Just-In-Time Debugging?????
Posted by cj at 2/10/2006 4:03:47 PM
I'm testing some code I typed in from an example program I was given. It works with F5. When I try to run the exe from an icon on the desktop I'm given a form that says: Just-In-Time Debugging An exception 'System.IO.FileNotFoundException' has occured in WindowsApplication19.exe. Possi...more >>

Array Alternative
Posted by Paul Cheetham at 2/10/2006 3:19:28 PM
Hi, I am writing an application that reads data from a PLC in a manufacturing plant. I use a control to communicate with the PLC, that returns an array of Short values. I do not always know the length of the data block that will be returned, and so cannot declare a suitable array. (As w...more >>

Cant page forward pass page 2
Posted by kurtgambino NO[at]SPAM gmail.com at 2/10/2006 2:47:06 PM
I cant get crystal report to go past page 2 unless i click go to the last page and it goes directly to the last page and when i press previous page it goes to page 1. Code shown belo Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table Dim tliCurrent As CrystalDecisions.Share...more >>

Printing a .dat file
Posted by baconbits420 NO[at]SPAM gmail.com at 2/10/2006 2:24:19 PM
i have created a .dat file using a streamwriter and am having troubles recalling the file for printing to a receipt. I know to use a printDialog and a PrintDocument, but how do i set the printDocument to the document i want? Any insight would help ...more >>

Error Logging?
Posted by HockeyFan at 2/10/2006 1:50:26 PM
I was wondering if anyone has simple code (or an example) (maybe in VB.Net) that shows how to log a message to a file. This is to be a general logger, that might log application errors and/or warnings. I've seen some stuff that does this with the EventLog, but that seems a bit much for my ne...more >>

Tooltips not working on client
Posted by dgk at 2/10/2006 1:36:06 PM
Odd. I need to demo an app early next week and I set it up on a test machine after installing a few necessary things (such as framework 2.0) and just copied the exe and associated dll. The app works fine, except that the tooltips don't show. These aren't on usercontrols for which I see that ther...more >>

DateAdd function malfunctions?
Posted by Rich Raffenetti at 2/10/2006 1:28:33 PM
I have the following code. If I do the dateadd function with dateinterval.minute, it works fine and the date/time value is displayed with zero seconds. If I do the dateadd function with dateinterval.second, an error is thrown saying I have an overflow. I would be happy to know if I am doi...more >>

Collections and Tracking Inserts/Deletes/Updates
Posted by Matt at 2/10/2006 1:19:04 PM
Let's say for the moment that datasets are not an option. If I have a collection of objects, is there a simple way to keep track of what has been updated, deleted, or inserted? Thanks. Matt ...more >>

Msg Box not displaying messages
Posted by moumita at 2/10/2006 1:14:51 PM
I have the folowing code..the logic according to me is correct..but I dont know...the msg boxes are not displaying anything...am I supposed to change any settings ??? Public Class Form1 Inherits System.Windows.Forms.Form 'declare the number variable Dim num As Integ...more >>

Howto Transfer data from the DataTable into a SQL Database
Posted by BStrick at 2/10/2006 1:11:16 PM
I would like to know what may be the "Best" way to approach with problem. I have an application that I created to transfers data dynamically from an unknown source (ie maybe Excel, Access, XML, or SQLServer) and imports it into a datatable and then on to the dataGridView for the user to see. ...more >>

Set PasswordExpired
Posted by Dumb Luck at 2/10/2006 12:23:44 PM
How do you set the passwordExpired? I am using WinNT provider and I can not find anything that will work. Do I need to user invoke? Any pointers are very appreciative, I am at my wits end on this. ...more >>

BLOB Insert
Posted by Briaaan NO[at]SPAM gmail.com at 2/10/2006 11:47:02 AM
Hi, I have a webservice that accepts a byte array as a field. I am trying to write this into my sql 2000 database, and have discovered the 8k limit on insert. I have found examples for doing the filestream and binary reader to use the UPDATETEXT SQL Function, but I cant seem to figure out...more >>

Least Cost Formulations and Linear Programming
Posted by JL at 2/10/2006 11:45:03 AM
I have a need to compute least cost formulations. This seems to be in the domain of "linear programming" of which I know practially nothing. Can anyone in the group give me a point in the right direction...are there any tools/libraries, books, websites, etc. TIA, John...more >>

File in use
Posted by vul at 2/10/2006 10:46:49 AM
I'm developing Windows Service which is going to listen MS Fax service events and update the database when Fax Job changed its status. I need to read OutboxLOG.txt which is used by MS Fax service. I either would like to copy it and to work with its copy to use its data for a database update o...more >>

How to use Process ID (PID) to get elapsed CPU time?
Posted by raines NO[at]SPAM fauske.com at 2/10/2006 9:42:39 AM
HI: I have a Process ID (PID) and want to continually query how much elapsed CPU time that process has used. How can I do that? Here is how I get my PID: Dim myproc,TheProcTime myproc = New System.Diagnostics.Process MyProcID = myproc.Start("c:\run27.exe", "c:\in...more >>

Data Grid Scroll Bar
Posted by EdB at 2/10/2006 9:29:27 AM
How do I capture the position of the vertical scroll bar? I present the grid to a user, they select an item, and I pop up an edit window. When they are done, I need to refresh the grid (editing cell contents of the grid is not an option here). when I refresh the grid, the scroll bar is ba...more >>

Generating or Creating Help Files
Posted by DAL at 2/10/2006 9:15:57 AM
How do I generate or create help files for a program I am creating? Thanks, DAL. ...more >>

Strongly typed data - the 'current row'
Posted by Larry Lard at 2/10/2006 9:14:44 AM
I've got a Windows Forms app talking to an Access db, and I'm experimenting with VS2005's form data binding stuff etc. I've got a dataset, a datagridview bound to a query (let's call it Customers), and I have a button called Edit, which when clicked should spawn a dialog wherein the customer a...more >>

ExceptionHandling class?
Posted by HockeyFan at 2/10/2006 8:46:28 AM
Does anyone have a good genereal exceptionhandling class that can be preferably used with web apps as well as windows apps, but in the least, to be able to work well in web apps. I'm fairly new to .Net and need something to start with that I can expand on later. ...more >>

DataGridView Problem
Posted by Brano at 2/10/2006 8:34:35 AM
Hi all, I have a Datagridview and I have added columns to it it is bound to a dataset table that is created in the code. The columns order is set and at the design view it appears just as I want it (I have textbox 5 columns and 1 button column that i want to appear at the end of the grid as l...more >>

System.ComponentModel.ListSortDirection
Posted by guy at 2/10/2006 7:59:28 AM
I have a derived BindingList that implements sorting, this has been working fine. however when i click a grid column header the ListSortDirection on entry to ApplySortCore is *** always *** Ascending. Any idea why this has happened? ---guy---...more >>

portability of applications
Posted by Rahul Chatterjee at 2/10/2006 7:25:49 AM
Being a newbie to dotnet, can anyone tell me if the current version applications/executables are portable across to other OS' like from MS to Unix ...more >>

Create Local Administrator
Posted by Philip Wagenaar at 2/10/2006 5:22:31 AM
What is the best way to create a local user on the machine with administrator rights? I have problems with my code on machines that have password policy. The problem is that when the user is created there is no password, and password policy is set to min 7 chars or something. So the code on...more >>

Cannot delete file after it is processed in a function with FileMo
Posted by Philip Wagenaar at 2/10/2006 4:00:28 AM
I have a application that opens a file, sends it a printer and then (tries) to delete it. It is based on the example from Microsoft: http://support.microsoft.com/?kbid=322091 In my application I have the following code but I always get a file in use exception when I try to delete the file: ...more >>

Eschewing the Form Designer
Posted by The Confessor at 2/10/2006 2:39:06 AM
I'm pretty heavily into do-it-yourself coding, which makes the Form Designer more of an annoyance than anything else. Is there any way to declare Inherits System.Windows.Forms.Form at the start of a class without having the environment open the Form designer whenever I try to open it? ...more >>

Step by step it works but...
Posted by raulcobo at 2/10/2006 1:01:59 AM
Hello to all: I have a program made in VB and Access. I have a very rare problem and I don=B4t know how to solving it. When I execute it, the program fails (does not leave any message error. I know that it fails because it does not update the registries of the database), however, if I execute ...more >>

vb.net windows application that connects to the net.
Posted by labrynth at 2/10/2006 12:54:01 AM
Hello, I am completely new to the windows platform and the .net technologies. I have to pick up vb.net on a real fast track to develop industry code. For my own learning purposes, I am writing a small application - A typical windows application in vb.net which contains a form with a butto...more >>

can you add onMouseOver/onMouseOut to an ImageButton??
Posted by simon at 2/10/2006 12:23:45 AM
hello. have an image button that i'd like to add some onMouseOver/Out to an imageButton. line looks like this... <asp:ImageButton onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('go','','images/go_on.gif',1)" ID="headerSearchButton" runat="server" Width="27" Height="20" ImageUrl=...more >>

Cdbl & International Settings
Posted by michele at 2/10/2006 12:00:00 AM
Hi, I have a problem with two function: IsNumber() and CDbl() because when I invoke it they throw an exception. The problem I think is International Settings, because NumberDecimalSeparator and NumberDecimalGroup have the same value "." I can't change this setting on computer by default so what ...more >>

How to hide one column in datagrid?
Posted by Sidney at 2/10/2006 12:00:00 AM
Hi~ I want to know if I want to hide a column in datagrid because I don't want to show that column of data. How can I do this? Sidney ...more >>

Window Form Cursor
Posted by Sidney at 2/10/2006 12:00:00 AM
Hi, I want to know that if the program is running and I want to use the cursor determinating it is running, I think it is the best for me to change the cursor before the procedure execute and change back the cursor after executed... how can I change the cursor whenever I move to anywhere insid...more >>

switch from2003 to 2005
Posted by Agnes at 2/10/2006 12:00:00 AM
Very painful !! my application run in 2003 is very well, (except General network error) Now, as i complie by 2005, many error occured, se.g combox's select index .2005 find me many many logicial error ! ...more >>

[Urgent Help] unable to write to output file 'h:\myproject\obj\Debut\prjProject.pdb'
Posted by Agnes at 2/10/2006 12:00:00 AM
that project is shared throught the nework , I don't know when I cannot complie anymore , and I got that error. (I had reboot the server, the pc, everything) Please help . ...more >>


DevelopmentNow Blog