all groups > vb.net > may 2004 > threads for tuesday may 4
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
Datagrid order by
Posted by Silvia at 5/4/2004 11:46:03 PM
Hi
I have a datagrid with values and when I order by one column and select one row the row selected not is de correct is that the original one row before order
The code is that
Dim gTable As New DataTable("Response"
Dim t As New DataGridTableStyle(False
Dim c As DataGridColumnStyl
... more >>
Converting byte(8) array to long
Posted by MGiblett at 5/4/2004 11:41:02 PM
i have a byte array of length 8 which i need to use as a long in Visual VB .NE
is there any way that i can do this?... more >>
How to default the date format ?
Posted by Agnes at 5/4/2004 11:01:04 PM
I am creating a usercontrol which is a textbox (with date format only)
I want to make sure the user input the date format into dd-mm-yyyy
How can I create such user control ???
I know how to create a "number textbox" usercontrol, but don't know about
'textbox'
Thanks a lot
From Agnes
... more >>
Using a variable to build the name of a variable for assignment
Posted by Bruce Dumes at 5/4/2004 10:44:25 PM
Ok, the subject line of this is pretty confusing, I'll admit.
I'm new to dotnet and VB. I've used this kind of construction in Perl a
zillion times over the years.
What I've got is something like this (not my entire code):
<MYCODE>
Sub setVisible(Stage As Integer)
Select Case Stage
... more >>
Formatting Date Time Euro style
Posted by Steve Peterson at 5/4/2004 10:04:42 PM
Hi
Probably a dumb question, but I'm having problems doing this for some
reason. I have a shortdate as datetime American Style (mm/dd/yy). I need to
convert it to a string that is in European format (dd/mm/yy).
I was hoping someone could help me out..
TIA
Steve
... more >>
Launch "Windows Security" windows from Process.Start
Posted by Dean Slindee at 5/4/2004 9:48:55 PM
I would like to provide a menu item that the users can click that launches
the same "Windows Security" window that doing a Ctrl+Alt+Delete launches,
but thru a Process.Start. Is this possible, and what is the name of the
..exe and it's location?
Thanks,
Dean Slindee
... more >>
GetClipboardData(CF_TEXT) trouble
Posted by Phil Kelsey at 5/4/2004 8:56:12 PM
Does any have sample code to copy clipboard data into a text variable in vba
... more >>
Retrieving Mouse Data
Posted by Jay Banks at 5/4/2004 8:53:06 PM
I'm working on a project that lists a few hundred items in a checked
listbox. The listbox entries are all backed up by a structure, and only
the descriptiong of the structure is shown in the listbox. Here's my
structure:
Public Structure ItemData
Dim Descriptiong As String
Dim... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Win API Wrapper: How to write them?
Posted by Chris Wagner at 5/4/2004 8:27:54 PM
I have about 5 to 10 API from a vendor and they don't supply VB warpper for
it. How hard is it to write a wrapper for VB. Is there a sample code just to
write one simple API? Thanks.
... more >>
Array with string index
Posted by John at 5/4/2004 7:51:35 PM
Hi
Is there a way to create an array of strings of subscript of type index too?
Like;
x("Element A")="Value for element A"
Thanks
Regards
... more >>
VB.NET - Detecting the attachment of removable storage?
Posted by Max at 5/4/2004 7:11:58 PM
Not sure exactly how to describe this or if it's even possible, so I'll
do my best and would appreciate some suggestions.
I'm currently working on a service that will allow me to automate some
file and folder manipulations. While this question is not concerning the
primary purpose of the pr... more >>
webclass: ENCODING
Posted by SiD` at 5/4/2004 6:04:49 PM
hi all,
I use the WebClient class to cominicate with HTTP server.
I use the following function for the GET method:
Dim wDownload As System.Net.WebClient = New System.Net.WebClient
Dim bHTML As Byte() = wDownload.DownloadData(sCompleteURL)
Dim sWebPage As String ... more >>
Cannot convert to bool error in VB but not C#
Posted by Bill Dee at 5/4/2004 6:03:42 PM
In C# this line compiles and works fine:
if (Request.Params["something"] != null)
But when trying to convert this to VB.NET and changing it to:
if (Request.Params["something"] <> Nothing)
I get the following error: Compiler Error Message: BC30311: Value of type
'System.Collections.Speci... more >>
tray program + external applications
Posted by Robert Samuel White at 5/4/2004 4:55:55 PM
Hi there. Can anyone point me to some good references or examples on how to
create an independent tray program that can send triggers to external
applications all designed inside the same solution?
Basically, I want a tray program with a context menu of options (they can be
checked or uncheck... more >>
MenuItem doesn't get used twice.
Posted by Eric Sabine at 5/4/2004 4:49:41 PM
Basically, the following code creates a menuItem array and tries to use it
twice. In the following piece of code, only the line that appears second
gets used. The first becomes ignored presumably when the second is run.
Me.mnuFile.MenuItems.AddRange(myMenu)
Me.ContextMenu1.MenuItems.AddRange... more >>
How to create an event that is triggered by a prameter?
Posted by David L Wright II at 5/4/2004 4:44:34 PM
I am extending the datagrid by adding 3 parameters that can be set both
during design time and run time. How can I develop an event that is
executed at run time based on the value of the parameter?
... more >>
Bitwise complement operator in VB.NET like in C#?
Posted by Bill Dee at 5/4/2004 4:19:17 PM
I need help converting a tiny piece of code which uses the bitwise
complement operator from C# to VB.NET.
In C# I currently have this:
long useThis = Myclass.ALLCONSTANTS;
long doNotUse = Mycalls.ABC | Myclass.XYX;
long useThis &= ~doNotUse; bitwise removal of flags not to use
How do I ... more >>
How to send values from one page to another?
Posted by Miguel Dias Moura at 5/4/2004 4:08:03 PM
Hello,
i have an ASP.net / VB page with a Script (submitValues) and a Form.
1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable value... more >>
convert date to ticks?
Posted by hra242 NO[at]SPAM hra.co.santa-cruz.ca-dot-us.no-spam.invalid at 5/4/2004 4:04:58 PM
Hi,
Does anybody know how to convert date to ticks from a dateTimePicker?
What I'm using now isn't working.
I'm trying to use a dateTimePicker to set an appointment in Outlook
with a reminder. I need this reminder to remind the recipient 14 days
in advance.
I'm having problems with the ... more >>
How to Add data to database and send it also no an email?
Posted by Miguel Dias Moura at 5/4/2004 3:56:55 PM
Hello,
i have an ASP.net / VB page with a Script (submitValues) and a Form.
1. The form has 10 input text and a "Submit" button.
2. The script declares 10 variables. The value of each variable is taken
from each of the 10 input texts.
3. When the button "Submit" is click the variable values... more >>
Bilder in einer Datenbank speichern
Posted by Maximilian Hofer at 5/4/2004 3:51:25 PM
Hallo NG,
wie kann man ein Bild in einer Datenbank speichern
d.H.
Ich habe in meinen Progrmm eine PictureBox einem mit einem Image, und ich
m;chte diese Daten in einer DB speichern. Wie komme ich yu den Bilddaten
mfg
Max
... more >>
changing a variable value outside of a sub
Posted by Scot at 5/4/2004 3:24:51 PM
I have a class library with two subs in a class, summarized below:
Class
Public num As Integer = 0
Sub 1
num = 1
End Sub
Sub 2
console.writeline(num.ToString)
End Sub
End Class
When I get to Sub 2, num is 0. How would I create an integer that I can
manipulate the value of t... more >>
TreeView does not have keys?
Posted by Mike G. at 5/4/2004 3:08:02 PM
With the VB6 TreeView, you could identify a node with a key for quick access
to it.
In .NET there is no "keys" property.
Can someone tell me the equivilent of the keys property?
Thanks,
-Mike
... more >>
Updating a SQL database
Posted by amber at 5/4/2004 3:01:04 PM
Hello
I can't get my update command to work..
I've used the sqlDataAdapter wizard to create a dataAdapter sqlDA_CB_LP, and it created the 'UPDATE' code as follows
Me.sqlDA_CB_LP.UpdateCommand = Me.SqlUpdateCommand
Me.SqlUpdateCommand4.Connection = Me.SqlConnection
Me.SqlUpda... more >>
Simple question about relative dates (ie. "last six months")
Posted by Robin Tucker at 5/4/2004 2:47:53 PM
Hiya,
I need to test "relative dates" in my program, such as "last six months" or
"last 3 months" or "in the last week" etc. How can I do this with a
DateTime structure?
ie. If NodeDate >= CurrentDate - six months (etc.)
Cheers
... more >>
How to link help with a DLL?
Posted by Steve S at 5/4/2004 2:11:02 PM
I haven't stumbled across how to do this in VB.Net.
VB6 had the HelpContextID to associate a help topic with a specific method.
All the .Net discussions are related to applications with visible interfaces and associating help with controls. In a DLL I need to associate help with a method. Ho... more >>
Memory/Leak Tool?
Posted by Chris Botha at 5/4/2004 2:10:09 PM
I have a Windows app (it will be promoted to a Service once this problem is
sorted out) that cyclically, every minute, connects to five SQL Servers over
the WAN, extract data and insert the data in a local SQL Server, using the
OLEDB provider. Every cycle I create one local connection and five re... more >>
Compiling single page in VS.NET
Posted by SS at 5/4/2004 2:09:33 PM
Hi,
How can I compile only the page/class that I am currently working on in
VS.NET and not the entire project?.
Thx
Sal
... more >>
Slightly OT
Posted by CJ Taylor at 5/4/2004 1:44:12 PM
Hey does anyone know of a program that can take an executable and turn it
into a windows service... not xyntservice please... didn't work for us.
Thanks,
CJ
... more >>
removeing leading zeros in a text string (not a numeric field)
Posted by Brian Henry at 5/4/2004 1:39:01 PM
Say I have a text string like
"0002323235-3434-3545" and I want to remove the leading zeros, would a
regular expression work here? sorry I haven't worked with regex's that much
and still need to get caught up on them :) if so how would you go about
doing that? thanks!
... more >>
process.start and Windows 98
Posted by Eric Fleet at 5/4/2004 1:06:06 PM
I have the following code snippet which starts a batch file in a separate process. It works fine on my development computer (2000 Server), and on an XP box, but fails on two Win 98 machines
No error, but I can be sure that the batch file does not run. I put an echo foo >> c:\file.txt to see if it i... more >>
How to Create Methods Similar to ToString
Posted by Charles Law at 5/4/2004 12:10:24 PM
In a VB.NET app, I can write
Dim s As String = 3.ToString
This is because 3 is of type Int32, which is a structure, which has a method
ToString.
I would also like to be able to write
Dim s As String = 3.ToPercent
by supplying my own implementation of ToPercent. If I could do this, th... more >>
adding a menuitem array issue
Posted by Eric Sabine at 5/4/2004 11:53:34 AM
I've simplified the code to the following. I'm just overlooking something
very simple I'm sure.
Dim mic() As MenuItem
mic = New MenuItem(3) {}
mic(0) = New MenuItem("a")
mic(0).Index = 1
mic(1) = New MenuItem("b")
mic(1).Index = 2
mic(2) = New MenuItem("c")
mic(2).Index = 3
mic(1)... more >>
Default value in a column when using TableStyle in DataGrid?
Posted by Lars Netzel at 5/4/2004 11:38:06 AM
Is it possible to asign a default value to a cell in a DataGrid column when
using TableStyle as well?
I have an ID column with a width= 0 that has to have a default ID value when
the user adds rows in the datagrid.
/Lars
... more >>
Extract text from a Word doc
Posted by Barry at 5/4/2004 11:17:51 AM
How can I open a word doc and extract the text as text without any
formatting characters??
--
Barry Fitzgerald
... more >>
Who knows Infragistics?
Posted by Elton at 5/4/2004 11:11:03 AM
H
I saw the Infragistics Suite and I want to know if anyone would talk about it
Thanks a lo
Elton... more >>
Conditional setup question
Posted by John at 5/4/2004 11:04:19 AM
Hi
I have an app to deal with two companies A & B within a group of companies
depending on which database is selected. Is it possible for setup to ask the
user at install time which company they want to install the app for and then
pass the relevant database path as parameter in the desktop sh... more >>
Inheritance Error
Posted by Parveen at 5/4/2004 10:51:05 AM
I have two forms that are both derived from the same base class. When I try to
open these inherited forms in the windows form designer, I go back and forth
between the following two errors
1. Object reference not set to an instance of an object
2. The service System.Windows.Forms.Design.IEve... more >>
how to change the papersize
Posted by bafidi at 5/4/2004 10:41:03 AM
i want to write a code and make the papersize A
but this code is wrong what is the true on
PrintDocument1.DefaultPageSettings.papersize=A4... more >>
Passing parameters
Posted by John at 5/4/2004 10:22:08 AM
Hi
How can I process parameters passed to my vb.net? Also, is it possible to
use the desktop shortcut created by setup to pass parameters or do I need to
create my own desktop shortcut?
Thanks
Regards
... more >>
Determine Assembly's .NET Framework Version
Posted by Z D at 5/4/2004 10:10:04 AM
Hello,
If I have a .NET assembly, how do I determine what version of the .NET
framework it....
1) was compiled against
2) is supposed to use
3) is compatible with?
Is there a utility that will extract this info somehow?
thanks!
-ZD
... more >>
Navigating within a dataset
Posted by pmcguire at 5/4/2004 10:06:07 AM
I want to navigate to a specific record within a dataset.datatable. Some of my controls are bound to this datatable, and it would be nice to do something like
me.bindingcontext(MyDataset.MyDatatable).position=MyDataset.MyDatatable.FindByMyKeyFiel
But since the Position property is an integer, t... more >>
Notice about automation of Picture manager
Posted by Daniele at 5/4/2004 8:44:03 AM
Where can i find notice about automation of Picture
Manager?
Thank you... more >>
automation?
Posted by ongher at 5/4/2004 7:33:39 AM
Do yuo know somethigh about the automation of Picture
Manager?
Thank you... more >>
Passing a form object in a function
Posted by Sebastian Santacroce at 5/4/2004 7:18:10 AM
Hi,
If I want to pass a form (forms I have created) to a
function what would I set the declaration as
for example
Dim p as existingForm
OpenForm (p, existingForm)
Function (P as windows.forms.form, thisForm as *******)
p=NEW thisForm
.....
What do I put in *******?... more >>
Creating (Help) CHM file from Word document
Posted by Keith Butler at 5/4/2004 5:21:03 AM
H
Very new to CHM file. My question is can I create CHM file from a word document (or any other document)? Appreciate links to any good article on creation of CH
Thank
Keit
... more >>
Accesing the C drive remotely and executing an application
Posted by Eva at 5/4/2004 4:51:07 AM
Hi All
Is it possible to connect to a remote machine running a vb.net application, access the C drive on the remote machine and execute an exe from the server programatically
Eva
... more >>
Datagrid autosize
Posted by Silvia at 5/4/2004 4:26:06 AM
H
It is possible in a datagrid by code do the columns autosize?
Thanks... more >>
how to detect mouse presence ?
Posted by Perquiaga at 5/4/2004 3:53:16 AM
Hi to all
I have to detect the mouse presence and disconection if occurs to give
alerts. I'm using VB .NET, if somebody can help i'll apretiate it.
... more >>
|