How to set datagrid's maxrecords
Or
How to set datatable maxrecords
tia
TerryW....
more >>
Showing TIF-Images
Posted by shutter NO[at]SPAM swissonline.ch at 9/30/2004 5:00:37 PM
Hi
My problem:
I have TIF-Images single- and multipage and i want to show the images in a
Picturebox in vb.net
how can I load the tif-file in a picturebox and it's possible to show all
pages from a multipage tif?
Thank you
Stefan
...
more >>
Serializing a Color property
Posted by Tom at 9/30/2004 4:54:08 PM
I am having trouble serializing a color property. Basically, it is not
serializing the value. For instance, in the following:
<Serializable()> _
Public Class TestColor
Private _MyColor As System.Drawing.Color = System.Drawing.Color.Red
Public Property MyColor() As System.Drawing.Co...
more >>
How to marshal C pointers to arrays in VB .NET
Posted by kevin at 9/30/2004 4:49:29 PM
Hi
I have a C struct that is of the following
typedef struct{
DWORD num_conversions; ...
short *sample_values;
....
} DSCAIOINT;
In VB I'm doing the following
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi, Pack:=1)> _
Public Structure DSCAIOINT
....
...
more >>
Dispose and Finalize - When to use
Posted by Dennis at 9/30/2004 4:35:02 PM
I have two questions;
1)When should one use Dispose on objects
2)Is the Finalize Overrides sub needed in classes and if so, when and why?
Thanks for any clarification on these two items.
--
Dennis in Houston...
more >>
How to get the Process the Active Proces?
Posted by DraguVaso at 9/30/2004 4:25:08 PM
Hi,
In my VB.NET-application I need to get the Process that is currently active
on the screen of the user. I need it to get back to that application after
that I brought mine to the front...
for exemple: user types in Word...
my application triggers an event, has to come to the foreground (...
more >>
Raising keyboard events
Posted by DC at 9/30/2004 4:10:10 PM
Hi All,
Is there any code snippet that shows how to raise keyboard events,
for example,
simulating the KEYDOWN event on key F5.
Thanks,
DC
...
more >>
How to format a date?
Posted by ZippyV at 9/30/2004 3:53:41 PM
Hello everybody ,
I need to retrieve the month and the year of a given date. I need to have 2
digits for the month and the month, but I don't know how to format it.
Can somebody give me an example?
Thanks!
...
more >>
screen resolutions
Posted by Brad at 9/30/2004 3:46:44 PM
I have a simple application that I am installing on a couple of different
machines here at work. One small problem that I have run into and have not
anticipated (being a "newbie") is sceren resolution. I program forms on my
resolution of 1152 X 864. When I installed this on my supervisors P...
more >>
Displaying SQL Images in ASP.NET pages
Posted by Lindsey Howell at 9/30/2004 3:33:15 PM
Hello,
I've encountered a problem when trying to display BLOB images from a SQL
database using VB.NET. This is the code which generates the error:
Dim mySqlConnection As SqlConnection = New
SqlConnection(connectionString)
Dim mySqlCommand As SqlCommand = New ...
more >>
WMI - Win32_Process - Commandline Problem
Posted by Christoph Borger at 9/30/2004 3:11:35 PM
Hello!
I have wrote a windows service in vb.net. This service monitors the running
processes with WMI and the Win32_Process class. Till last month all seems
ok. But since the begin of september the service can't retrieve the
commandline property of the processes. I think this is an result of ...
more >>
Run application with a different user account.
Posted by kevinbronsdijk NO[at]SPAM hotmail.com at 9/30/2004 2:54:47 PM
Here is the story:
The application performs different administrative tasks. But now users
who aren't part of the administrators group have to perform these
tasks as well. Just giving them the proper rights is not a secure
solution. For example, we only want our users to create folders or
files ...
more >>
Custom Error Handling
Posted by Steve Amey at 9/30/2004 2:46:55 PM
Hi all
I want to be able to throw a custom error up the call stack. I have looked
around and it seems as though it's possible, but I can't get it to work
:o( Below is some sample code.
------------------------------------------------------------
Public Class MainForm
Public Sub Show Form...
more >>
Monitoring windows service
Posted by Wally at 9/30/2004 2:46:01 PM
Hi
Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitorin...
more >>
Possible bug combobox
Posted by Peter Proost at 9/30/2004 2:41:43 PM
Hi group could someone please confirm this behavior?
Place a combobox on a form an add some items to it, then in the
combobox_keyup event place the following code: combobox1.droppeddown = true
When I then run the programma and type something in the combobox, my mouse
becomes invisible on the e...
more >>
Newbie: "dual" database connection
Posted by steve at 9/30/2004 2:31:21 PM
Hi,
This is probably a stupid question but I have spent the whole day without
being able to come up with a soliution.
I want a way to give the user the choice of which database (SQL or Access)
to connect to. It's basically the same database, created with Access and
then ported to SQL server. ...
more >>
Client port for SQL
Posted by Mark Lauser at 9/30/2004 2:29:06 PM
Hello,
I'm running a vb.net Windows application that communicates with a SQL Server
using SQLClient.SQLConnection.
How do I specify the port on the client that should be used for this
communication? I would like to have a setting in the application that will
allow the user to change thi...
more >>
Simple dimension statement question
Posted by Jordan at 9/30/2004 2:25:30 PM
I have the following dimension statement in a VB.NET subroutine:
Dim x, y, z As Double
Will x, y & z all be dimensioned as Doubles, or will x & z become a
"System.Object" datatype?
Thanks,
Jordan
...
more >>
copy array
Posted by Frank at 9/30/2004 2:21:20 PM
Hi,
I have an array in a class
When I make a copy of that class and copy the array from one class to the
other the two arrays point to the same object:
arr=arr => same object
arr(0)=arr(0) ==> different objects
How do I copy an array without copying all the arrayelements one by one?
Thanks
...
more >>
Get Name of Printer Driver
Posted by Alan at 9/30/2004 2:21:05 PM
How can I get the name of a printer driver from the printer name in VB .NET?...
more >>
Problem with send mail
Posted by Sophie at 9/30/2004 1:46:48 PM
Hi, I'm not very good in english so excuse me if I have difficulty to
explain my problem.
I want to send a mail with VB.net with this code :
Option Strict On
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
...
more >>
How do I resize a form
Posted by Dustin at 9/30/2004 1:35:55 PM
I would like to resize a form to it's maximum size, as if I hit the
maximize button after it loads. How would I do this programatically in
VB.NET?
Thanks,
Dustin...
more >>
ErrorProvider and Grids
Posted by Woody Splawn at 9/30/2004 1:23:56 PM
Is it possible to make use of the ErrorProvider logic in a grid?
...
more >>
DirectoryInfo.GetFiles is broken
Posted by Jonathan Allen at 9/30/2004 1:19:30 PM
MSDN> "The matching behavior of searchPattern when the extension is exactly
three characters long is different from when the extension is more than
three characters long. A searchPattern of exactly three characters returns
files having an extension of three or more characters. A searchPattern of
...
more >>
Need to break out of recursive function
Posted by Bill Borg at 9/30/2004 1:05:04 PM
Hello,
I call a function recursively to find an item that exists *anywhere* down
the chain. Let's say I find it five layers deep. Now I've got what I need and
want to break out of that whole stack and continue execution at the point of
the initial call. Is that possible?
Thanks,
Bill...
more >>
Using a Listview to Populate a combo box
Posted by davemckie66 NO[at]SPAM yahoo.com at 9/30/2004 12:48:24 PM
Hi all
I am trying to Populate a combo box from a selection in an adjacent
Listview. The Listview lists as a string the field names of 4
different fields in tblFile. So far I can populate the combo box with
the correct number of records(only 4 in the test database) but the
data is the actual ...
more >>
DropDown in Combobox
Posted by Claudio Di Flumeri at 9/30/2004 12:37:42 PM
When I click the arrow of a combobox, the list appears under the combo and
the DropDown event is raised. If, at this point, I click somewhere in the
form containing the combobox, the list disappears but the event is not
raised. How can I know when this event happens?
...
more >>
How detect Edit mode on a grid?
Posted by Woody Splawn at 9/30/2004 12:19:48 PM
I don't know what it's called when the little pencil shows up in the Row
Selector portion of the grid but to me it indicates that the user is in edit
mode. I would like to detect this condition because I have a Save button
above a Grid, but I do not want it to be visible until the user has presse...
more >>
Assign a DBNull to Optional parameter
Posted by Ed Chiu at 9/30/2004 12:15:07 PM
Hi,
Is there a way to assign a DBNull value to an optional parameter of a
function?
I tried:
Public Function AddUpdateCases( _
ByVal CrisCaseID As Integer, _
Optional ByVal APN As DateTime = System.DBNull.value)
Doe not work for me.
Thanks in Advance...
more >>
Confused about dynamic VB Arrays and ReDim
Posted by Zenobia at 9/30/2004 11:50:58 AM
Hello,
I want to keep a list references to database records being
accessed.
I will do this by storing the record keys in a list. The list
must not contain duplicate keys. So I check the Contains
property before adding.
Question. Can I use an Array for this or should I use an
ArrayList? ...
more >>
Property Accessors w/diff Accessibility??
Posted by A Traveler at 9/30/2004 11:50:14 AM
Hello,
I am wondering if this is possible: Code myself a nice class, say MyClass.
Give it some property, say MyProp which has Public Readonly but Protected
Write-ability. So it would be, in effect, something like this:
Public Property MyProp() As Whatever
Public Get
Return pMyP...
more >>
datagrid Get "F3" function
Posted by Agnes at 9/30/2004 11:48:33 AM
My purpose is When the user press "F3" in specified column, i need to put
specified data in that column
Now, I can get "F3" by using [Protected Overrides Function
ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As
System.Windows.Forms.Keys) As Boolean ]
BUT I don't kno...
more >>
Datagrid question
Posted by Scott Meddows at 9/30/2004 11:46:44 AM
I have a custom Datagrid that I want to do somthing with. When I resize a column I want a tooltip like box to come up and tell me
the width of the column. Is that hard to do? Posted is the code for what I currently have.
Thanks
Scott
Public Class MyDataGrid
Inherits DataGrid
...
more >>
Newbie: Autofill for ComboBox ?
Posted by steve at 9/30/2004 11:46:32 AM
Hi,
I am wondering if I can easily reproduce the "autofill" effect in a combobox
that i have populated from a dataset OR in general from a static list.
I want to create the effect that when the user starts typing and the cmbBox
automatically fills the *closest* match.
I noticed that if i star...
more >>
High performance UDP Listener?
Posted by gregory_may at 9/30/2004 10:35:32 AM
I am working on an application that needs a high performance UDP Listener.
Currently I have one thread listening to the network and handling the
requests. Currently I need about 70 MS between packets so I dont drop
anything.
I think I need one thread listening to the network and another t...
more >>
Get width of menu item
Posted by at 9/30/2004 10:25:14 AM
Hi,
I'm trying to right-align a context menu with its source control.
Here's what I have to LEFT align it:
'\\\
Dim pt As New Point(0, myButton.Height)
myContextMenu.Show(myButton, pt)
'///
It looks like I need the width of the context menu to get the correct point:
Dim pt as New Point...
more >>
Calling MS SQL's Query Designer to reformat SQL Statement?
Posted by Norton at 9/30/2004 9:48:18 AM
Hi all ,
i would like to make a small utility which allow me to reformat the sql
statement from clipboard. I am finding ways which allow me to make use of MS
SQL's Query Designer.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vdtsql/dvrefsqlpane.asp
Do u know if there a...
more >>