all groups > vb.net > november 2003 > threads for wednesday november 5
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
Labelquestion and vbcrlf....
Posted by Drygast at 11/5/2003 11:36:08 PM
I have a label on my form where I some text. The width of the label is
limited, when I enter text longer than the width of the
label the text automatically continues on the next row. I need to alter this
behaviour so that the text doens't get a new
row (and the label should stay the same size). ... more >>
Showing gaphics
Posted by Andy Chan at 11/5/2003 11:22:50 PM
I'm trying to dynamically add a picturebox control to a form.
I'm following some coding I see in the form designer generated code:
....and so far....nothing. Any help is appreciated.
Dim myPicture As New PictureBox()
With myPicture
myPicture = New System.Windows.Forms.PictureBox()
..Vi... more >>
Form created or not?
Posted by John at 11/5/2003 9:00:53 PM
Hi
I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is
Nothing Then, but it does not work.
Thanks
Regards
... more >>
Printing a Form
Posted by Dino M. Buljubasic at 11/5/2003 9:00:42 PM
I'd like to Alt + PrintScr my form, paste it to a word document and send the
document to a printer programatically.
How can I do that?
Any help will be appreciated
Dino
--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download S... more >>
List box Set focus
Posted by Steve at 11/5/2003 8:55:32 PM
I want to add a number of items to a list box and then set
the focus on one of the items. I can do this using
ListIndex but it desnt work if the listbox is sorted. Is
there a way around this?
Thanks, Steve... more >>
How can I send ALT + A to a window?
Posted by Christian Blackburn at 11/5/2003 8:17:59 PM
Hi Gang,
I am trying to accomplish something that should be terribly simple. I just
want to send ALT+A to another window. What SendMessage Parameters should I
send?
Thanks,
Christian Blackburn
... more >>
Events and Tree like collections :: Would love to hear you opinion!
Posted by Sasha at 11/5/2003 5:47:42 PM
Hi everyone,
Here is my problem:
I have the following classes:
- DataNode - this class is designed to hold some data and will be contained
in a tree like data structure DataTree. When DataNode is changed, it raises
"Changed" event. The class has a reference to the DataNode it is being
cont... more >>
Setting account expires date in Active Directory
Posted by Stac at 11/5/2003 5:39:32 PM
I have a web service which provides updates / additions to
active directory. I can add accounts, change values etc,
for everything I need to except the accountexpires field. I
have been searching for this one for weeks.
I am using the DirectoryEntry & DirectorySearcher classes
as follows:
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
User interface for a Service
Posted by dan at 11/5/2003 5:31:34 PM
We have created a program P1 (VB.net) which must be permanently active in
order to perform some administrative tasks on the hard disk. It will be
installed as a service and thus has no user interface.
We want to create a program P2 to allow the Sever Administrator to monitor
the activity of ... more >>
Form within a form?
Posted by Jon at 11/5/2003 5:30:02 PM
I am having a brain drought here. I used to code in VB
until about 3 years ago. I guess it's not quite like a
bicycle because man i feel dumb :)
Here, quickly, is what i am trying to accomplish...
One way or another i need a form to appear inside another
form when clicking a command butt... more >>
close event
Posted by Daniel Sélen Secches at 11/5/2003 5:28:49 PM
How can i know if the close event was sent by user or by the windows?
Because a use on my appl. it
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = closeit
If not closeit Then
Me.Hide()
End If
... more >>
communication between two applications
Posted by Mat at 11/5/2003 5:15:00 PM
in my application1, i want to run application2.
application2 generate xmldocument which it should send to application1
How to do it?
... more >>
Quick question...
Posted by Rich Wallace at 11/5/2003 5:12:27 PM
Hi all,
In the days of VB6, I used to add a module to my project that did nothing
but declare all of the variables I was going to use throughout the entire
application, just to keep everything together and a bit cleaner.
Are modules in VB.NET still available to be used like this or am I only... more >>
searching algorithm
Posted by Bernie Yaeger at 11/5/2003 5:11:19 PM
I need a little help with an algorithm. Let's say I have an array with 15
items. I want to find "Fern" where there are "Able", "Me Also",
"Zimmerman", etc in no particular order. Forget about the fact that it's an
array - I know how to search an array. I just want an algorithm that will
do t... more >>
get list of assemblies: Help
Posted by Mat at 11/5/2003 5:09:37 PM
I would like to show in ABOUT BOX of my application list of assemblies( not
..NETframework assemblies,but companies assemblies) including version and
path of each of them which application is using...
i have no idea about how to get them dynamically
Thanks for HELP
... more >>
Browser Helper Object
Posted by Joe Johnston at 11/5/2003 5:05:15 PM
I need a Browser Helper object written in VB. Please
point me at a good example.
Joe
MCPx3
... more >>
Computer ID
Posted by TR123 at 11/5/2003 4:42:59 PM
I am using visual basic 5.0. I have tried for a
considerable length of time to get the unique computer Id
(or computer name, whatever it may be called) with no luck
at all. I am hoping that someone can provide assistance
in determining the unique Computer ID. ... more >>
Unable to find an entry point named in DLL
Posted by Prashant Bhuptani at 11/5/2003 4:37:41 PM
Hi Guys,
I am trying to use a C++ dll in VB.NET code.
I have imported the dll in the following manner:
<code>
Imports System.Runtime.InteropServices
Module modDllImport
<DllImport("hsec.dll")> _
Public Function sha1_hash(ByRef co As String, ByRef ci As String) As
Integer
End... more >>
Keypress sent to wrong window
Posted by Charles Law at 11/5/2003 4:35:55 PM
I have an MDI application which contains a menu, MDI child form and
properties window.
On my Edit menu I have Cut, Copy, Paste, and Delete. The shortcut key for
Delete is set to Del.
In the MDI child form I can select an object and its properties are
displayed in the properties window. All ... more >>
Loop though forms?
Posted by Stuart at 11/5/2003 4:31:06 PM
In VB6 I could cycle though loaded forms like this.
Dim MyForm as Form
For each MyForm in Forms
debug.print MyForm.Name
Next
How can I do it in VB.NET?
... more >>
its my app running??
Posted by Alex G. at 11/5/2003 4:17:17 PM
some one knows how to check if my app. (Example ap1.exe)
is running (because i don't want than it run twice at the
same time in the same machine)
somebody knows like verifying if my application at the
moment this executing itself, since I do not want that
the application runs twice in the... more >>
help file, opening & closing
Posted by ray well at 11/5/2003 4:13:44 PM
hi,
how can i open and close a help file thru code?
i tried
dim procHelp as System.Diagnostics.Process
procHelp = System.Diagnostics.Process.Start("help.hlp"), it did open
but i couldn't get it to close, when i issue procHelp.kill, it doesn't close
when i looked in the task manager... more >>
Help! Stuck in a datareader loop
Posted by Mike D at 11/5/2003 4:04:19 PM
Attached is my code. Which I know there is a better way of writing however
this is what I came up with and it works until the value is null or not = to
the <> value.
'Do While rdrSQL.Read()
'While rdrSQL.Read()
' Dim result As String
' result = Trim(rdrSQL.GetString(0))
' Do While res... more >>
Browser, Setting HTML code directly to
Posted by Tobe at 11/5/2003 3:41:41 PM
For one of our windows apps that has, on one of the
windows forms, an instance of a browser (IE), I was given
the task of creating a valid string of HTML and using it
directly in the browser, without writing it out to a file
and then reading it in again.
I have looked at the properties of... more >>
VBA.Net?
Posted by Ken Barz at 11/5/2003 3:18:12 PM
I was just asked if I could replicate a piece of
functionality (having a VB program send an email) using
the VBA in Access 2000. I figure there's probably a VBA
way to do it, but I was also wondering if VBA can access
the .NET framework?
... more >>
MDIList menu
Posted by Massimo Zaccarin at 11/5/2003 3:15:17 PM
Hello, how can I exclude an MDI child Form from the list shown by a MenuItem
with MDIList prop. set to True?
Is there a way to do it?
Thanks
... more >>
another 'bet practive' method ?
Posted by news.microsoft.com at 11/5/2003 2:57:52 PM
Hi, I have a heap of data that sits on my SQL server that I use in my vb.net
app for things such as drop down values and so on. they really do not change
very often.
My inital design was to select all this data into a sqldataadapter/dataset
when my app started. But that seems to be having a ne... more >>
Tab control
Posted by Tonya at 11/5/2003 2:51:03 PM
Hi,
I wanted to know if it is possible to use the onclick
event for a Tab control. I wanted the data that is pulled
from my database and displayed in my datagrid to be
refreshed everytime the user presses the tab.
Is this possible?
thx... more >>
Drag and Drop from TreeView Node to a TextBox
Posted by hayesk NO[at]SPAM breathemail.net at 11/5/2003 2:41:58 PM
Hi All,
Newish VB.NET programmer seeking help!
I have a TreeView with a node that I wish to drag and drop to a
Textbox.
In the Treeview_ItemDrag i have
DoDragDrop(e.item, DoDragDropEffects.ALL) - (I have tried copy aswell)
In the Textbox DragEnter I have
e.effect = DragDropEf... more >>
Need info on "Setup" projects.
Posted by Rvo at 11/5/2003 2:37:28 PM
Hi all,
I have about 10 books about VB.net, but no book explains anything about
setup projects. I need to do some things during setup which are not as
straight-forward as copying some files and adding some icons and some
documentation would come in very handy.
I need to let the user select ... more >>
application configuration file?
Posted by Mat at 11/5/2003 2:08:36 PM
i add values to this file but i don't know how to get them in application..
do i have explicitly to load and read the file using xml reader..or
whatever?
does any one have a sample?
... more >>
Converting physical folder path to UNC
Posted by Sidney Mark Croy at 11/5/2003 1:43:21 PM
Greetings
In VB 6.0 using WNetGetConnection Windows API you could convert a physical
drive designation to a UNC.
How do you convert a physical drive to a UNC within VB.NET?
Thank you
... more >>
Random Access Files
Posted by Steven Smith at 11/5/2003 1:29:30 PM
Hi guys
When working with random access files .NET creates, saves
to and loads from a default location (i.e. the solutions
bin directory) how can I specify at runtime where I want
these actions to take place, presumably I'll have to use
the common dialog controls for open and save but I've g... more >>
VB.NET multi threading
Posted by Danny at 11/5/2003 1:28:01 PM
what're some good websites with vb.net multithreading
code samples?
... more >>
Return values from OR'd multiple function calls
Posted by Tim Gallivan at 11/5/2003 1:27:27 PM
I have 2 functions, CheckThis and CheckThat. Each function can return some
of the error codes in the Enum below (CheckThis can return 0, 1, 2 or 3 and
CheckThat can return 0, 4, 5 or 6). I'm trying to evaluate the following:
if CheckThis OR CheckThat then
Select Case ErrCode ...
obvious... more >>
Array to ListBox
Posted by Bob at 11/5/2003 1:17:34 PM
In VBA, I could fill a listbox with data from an array
like so:
Dim ListArray(?, ?)
.... Fill ListArray ...
ListBox1.List = ListArray
How do I do this in VB .NET?... more >>
service won't install with installutil.exe
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/5/2003 1:09:23 PM
i run the following:
installutil "my service.exe"
and it goes through and tells me the install and commit
were successful. i go to the services list and it isn't
shown.
i've done this multiple times before with other projects
and it won't work. if i try to do net start "my
service... more >>
where is the api viewer
Posted by Cal at 11/5/2003 1:01:35 PM
I posted this in vb.controls but it now occurrs to me that it should have
gone here.
When I click on the Add In Manager the resulting list is empty.
What I need is the API Viewer that VB6 had.
Thanks in advance for any help!
... more >>
Financial/YIELD Calculations
Posted by IntraRELY at 11/5/2003 12:36:33 PM
I know this isnt really a VB question per say, but is what I am developing
in VB.NET and Excel is the only place that has provided direction. I wanted
to ask the public if perhaps you could lend me a hand a point me into the
right direction if there is someone who has had experiance with this. By... more >>
create and execute bat file in vb.net
Posted by eric.wood NO[at]SPAM us.icap.com at 11/5/2003 12:35:20 PM
We have an application that is accessed using shared drives, client
executes program from server. We have already coded the program to
create and save the a bat file either locally on the users machine or
on the
server. Our problem is that when we execute the bat file from the
vb code it does n... more >>
Problem with logging program.
Posted by Jeff at 11/5/2003 12:32:08 PM
Ok. I have traced the problem with multiple logs and
emails to this section of the code and can't figure out
why it repeats itself. Any help would be appreciated.
---- Begin Code ----
Public Sub LognEmail(ByVal strMessage As String)
Dim sSource As String
Dim sLog As St... more >>
Program will not run
Posted by Clifford Easden at 11/5/2003 12:31:18 PM
I wrote a program in VB6 for the local library, which
catalogs all pertinent information on videos inventory, on
hand, checked out etc. The program has works flawlessly on
the six computers used there. All computers use the
Windows 98 OS.
I need to make some changes to the program. I recen... more >>
Datagrid values - How do you pull them out?
Posted by sholder NO[at]SPAM ensafe.com at 11/5/2003 11:55:43 AM
I have a question. I have some data that I am pulling into a dataset
that needs to have each row of data emailed out. I got the email
funciton working great but its extracting that data that is becoming
the problem. I assume it would be in a loop, and to do that I am
guessing something like this... more >>
CreateDektop
Posted by Paul at 11/5/2003 11:47:32 AM
Does anyone have any good vb examples of creating a new deskop and then
using the SetThreadDesktop facility to talk to applications on the new
desktop ?
Thanks
... more >>
Get.Type returns nothing ???
Posted by sstorhaug NO[at]SPAM innovativemerchant.com at 11/5/2003 11:41:19 AM
Hello,
I am trying to store an object and its type in a database table as
text and then restore the object to its original form. I have created
a couple of functions to help me with this:
'Takes an object as a parameter.
'Returns the XML representation of the object.
Public Shared Fun... more >>
VB -> C# code
Posted by Chris Becker at 11/5/2003 10:51:07 AM
Could someone please tell me what the C# equivalent of this VB.NET code is:
Dim aPropInfo() As System.Reflection.PropertyInfo
aPropInfo = GetType(System.Drawing.Color).GetProperties
This is what I came up with:
Color dummy = new Color();
System.Reflection.PropertyInfo[] aPropInfo ... more >>
Invalid procedure call or argument
Posted by Terry at 11/5/2003 10:16:15 AM
Hi. We had a in-house program that use a PRINTLBL.EXE to print label in DOS mode. after the label was printed, Window XP will issue the error message ( Invalid procedure call or arguments ). But if use under Window 95 or Window 98 it will work fine with no error.
the code we use is as follow
L... more >>
No Touch Deployment and passing parameters
Posted by Jim Phelan at 11/5/2003 10:06:23 AM
I need to write a program, exe, that's called from a third party
application. This third party application allows me to configure the name
of the application to be called. When it executes it calls my program
passing it two parameters, absolute file names that contain data I'm to
process.
... more >>
Overwrite current exe?
Posted by MattG at 11/5/2003 10:03:33 AM
Can someone point me towards something explaining how to overwrite an exe
that is currently being executed, if even possible?
I'm trying to build in an update routine to ahve it look for a newer version
of itself on the network and then copying that new version on itself... of
course I keep ge... more >>
ComboBoxes and ListBoxes
Posted by dom at 11/5/2003 9:34:55 AM
Hello All,
The combo/list boxes in MS Access has the ability to show
multiple fields in separate columns.
I have found that in VB/VB.NET that combo/list boxes can
only show one field in one column.
What do I need to do to achieve combo/list boxes similar
to MS Access in VB or VB.NET?
... more >>
data grid with stored procedure as a data source
Posted by larry mckay at 11/5/2003 9:32:51 AM
Hi,
I'd like to use a datagrid with a
1. most grid's use SQL data adapters as a datasource. I'd like to use
a parametrized query into a stored procedure (specifically a
sqldatareader) instead of using the data adapter.
does anyone have any code samples that will do this?
I'm looking f... more >>
If Not [objectName] is nothing then [objectName].Dispose() IS NOT EVALUATED CORRECTLY
Posted by Eric Newton at 11/5/2003 9:15:33 AM
Ok, heres the scenario, this is code that you'll see peppered in most of my
classes that utilize any kind of object that has a Dispose method
Dim conn as SqlConnection = MakeSqlConnection()
Try
' do some DB work
conn.Close()
Finally
' following line FAILS if conn is actually nothin... more >>
Windows service with Timer - should it work for weeks on end?
Posted by vbnetcoder2003 NO[at]SPAM yahoo.com at 11/5/2003 9:08:17 AM
Hi,
Have written a service for a win 2000 server using vs.net 2002,
framework 1.0 that checks a sql server database every 10 minutes
(interval of 600000 in timer) and sends email using System.Web.Mail if
record(s) found. Supposed to catch errors and write to Event Log if
any occur. This pro... more >>
Winsock replacement on VB .NET
Posted by Gita George at 11/5/2003 9:04:54 AM
Is there any Winsock control replacement in VB .NET, including support
for events like DataArrival?
I have tried the Sockets class, but has NO events ...
How can I know when I receive data?
Using a loop to check for DataAvailable just eats up the processor. And you
just don't know when to c... more >>
Serialisation
Posted by Crirus at 11/5/2003 8:29:37 AM
I need to save a quite big structure of classes... but only some members
that I need to recondtruct the whole ierarchy.
I want to ask how serialisation work... is a efficient way? Or should I deal
myself with persistent members in my format?
Thanks,
Crirus
--
--------------------------... more >>
Class III
Posted by André Almeida Maldonado at 11/5/2003 8:23:35 AM
Alright... I created my class, but I discovered that it is no more useful to
me and I want to delete it.. How can I do it???
Thank's
... more >>
ActiveX Control to VB.NET
Posted by Simon Morris at 11/5/2003 8:10:04 AM
I read that you could add a old Activex Control to VB.NET. I try
to add 'Microsoft ADO Data Control 6.0 (SP4) (OLEDB)' and
'Microsoft Hierarchical FlexGrid Control 6.0 (SP4) (OLEDB)' to
a form but I get
"You do not have a license to use this ActiveX Control"
Any help? Thanks.
... more >>
Evaluating Expressions in Strings
Posted by Mike Yocum at 11/5/2003 7:17:49 AM
Using MSSCRIPT.OCX in VB6, it was easy to evaluate code
that was in a string, for example "10 * 3 + 1" using the
Eval method of the script control. Is such a feature
available in VB .NET?
Thanks,
Mike... more >>
Drawing on a .Net device context from a vb6 dll
Posted by Metallicraft at 11/5/2003 5:54:35 AM
I have a vb6 application. On the main form is a picture
box with one or two images and several pieces of text
displayed in it. These are created on the fly using gdi32
routines that are all in a referenced, custom dll. I call
a PrintImage routine in the dll and pass it only the the
Picture... more >>
Security
Posted by Secure at 11/5/2003 5:13:47 AM
How can you set security on the program code so that no
one can access it except if you know a password?... more >>
How can I return the handle of my application when it's a module?
Posted by Christian Blackburn at 11/5/2003 5:10:01 AM
Hi Gang,
Is there a way to return the handle of one's application when it's a
sub_main module? Does it even have an associated handle? or just a
processid? Also how can I get the handle of a string - variable?
Thanks,
Christian Blackburn
... more >>
Space delimiter
Posted by simonc at 11/5/2003 4:27:09 AM
One of the things that drives me mad about vb.net is
spending time trying to make a program do something then
finding that there's already an inbuild procedure that
does exactly the same thing.
So before I begin on this can anyone tell me if there is
already a routine to do this:
I am ... more >>
I'm having problems copying persistent information to the clipboard
Posted by Christian Blackburn at 11/5/2003 3:41:01 AM
Hi Gang,
I don't know what to make of all of this, but I'm having nothing, but
trouble copying data to the clipboard which should be the easiest thing in
the world. The only systems I can get this to not crash on is my
development system w/ VB 2003 installed and Windows NT 4. My development
s... more >>
get Application.mainForm
Posted by Atara at 11/5/2003 2:57:11 AM
Is there a way to get the Application.mainForm from any place in the
code, e.g from a shared property of any class ?
Thanks
Atara
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
TCPclient and IP adress
Posted by Sebho at 11/5/2003 2:08:44 AM
Hello,
i made an app that use sockets, based on this sample :
http://www.microsoft.com/downloads/details.aspx?FamilyId=4B3215C0-62E7-4B84-9944-7582B8CD0125&displaylang=en
i'have a problem, i can't obtain the client IP adress on the server side (i
have a pointer to a TCPclient object)
Is... more >>
Progress bar problem
Posted by MrKrich at 11/5/2003 1:02:59 AM
I use ProgressBar control and one Label to display the
status of the process. Both of them are placed in panel
object.
When the process finish doing one task and before start
the other task, it will update value in ProgressBar and
text in label.
The problem is ProgressBar is update and cor... more >>
What's the MappingName for a Collection?
Posted by trebor NO[at]SPAM sirius.com.no.more at 11/5/2003 12:11:41 AM
I bind a collection to a data grid, and it works okay, but when I try to
create customized columns, it just doesn't work. Here is the code. Note
that if I uncomment that section below, and use "DT" as the mapping
name, it works fine. But I don't want to have to copy the collection to
the data ta... more >>
|