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 >>
how to determine which version of MS Office is installed
Posted by Tarren at 9/30/2004 9:46:39 AM
I have to write an auto patcher for all of the client pcs, but some are
running different versions of office.
How can I determine which version of Microsoft Office is installed? Do I
get it from the registry?
Thanks
...
more >>
What does "'[fieldname]' is not a member of 'String'" mean.... specifically
Posted by dave NO[at]SPAM e2group.org at 9/30/2004 9:24:20 AM
Greetings All,
I have never seen this error before, and after an extensive search of
Groups, I cannot find a satisfactory answer to my basic question.
What exactly does "is not a member of 'String'" mean specifically?
I am developing in VB.NET and I was using the Collection datatype to
st...
more >>
Copyright?
Posted by Mike at 9/30/2004 9:23:07 AM
I have just started making a microsoft Excel like spread sheet in visual
basic and i am using the microsoft web components spreadsheet control.
If i started distrubuting the program for money say would i be breaking
copyright laws?...
more >>
Align
Posted by Jay at 9/30/2004 9:10:37 AM
How do I align text (left/right/center) in a "rich text box" that I have on
a form?
...
more >>
type cannot be used as an expression
Posted by eelises NO[at]SPAM yahoo.com at 9/30/2004 8:37:27 AM
Hi
I tried to convert the following C# code to vb.net.
code in C#
________________________________________________________________
using System;
using System.Reflection;
using System.Resources;
namespace LivingObjects.Resources
{
/// <summary>
/// This Class is used to create the R...
more >>
get the title of an image from a webpage
Posted by kieran5405 NO[at]SPAM hotmail.com at 9/30/2004 8:29:04 AM
Hi,
I want to connect to a webpage, grap the contents of the page i.e.
index.html, then find a certain html line and identify the image
listed on that html line.
The image title changes every day but i seen it done in php where the
start of the line was listed in a variable and the end of ...
more >>
Connecting to access
Posted by Justin Busch at 9/30/2004 8:08:07 AM
I thought there was a way to make a VB front end for an access database in
VB6, can this be done in VB.NET. If so, how?
...
more >>
What is the Open Event for a Windows Form?
Posted by Frank Reichenbacher at 9/30/2004 7:58:05 AM
I'm using VB.NET to develop a small app that I originally did in MS Access
VB. I can't figure out what events are triggered as a form opens and
populates its controls? I see Activate, but that does not seem to be what I
want.
Frank
...
more >>
OOP Principles
Posted by Scott Schluer at 9/30/2004 7:13:34 AM
Hello,
I'm getting more and more familiar every day with VB.NET and I'm trying
right now to create custom classes for one of my applications. I've got some
experience with OOP, but I'm not sure exactly how to lay these classes out.
The questions are probably pretty basic for someone with ex...
more >>
colol listview item
Posted by juststarter at 9/30/2004 6:43:02 AM
hi,
there is a vb.net listview (singleselect = true) control and when it loses
the focus i want to keep the selecteditem highlighted
i can use for example
listView.selectedItems(0).backcolor = color.Blue
in the SelectedIndexChanged event.
My prob is that i can't find the same color as th...
more >>
String manipulations
Posted by rodchar at 9/30/2004 6:33:03 AM
Hey all,
Let's say I have a string with a value ("Let's go to Florida")
If I wanted to capture whatever value comes after the word to, how would I
do that?
thanks in advance,
rodchar...
more >>
msdn.vb.lang forum grid
Posted by rodchar at 9/30/2004 6:25:04 AM
Hey all,
You notice how when you mouse over each thread in this forum how the
highlights, well how can I do this same thing in my win form with my datagrid?
thanks,
rodchar...
more >>
Are these too many?
Posted by rodchar at 9/30/2004 6:17:03 AM
Hey all,
I have a winform with a datagrid on it. I'm loading 1200 records via .Net
remoting.
My network protocol analyzer show 250 packets after the loading is done. Is
that good or bad?
thanks,
rodchar...
more >>
VB.Net / Crystal reports Help needed
Posted by BrianDH at 9/30/2004 6:13:07 AM
Hi
Does anyone here have any experience or examples with the manipulation of
“Top N Expert†via runtime code?
I need to be able to change/alter the Group & Top N Sort Order on the fly.
Examples needed.
Thanks
BrianDH
...
more >>
VB.NET: Get the Attribute and Text out from Xml string
Posted by http://www.visual-basic-data-mining.net/forum at 9/30/2004 2:38:23 AM
Besides using For Each /Next loop to find every individual nodes, which loop
should be use and how to apply if i want only one set of tag...(in blue)
Example:
<Book>
<Title ID ="1">
<Author>Hello</Author>
<Reference web = "www.reference.com" topic = "In thing">
</Title>
<Title ID = "2">
...
more >>
DataGrid Get F3 keypress
Posted by Agnes at 9/30/2004 12:05:40 AM
I design my own datagrid which can turn Enter into 'Tab', BUT I cannot
detect the user keypress 'F3' , Why
I try to detect keyCode, it only effect on 'keydown' , 'keyup' , but it
cannot get my keypress 'FX'
Anybody got idea ? thanks a lot
Protected Overrides Function ProcessKeyPreview(ByR...
more >>
asmx webservice including files
Posted by CtRiX at 9/30/2004 12:01:42 AM
Hello...
I have googled everywhere but still can't find a way to include a file in a
webservice.
What I want to do is spliting the main asmx into multiple files and include
them in the main source.
That would help a lot to have my code clear.
How can I do it ?
Thanks
Max...
more >>