all groups > vb.net > march 2006 > threads for wednesday march 22
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
how to avoid broken references when give out projects
Posted by Tanja Krammer at 3/22/2006 11:48:53 PM
Dear all,
is it possible to add reference with a relative path instead of absolute?
Thanks,
... more >>
Learning - displaying selection in pictureboxes
Posted by KitKat at 3/22/2006 11:40:05 PM
Problem trying to figure this out, using a combo box selection I need to go
to each folder, Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,and Cam 8 and display each
picture (from selection) from each folder and display in pictureboxes
pcbCam1, pcbCam2, pcbCam4, pcbCam6, pcbCam7, and pcbCam8.
So far the... more >>
Create 30 Day trial version
Posted by Niclas at 3/22/2006 10:28:48 PM
Hi,
Does anyone have any advice on how to best develop a 30 day trial version.
Assume that a timestamp when the app was first installed should be stored
somewhere on the target system, but I need to understand how this can not be
simply bypassed by removing this file..
Niclas
... more >>
Data availability best practices?
Posted by Jim Hubbard at 3/22/2006 10:25:49 PM
I have a client that wants me to code a simple application as a prototype.
The catch is that he wants to use this application at several different
stores while being able to share each store's data. He also want the
application to continue to function in the case that the internet is down
for a... more >>
Different colored lines in the same textbox
Posted by None at 3/22/2006 9:02:31 PM
How do i write lines with different colors in a textbox?
I've tried using the forecolor property and it just takes the last
color.
eg.
TextBox1.ForeColor = Color.Red
TextBox1.Text = "test" & " "
TextBox1.ForeColor = Color.Purple
TextBox1.Text &= "test2"
It prints both test and test2 in pu... more >>
any dot net guru here can answer this question?
Posted by dchu NO[at]SPAM bigfoot.com.au at 3/22/2006 7:17:29 PM
Hi there,
Does anyone know how to get IE browser control to print in printer
duplex mode, as far as I know printersetting class can print duplex in
txt files, but I want IE browser to open an html docs then print in
dupelx mode.
Thanks if you can help.
... more >>
Null, DBNull, Nothing, VBNullstring
Posted by Larry at 3/22/2006 5:21:09 PM
Hi all,
I am coming over from VB 6, learning VB.NET.
I have read and have in front of me, the language reference from
the msdn, on; Behavior of Null has changed, Isdbnull function and
isnothing function.
However, I am still at a loss to know excatly what to do.
When I check a control ... more >>
How do you know when all databindings on form are complete?
Posted by JohnR at 3/22/2006 5:15:03 PM
I'm running into a 'timing' or 'race' condition on my form. All textbox
controls are bound to a datasource, but certain other controls (like
labels) need to be updated when you move to a different record. In addition
some of the databound controls need to be modified (ie: verified) based on ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Invalid Date does not throw an exception
Posted by gavin at 3/22/2006 5:10:37 PM
Have a Windows for with a textbox.
Enter a date 2006/1/1/ -Note an additinal / on th end
This is clearly an error but when text is cast to a date the extra / is
automatically removed. The cast date displays as #1/1/2006#.
Is this correct?
Much appreciated.... more >>
how to set a default event on a user control
Posted by Brian Henry at 3/22/2006 4:02:20 PM
when you have a user control on a form and double click it, it creates code
to handle its default event "Load" how can i change this so if i double
click a user control on a form that it will take by default the event I
specified as the default one? thanks!
... more >>
SQL Distinct
Posted by Nicolas at 3/22/2006 3:29:32 PM
What should be the SQL Query syntax to get the result:
Basicaly it's a dinstinct on "Name" but the DocUNID is always quicking in
Query not working: SELECT DISTINCT sysEnum.Name, sysEnum.docUNID FROM
sysEnum ORDER BY sysEnum.Name ASC;
Desired Results:
{F77A1DCD-3948-4761-B38F-C5DD0A823196} ... more >>
Crop/Zoom Image in Container
Posted by DMCD at 3/22/2006 1:14:49 PM
I want to allow my program users to:
1. Open a jpg inside of a panel control
(PictureBox control inside Panel control ... PictureBox picture set to
user's jpg file selection);
2. Zoom in and out on the jpg
(change the picturebox size mode to zoom and scale the photo);
3.... more >>
Opening a query in MS Access with parameters using VB.net
Posted by eagleofjade at 3/22/2006 1:13:37 PM
I am trying to help a friend who is learning VB.net in school. I have
done VB programming for a number of years using VB 6. He needs to open
a query in an Access database that has parameters so he can work with
the returned records.
In VB 6, I use DAO and do it this way:
Dim db As Database
... more >>
VB05 Express Date/Time Picker control
Posted by Darhl Thomason at 3/22/2006 1:08:57 PM
I'm converting my Access 2003 VBA app. I have a number of date fields in my
db that I want to use the date/time picker control with, but if there is no
entry in my database, I want the date/time picker to show no date. Right
now the first time it shows a blank date record, it inserts today's... more >>
Copy to Clipboard
Posted by Samuel Shulman at 3/22/2006 1:06:41 PM
so the user can paste it anywhere
What method can be used?
Thank you,
Samuel
... more >>
VB.NET - Issues with VB.NET FTP Class to UNIX FTP Server
Posted by craig.overton NO[at]SPAM gmail.com at 3/22/2006 12:57:47 PM
All,
I am currently developing an FTP class in VB.NET. It's kid tested,
mother approved when trying to access an FTP Server on a Windows box
meaning I can connect, run commands, upload and download a file no
problem. My issues come when I try to use the same class with the same
commands to ac... more >>
what's up? reading xml
Posted by cj at 3/22/2006 12:37:38 PM
I'm doing something wrong in the reading of this file. I think the rest
will work but it keeps telling me something else is using the file.
Nothing is. Any ideas?
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
Dim do... more >>
locating header and footer on multible pages
Posted by Mr:waly at 3/22/2006 12:23:41 PM
hi there,
I have an array of about 22 members and a heading for my paper about 6
lines and a 2 lines footer . the problem is that when the array is full
the printer requires a new page to print the rest of the array , so how
can I force the printer to print a certain nomber of lines and place
... more >>
Best Practices - Coding Convention Question
Posted by Ren at 3/22/2006 11:49:06 AM
Hi All,
I'm still rather new at vb.net and would like to know the proper way to access
private varibables in a class. Do I access the variable directly or do I use
the public property?
public class MyClass
private _variableName as integer
public property VariableName as integer
get... more >>
XQuery amd SQL 2005
Posted by BK at 3/22/2006 11:43:23 AM
I am working on system that will have a cataloging component which would
essentially be a Folder/File structure. So far I have coded the Iteration
over a selected folder and am displaying the data/structure in a TreeView
(VB.NET 2005). I then serialize the Treeview and store the serialized X... more >>
Help with Access Database and tables
Posted by George at 3/22/2006 11:37:19 AM
Hi all,
I am trying to convert to vb.net from VB6 and I am haveing a major problem
with connecting to an Access database and adding, updating, deleting data.
This is what I usually use in vb6:
sqlText As String
dbConn As New ADODB.Connection
rsConn As ADODB.Recordset
dbConn.Provider ... more >>
Default highlight color
Posted by John at 3/22/2006 10:48:26 AM
Hi,
When a textbox gets focus in WinForm, the text inside the textbox is
highlighted with default color. How can I get the value of the default
highlight color like the following?
Dim BackColor as Color = MyTextBox.BackColor
Dim ForeColor as Color = MyTextBox.ForeColor
' And hopefully I ... more >>
Process BUG?
Posted by at 3/22/2006 10:47:01 AM
I created a simple test app to start another app and get the process info
(to see if it has exited).
Heres my code:
Dim sinfo As New ProcessStartInfo, myProcess As Process
sinfo.FileName = "c:\test.txt"
myProcess = Process.Start(sInfo)
----------- works fine, opens in notepad, myProcess has ... more >>
drag / drop list view items from two list views
Posted by Brian Henry at 3/22/2006 10:26:56 AM
So what is the easiest way to do this? I have one list view with a list of
items (in detail view and with about 20 sub items) and a second list view
that will take the items they drag from the first one to the second one. I
tried this once a few years ago by trying to clone the list view item... more >>
Reading Excel in VB.NET
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 3/22/2006 10:02:57 AM
Hi,
So I do actually know how to read excel into VB.NET using the following
approach:
With oConn2
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source="
& FilePath & ";Extended Properties=Excel 8.0;"
.Open()
End With
Worksheet = "Well Data"
strSQL = "SELECT * FROM [... more >>
How to detect what is hanging my program
Posted by Jon at 3/22/2006 9:45:37 AM
I have a program that runs for a little bit and just hangs after a while. It
runs on a timer and sends faxes. It hangs and does not produce any error or
event log entry. Is there some way to attach to the running exe and see what
code actually died? It never happens when running it in the IDE.... more >>
Building VB.NET Interface definitions from a COM interface
Posted by Rob Perkins at 3/22/2006 9:32:15 AM
Hi,
Is there anything out there which can take either a COM interface
definition as an input, or a VB6 class file as an input, and return a
..NET Interface definition block as an output?
I need to refactor a block of VB6 code, and the converters built into VS
2005 aren't working at all f... more >>
encryption
Posted by guy at 3/22/2006 8:37:23 AM
vb2005
has anyone a good example of how to encrypt/decrypt a string that does not
involve writing it out to a file, just converts it to a second string?... more >>
Committing Byte Array to Disk
Posted by jwgoerlich NO[at]SPAM gmail.com at 3/22/2006 7:56:23 AM
What is the fastest way of writing a Byte array to disk? I have a 512
MB array in memory. I am writing to a 10K RPM drive, and have ample CPU
and RAM. I need to write as much data as possible, as fast as possible.
Currently, I am using the StreamWriter. I am not getting anywhere near
the thr... more >>
DoEvents in VB.NET
Posted by Julia Beresford at 3/22/2006 7:48:27 AM
Hi
I have a Class Library with a class in it. The class has a method that
processes a whole load of stuff. I want to be able to pause this method from
the application using this class.
In VB6 I would have had a DoEvents statement in my method. This would have
allowed the user to sel... more >>
ComInterop: VB6 Com Interface object = VB6 Com object fails
Posted by Douglas Marquardt at 3/22/2006 7:24:00 AM
Hi All:
As the subj says.... I am trying to do this:
Dim prms As BTIIFCORE.IFProperties
prms = New BTIBSODLL.Properties
BTIIFCORE is a VB6 DLL that contains a public not createable
class named IFProperties
BTIBSODLL is VB6 DLL that that contains a multiuse class
named Properties that ... more >>
How to pass an object between forms.
Posted by Matt at 3/22/2006 7:09:19 AM
I'm using VB.Net 2005
Ok so I have this object that I create on Form 1.
Form 1 in turn calls Form 2 that needs a copy of that object to do its
work.
Is there any easy way that I can copy or pass that Form 1 object to
Form 2? I don't want to make it a global object.
... more >>
How to pass an object between forms.
Posted by Matt at 3/22/2006 7:09:04 AM
Ok so I have this object that I create on Form 1.
Form 1 in turn calls Form 2 that needs a copy of that object to do its
work.
Is there any easy way that I can copy or pass that Form 1 object to
Form 2? I don't want to make it a global object.
... more >>
How to update data in Windows Datagrid
Posted by shil at 3/22/2006 6:35:37 AM
Hi,
I am writing a windows app in .net 2003. I have a datagrid which gets
data from a storedprocedure. My question is how can I update the data
in the datagrid? I want to call another storedprocedure to update the
data in the datagrid.
Thanks in advance.
... more >>
Moving/deleting the DB upon close
Posted by Erez Mor at 3/22/2006 6:11:31 AM
dear all
i'm using vb2005 and SSE.
using the application's startup event, i'm copying the db file (.mdf) to
it's location (a ram-drive). that seems to work fine (i only connect to it
after a successful login, so it doesnt "know" the db is not there...)
then, using the application's shutdown e... more >>
Instantiating classes at runtime
Posted by Mr. Morad Jamal at 3/22/2006 3:26:27 AM
Tell me guys how to instantiate a class at runtime given the assembly DLL
file and the class name ?
Thanx in advance ..... more >>
Create a new dataset from a dataview
Posted by Li Pang at 3/22/2006 3:05:28 AM
Hi,
I created a dataview for filtering data from a datatable, I want to create a
new dataset from this dataview. Anybody can give a simple solution?
Thanks in advance... more >>
AddressOf from VB6 to .Net VB
Posted by pavel.orehov NO[at]SPAM gmail.com at 3/22/2006 2:05:42 AM
Private Delegate Function WndCallback _
(ByVal hw As Integer, _
ByVal uMsg As Integer, _
ByVal wParam As Integer, _
ByVal lParam As Integer) As Integer
Private Declare Function SetWindowLong Lib "USER32.DLL" Alias
"SetWindowLongA" _
(ByVal hwnd As ... more >>
ot: mvps, how do you propse one?
Posted by guy at 3/22/2006 1:08:27 AM
how do you propose someone to be an mvp?
... more >>
Decimal/Single/...: which Numeric-type to use?
Posted by Pieter at 3/22/2006 12:00:00 AM
Hi,
I'm having some troubles with my numeric-types in my VB.NET 2005
application, together with a SQL Server 2000.
- I first used Single in my application, and Decimal in my database. But a
Single with value 4.475 was converted to a Decimal with value
4.4749999999999996D. So after insert... more >>
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Please check your Setup"
Posted by Vijaya P Krishna at 3/22/2006 12:00:00 AM
Hi,
I have a .NET Windows Forms application, written in VB.NET and C#. [.NET
runtime version: 1.0; Operating System: Windows XP.]
I am opening a URL from the application using Process.Start(). The URL
points to a java servlet running on apache-tomcat.
For some users the application shows ... more >>
Creating a CSV from query results
Posted by Michelle at 3/22/2006 12:00:00 AM
Hi
I'm trying to create a .csv file from a list of records that are returned
from a query.
Any links / code samples / help is appreciated
Michelle
... more >>
Sending emails to multiple recipients
Posted by Michelle at 3/22/2006 12:00:00 AM
Hi
Is it possible/anyone know how to send a document (.pdf) to multiple
recipients using POP where the email is not just a matter of throwing 1000
email addresses in the BCC list, but each email is addressed personally..
ie: dear Harry...
I need to generate a subset of people via a query... more >>
reportviewer vb2005
Posted by Xpeppe at 3/22/2006 12:00:00 AM
Hy, anyone have used reportviewer of vb2005
have you any example ?
thank's
... more >>
Dirty value of datagridview cell
Posted by Morten Snedker at 3/22/2006 12:00:00 AM
How do I the value of a cell in a datagridview, before it is updated?
I wish to validate the "visible" value, not the actual value (cell/row
hasn't been updated yet).
Thanks in advance.
/Snedker... more >>
Check for new versions
Posted by HIK at 3/22/2006 12:00:00 AM
Can someone point me in the direction of a routine that checks for a
newer installation package (msi file), and if it finds one, installs it?
thanks
Haim... more >>
|