all groups > vb.net > february 2004 > threads for thursday february 12
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
showing changed lines in vs .net
Posted by Bernie Yaeger at 2/12/2004 11:49:11 PM
Is there any way to show - until I save - the changed lines in vs .net 2003?
Would be helpful to review changes while I'm making them.
Thanks for any help.
Bernie Yaeger
... more >>
Registry Auditing
Posted by Ed Rauscher at 2/12/2004 11:28:31 PM
Does ayone know what Class is used to enable Registry Auditing? Any help
would be great.
... more >>
Can a datagrid have thumbnails and hyperlinks?
Posted by Trint Smith at 2/12/2004 10:31:46 PM
Can a datagrid have thumbnails and hyperlinks?
Does anyone have a good sample of that?
And is a datagrid better than results pages on searches of a sql server
database?
Thanks,
Trint
.Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't... more >>
How to make a transparent ComboBox?
Posted by viktop at 2/12/2004 10:09:23 PM
Hi!
How to make a transparent ComboBox?=20
Thank
Victor... more >>
I need to create a results page...how can I?
Posted by Trint Smith at 2/12/2004 8:36:53 PM
I don't want to have to do it outside of the vs.net environment...would
like to know how to do it with webform and vb.net...the pages need to
look a lot like search results on this site except with a thumbnail
picture beside the description of an item...how can I do this?
Thanks,
Trint
.Net ... more >>
What type of object is it?
Posted by Michael Murschell at 2/12/2004 8:31:06 PM
In vb, how do I find out what type of control an object is? In other words,
I want to find out if the Object LastName is a textbox or an image object.
... more >>
HOWTO: Iterate thru dataset rows changing field values
Posted by Dan Sikorsky at 2/12/2004 8:06:20 PM
How do you iterate thru a dataset to change money fields to a different
value?
Here's what I have. My dataset is filled directly from a stored procedure.
' Create Instance of Connection and Command Object
Dim myConnection As SqlConnection = New
SqlConnection(ConfigurationSettings.AppSetting... more >>
Why can't I find my add-in?
Posted by Rob Richardson at 2/12/2004 6:53:31 PM
Greetings!
I am trying to build the add-in I threatened to in my last post. I started
by invoking the Add-In Wizard. I then built the resulting project without
doing anything else to it. I didn't find anything to invoke the add-in
with. Nothing new appeared in the Tools menu, and no new bu... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using DataTable.Select in ComboBox
Posted by gwhubert NO[at]SPAM hotmail.com at 2/12/2004 6:46:14 PM
I'm looking at using the result of DataTable.Select as the DataSource
for a ComboBox. Is there an easy way to do this with a minimum of
code. I tried to bludgeon it into submission by writing:
myComboBox.DataSource = myDataTable.Select
and got appropriately vulgar results.
I know I could... more >>
Control inheritance spoiled by Form designer.
Posted by PAul Maskens at 2/12/2004 6:26:58 PM
The form designer adds unnecessary code to the section when using a
subclassed control.
I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty
fundamental.
Outline steps:
Create a VB project.
Create a subclass of a UI control, I used TextBox.
Add no code to the subclass.
Public... more >>
selection from db and insertion into a form.
Posted by jimron_wrm NO[at]SPAM hotmail.com at 2/12/2004 4:36:44 PM
Is there any way i can select a number of records from a database and
display then. Then give the user the ability to double click on any
record to add the contents to a text box. (i will format the contents
as xml)
Is there anyway of interfacing with a datagrid other than using the
Grid.Item(... more >>
app.config
Posted by Brandon Olson at 2/12/2004 4:10:46 PM
Hello,
I am trying to have my distributed client machies share a configuration file
located on a file share. I would like to use the
ConfigurationSettings.AppSettings wrapper for accessing the key-value pairs
that I would use. Is it possible to do this? All of the documentation
shows using... more >>
Need to find Icon for MyComputer
Posted by SamSpade at 2/12/2004 3:58:49 PM
I found the icons for files and folders using
Call SHGetFileInfo(subDir, 0, mSHI, mSHISize, Win32.Shell.SHGFI_ICON)
but can't find the system icon for MyComputer.
Later I'd like to also find a way of tapping into the icons used by the
system for MyNetworkPlaces, Desktop ...
Any sugges... more >>
CSV Confusion...
Posted by Juan at 2/12/2004 3:40:26 PM
Hi All...
I'm having a bit of difficulty displaying results into a datagrid. My search
queries a .CVS file.
The Code is as follows:
Dim DS As System.Data.DataSet
Dim MyCommand As System.Data.OleDb.OleDbDataAdapter
Dim MyConnection As System.Data.OleDb.OleDbConnection
MyConnection = ... more >>
How can I force the desktop to redraw?
Posted by Don at 2/12/2004 3:37:08 PM
Is there anyway to force an area of the desktop to redraw in VB.NET?
- Don
... more >>
Animated GIF in PictureBox Not Moving
Posted by Liz at 2/12/2004 3:25:11 PM
All:
Can anyone tell me why my animated GIF does not show up
as animated when put into a pictureBox??
Thanks.
Liz... more >>
Unique Name Generation
Posted by Jerry Camel at 2/12/2004 3:05:02 PM
I need to be able to generate unique names for files. I was considering
that hash alogorithms, but if I had two files with the same name, I'd get
the same hash. I am collecting and storing files and I want to store them
all in the same directory and I want the names to be cryptic and unique.
A... more >>
Date time incorrect
Posted by Bob Day at 2/12/2004 3:04:07 PM
Using VS 2003, VB.NET, MSDE...
This is incredible misleading that the following produces a results of
#2/13/04# if you hover your mouse over the Date_Time_Begin, although I do
think its value is #2/13/04 12:00:00AM#. This should be correct.
' convert into date.
Dim Date_Time_Begin As D... more >>
Combo Boxes
Posted by Reese at 2/12/2004 2:56:08 PM
I am trying to populate a combo box with information from a table in an Oracle Database. Here is the information I have:
OLEDBCONNECTION: OleDbConnection
OLEDBDATAADAPTER: daModel
Dataset: ds_Model
There are 2 columns in the table I am trying to query: Model_ID and Descriptio
The name of my ... more >>
what needed to run dotnet app on win2k computer?
Posted by Rich at 2/12/2004 2:43:25 PM
Hello,
I created a small dotnet exe on a workstation with
VS.Net. When I tried loading this app on another
workstation (win2k), an error message said I was missing
some dll. If I load the dotnet framework 1.1 would that
fix my problem? Do I need to load the CLR first on a
workstation... more >>
In Internet Explorer is their a way of determining if the sidebar is Active??
Posted by CES at 2/12/2004 2:41:11 PM
I'm looking for a JavaScript/.net replacement for Netscape's
window.outerWidth that will work in IE and was wondering is their a way of
determining if the search/history/favorites/etc. sidebar is open ???
Any other suggestion on how to find the total with of the IE window would be
appreciated... more >>
Object not getting set
Posted by Andrew Cooper at 2/12/2004 2:03:28 PM
Greetings,
I'm running into a problem where an Object is evaluating to Nothing, even
though I'm setting it to a specific Object. Here's my code:
<code>
Private Sub CmdInventory(ByVal Sender As Client, ByVal Arg As String)
'Shows the inventory of the indicated player. If the player is anyon... more >>
DLLImports
Posted by John Dann at 2/12/2004 1:53:13 PM
One detail about using DLLImports as part of the PInvoke process that
I don't understand:
I'm trying to access a function (eg MyFunction) in a 3rd party DLL so
I create a class:
Imports System.Runtime.InteropServices
Public Class Myclass
<DllImport("MyDLL")> _
Public Shared Funct... more >>
Verify windows account
Posted by Andrea Temporin at 2/12/2004 1:25:55 PM
I would like to grant access to my application with the same user of
Windows.
How can I verify user and password with those of the system?
Now we are using LogonUser API but it works only if the user is one of the
administrator group of the PC.
Thanks
Andrea
... more >>
Combobox bug
Posted by Kunkel at 2/12/2004 1:16:05 PM
Hi all,
i have found something odd...when a combobox is not selecting the first value (or ComboBox1.SelectedIndex > 0) and your code executes
ComboBox1.SelectedIndex = -1
it will select the first the value (.SelectedIndex=0) instead of deselecting all values. if you want to make the com... more >>
Global listview question
Posted by Derck at 2/12/2004 1:02:23 PM
SORRY, for the crosspost, but I think I posted it in the wrong group!
Hello all,
I have a question.. I am tying to make a global listview class where other
listviews in my application points to, so when I change something in that
listview all listviews who points to that listview must be upd... more >>
C# conversion to VB
Posted by IntraRELY at 2/12/2004 12:49:57 PM
I need to convert the following code. The online conversion tool could do it
w/o error. Any help appreciated.
static void Main(string[] args) {
args = WebCommandLineHelper.CommandLineArgs(args);
string argstring = "";
foreach( string arg in args ) argstring += ar... more >>
Strangeness with the running in the IDE
Posted by Andrew Cooper at 2/12/2004 12:39:12 PM
Greetings,
I'm working on a VB.NET application. Yesterday I was coding and testing it
out in the IDE just fine. Today, I coded a little bit more and tried to run
it in the IDE and the IDE locks completely up. This confused me a bit as
there are no loops that could go infinite on me and I got... more >>
Operator Overloading
Posted by Lee at 2/12/2004 12:33:50 PM
Does VB.NET support overloaded operators? For instance, if I create a
complex number class, Complex, can I do code like this?
Dim a As New Complex(1.2, 3.4)
Dim b As New Complex(5.6, 7.89)
b = b * 4
a = a + b
I'm not sure if Operator Overloading is an OOP (and thus maybe .NET)
feature, o... more >>
Formless Data Wizard?
Posted by Rob Richardson at 2/12/2004 12:26:56 PM
Greetings!
I want to automatically generate a typed dataset and its associated command
objects from an Access Database. I can use the Server Explorer and drag the
tables onto a form and use the Data Wizard from there.
My problem is that there is no reason for the form to know about the
dat... more >>
Expand treeview nodes
Posted by SamSpade at 2/12/2004 12:15:26 PM
I want to expand nodes on a treeview. What I have is an array (SubFolder) of
node.text not index.
What I'd like to do is the folowing:
lKey = tvFolders.Nodes(0) ) 'Not in SubFolder
For lLpCnt = 0 To UBound(lSubFolder) - 1
lKey.Expand() 'But do not expand the last node
lKey = lKey.... more >>
custom control with database backend problem
Posted by Brian Henry at 2/12/2004 12:10:45 PM
I am trying to make a custom user control that gets a list of users from our
database and populates the list, its an owner drawn control also, the
problem is, I placed the item onto a form and every time i make a change to
the control it reads the database and adds new items to the listing but
n... more >>
W32 Interop Advice Needed
Posted by John Slagle at 2/12/2004 12:07:32 PM
I have an old Win32 Dll that want to pass a string back to my app
via one of the parameters (not the return value).
I am seeing one way to do this is to dereference a StringBuilder
instance. Is this possible in VB.NET?
Another possible way might be
<MarshalAs (UnmanagedType.VBByRefStr)>
... more >>
Problem with regional date settings
Posted by Schfooge at 2/12/2004 11:53:07 AM
I am trying to do a homework assignment, but I am having
troubles due to regional date settings.
Part of the program requires a date to be read from
a sequential file, which gives the date in string format.
The program needs to convert the string to a date.
However, the text file supplied i... more >>
Wring a VB.NET object to count lines in a text file
Posted by peter NO[at]SPAM mclinn.com at 2/12/2004 11:51:11 AM
Team VB.net,
I have multiple programs that need a tool to count lines in a text
files. I have been solving this problem through writing proceedures
but I hate cutting and pasting code.
Is there an easy way of making a "module" or object that I would be
able to pass a string variable "c:\My... more >>
Went on a Job Interview today.
Posted by Terry Williams at 2/12/2004 11:46:32 AM
I went on a job interview today... Basically, you've got mainframers
trying to create reports modules in asp.net, and the they need a
programmer with vb.net/asp.net experience.
One of the questions was...
How do you pass data from one form to another, example, you fill out a
webform, then g... more >>
Structures and ArrayList
Posted by Sueffel at 2/12/2004 11:45:48 AM
I'm having problems with this one:
I have a tructure that is being added to an arraylist, so I may have 15 of
these structure objects in an arraylist. now, what I want to do is this:
dim TT as MyStruct = New MyStruct
TT = MyArraylist.Item(3)
I have even tried this:
TT = CType(MyArrayL... more >>
Nulls in String data type
Posted by Steve Holland at 2/12/2004 11:44:20 AM
Can a variable declared as string (Dim strMessage as
String) be set to a Null value??? If so, how??? I am
using SQL Server as a backend database and want to set
values not populated on a VB.Net form to Null in the
database. I am using an Insert statement along with the
SQLCommand object... more >>
listview does not display contents
Posted by rallard at 2/12/2004 11:36:08 AM
After the following subroutine executes, my listview shows a scroll bar on the right, but it is otherwise blank. I've checked for things like locked=false, visable=true, font color same as background, but I don't see anything that should be hiding the contents. I've inserted various msgbox lines t... more >>
modifiying Excel Cells from VB
Posted by Mike Fellows at 2/12/2004 11:15:53 AM
i have some code that pulls a large amount of data from a database
and puts it into an excel spreadsheet, some excel formulas are inserted
and the whole lot gets printed out (excel in invisble during all this), and
excel is closed
i currently setup my excel spreadsheet like this:
Dim ex... more >>
TcpListener only works first time
Posted by Greg at 2/12/2004 10:51:16 AM
I've implemented the code from MS at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemNetSocketsTcpListenerClassTopic.asp
and am able to send data but it only works once. Nothing happens the second
time, not even an error.
Here's what my client function ... more >>
ComboBox Issue
Posted by CJ Taylor at 2/12/2004 10:46:13 AM
I'm having this really strange error, and its only happening on one
combobox, I have all the databindings set correctly, I have my valuemember
and display member set fine. When the data is saved, it saves the correct
selected value, but when I bring up a record again in a form, it comes up
blan... more >>
Using Datagrids in vb.net
Posted by jimron_wrm NO[at]SPAM hotmail.com at 2/12/2004 10:44:25 AM
Hi,
I'm relativley new to vb.net, i have a datagrid with records from my
database on it. I am trying to construct something to select which
record i select and transfer some of the information to a richtextbox.
How do i do this?
Thanks
Ryan McConnell... more >>
Java class or jar usage in vb.net
Posted by Chris Smith at 2/12/2004 10:28:21 AM
Experienced members,
Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation
about the classes within it.
I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1)... more >>
Enumeration and Description
Posted by Joe Fallon at 2/12/2004 10:28:08 AM
If I have an Enumeration can I give a text description for each value?
e.g. something like
Public Enum Colors
Black "Really cool Black"
Blue "Ice Cold Labatts"
End Enum
If so, how do I get the text description for each value?
Code snippet would be great.
Thanks!
--
Jo... more >>
SHGetFileInfo question
Posted by SamSpade at 2/12/2004 9:35:44 AM
I can do this and set the folder icon toi a closed folder
SHGetFileInfo(subDir, 0, mSHI, mSHISize, Win32.Shell.SHGFI_ICON)
subNode.ImageIndex = mSHI.iIcon
subNode.SelectedImageIndex = ?????
Anyone know how to get an open folder index for SelectedImageIndex?
Thanks
... more >>
How to read a file in and email it
Posted by Robert at 2/12/2004 9:10:07 AM
How can I read a file in, make the contents of the file
the body of an email message and then email it?
I want to read an HTML file in and send an HTML formatted
email message.... more >>
What is the correct syntax for multiple row strings?
Posted by Trint Smith at 2/12/2004 9:01:01 AM
How can I get multiple rows in a string?
string1 = "row1 of file" &_
"row2 of file" &_
"row3 of file"
do something with the next string2, like get info from sql server 2k
and:
for i string2 next
string3 = "row20 of file" &_
"row21 of file" &_
"las... more >>
Printing a Graphics Object
Posted by google NO[at]SPAM gencode.com at 2/12/2004 8:29:58 AM
I have a Graphics object in a control that has an image I want to
print...I want to print my already made Graphics object that I use in
a control, I try this
Private Sub pd_PrintPage(sender As Object, e As PrintPageEventArgs)
e.Grahpics = MyControl.MyGraphics
End Sub
When I do the pr... more >>
StoredProcedures
Posted by dipper_ NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/12/2004 7:23:05 AM
Anyone have an example with stored procedure with Microsoft SQL
server? I need an example with argument and return value.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY *... more >>
Stopping form repainting
Posted by Alan Lambert at 2/12/2004 6:56:08 AM
Hi,
I'm making various changes to the controls on a form and the form flickers as images are loaded etc. Is there a way to stop the form showing the updates until they have been completed? e.g. Form.Painting = False
I'm sure this is very easy but I can't seem to find a way of doing it!
Many... more >>
Creating many class instances without doing class1, class2, class3, etc.
Posted by Adam at 2/12/2004 6:45:52 AM
Hi all,
I need to create a bunch of class instances as myapp runs, but I want to
avoid code like this:
Dim oUser1 as new User
Dim oUser2 as new User
Dim oUser3 as new User
Dim oUser4 as new User
Dim oUser5 as new User
etc. etc.
Is there a more intelligent way to do this?
Thanks in ad... more >>
mdi child form positions
Posted by Gerry at 2/12/2004 5:51:06 AM
Every time I close and re-open the same child form in my mdi app the form appears lower down each time (ie cascaded
How can I limit this so that after opening it up 5 or 6 times it re-appears back at the top say
Thank
Gerry... more >>
I need a number that can never be duplicated.
Posted by Trint Smith at 2/12/2004 4:32:25 AM
This will be a customer number that is automatically assigned. I want
it to be fast (so that it doesn't have to be checked for existance in
sql server) and impossible to ever reoccure. Could it be
date/hour/minute/second all as one integer?
Thanks,
Trint
.Net programmer
trintsmith@hotmail... more >>
How To Change System Keyboard langauge
Posted by ahmed ahmed at 2/12/2004 4:10:32 AM
VB.NET
hi
i'm asking about How To Change System Keyboard langauge from the VB.NET
or Keyboard langauge from langauge to another without the API function.
and thanks about helping me.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get re... more >>
Key Combination....Raise Event!!!
Posted by Nuno at 2/12/2004 3:56:06 AM
If i put this code :
If e.Control = True And e.Alt = True And e.KeyCode = 82 Then
MessageBox.Show("SUCCESS")
End If
in the event KeyDown of a textbox it works fine.... but i want my combination key to raise in the form how can i do it?
... more >>
Scoping problem it seems...
Posted by DC at 2/12/2004 2:26:05 AM
H
I have created an ASP web application in visual studio and am trying to do the following (apparently) simple thing, without success. Can anyone help
Firstly, within the class, but outwith any subs, I have declared the following array:
Dim max As Double() = New Double(179) {
I then populate... more >>
VB .net conversion of VB 6's "String * 32" ability
Posted by Ian Rutherford at 2/12/2004 1:40:15 AM
Heya guys,
It seems VB .net no longer supports the awesome ability of VB 6 to declare
something as a string and specify how long the string would be all in one
line:
Public myString as String * 32 'this would make it 32 characters long
Apparently the VB .net conversion is to do this:
P... more >>
|