all groups > vb.net > april 2005 > threads for wednesday april 6
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
Difference between Trim function and Trim member
Posted by herpers NO[at]SPAM wiso.uni-koeln.de at 4/6/2005 11:51:06 PM
Hi,
what is the difference between the trim function and the trim
String-member?
As far as I see it, both return the trimmed string and leave the
original string unaltered.
Is any of the two faster? Is there a general rule/opinion to prefere
members over functions?
Thanks for any hint.
... more >>
New To Imaging
Posted by David Pendrey at 4/6/2005 10:56:54 PM
Greetings,
I am new to imaging in applications and wish to create an application
which will draw some images in a Picture Box or similar in Visual Basic in
Visual Studio DOT NET. I have a collection of 8 or so images which will be
drawn in multiple locations kind of like a pac man game. ... more >>
SharpZipLib & Blocked File
Posted by Chris at 4/6/2005 10:34:20 PM
I posted a question earlier about zip file not being able to be opened in
Windows Explorer when the zip file was created with SharpZipLib. It turns
out I can't unzip or open the file because it is blocked. I get a Windows
Security Warning: Windows has blocked access to these files to help pr... more >>
How to get form design view back?
Posted by Brett at 4/6/2005 10:03:38 PM
For some reason, one of my forms has lost its design view. All the code is
still there. How can I get the design view back?
Thanks,
Brett
... more >>
Is there a class library for serial communication, like MSComm in
Posted by hamil at 4/6/2005 9:29:02 PM
Is there a class library for serial communication. I suppose I could use the
VB6 OCX MSComm32.ocx but this would not make a "pure" vb.net program. I have
looked but failed to find anything.... more >>
sending string thru TCP/IP
Posted by notregister at 4/6/2005 7:43:04 PM
Hi would i like to send string of PCL codes to a Printer which i have the IP
address, how do i send it?
i'm currently using TCPclient class, but it could not work, as the printer
would just hang...
pls help me...... more >>
Embedding Icons
Posted by Dennis at 4/6/2005 5:55:02 PM
I have a project, say Project A. I then start a new project, say Project B.
I then add Project A to Project B. Then I add Icons to Project A and set the
build property to "Embedded". I can't access them.
However, If I close Project B and start just Project A and add the icons and
build ... more >>
Capture Keystokes from DataGrid within WebForms
Posted by IST at 4/6/2005 5:49:01 PM
Hello,
We have a datagrid in a webform that has item id, template colum with
textbox for quanity and template column with link button to check stock. We
need to capture the enter key when webusers type a quanity in one of the
datagrid textboxes to fire the corresponding "check stock" linkb... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
VBN2002 - Programmatically creating a form using a string value as name
Posted by Michael Creager at 4/6/2005 3:44:40 PM
I am using VB NET 2002. How can I programmatically create a new windows
form using the value of a string variable as the name of the new form?
Public FrmName As String = "MDIChildFrm1"
Public %FrmName% as new Form
Does not work.
I cannot find any information on this anywhere. Please help!... more >>
In-place Updating in Datagrid not working
Posted by A P at 4/6/2005 3:23:00 PM
Hi!
I have created a sample datagrid that can update data on a database. Please
help me solve the problem, I have attached both aspx and code behind
(aspx.vb):
______________________
datagrid.aspx
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="DataGrid.aspx.vb"
Inherits="v... more >>
Create UserControl ??
Posted by Fia at 4/6/2005 3:21:03 PM
Hi
I have tried to create my own combobox, with properties and methods. But
when I use it in a Form and try to use the KeyPress Event for the control in
the Form, nothing happens. Do I have to do anything to make the KeyPress
Event work for the control, I thought it inherited the event.
Fia
... more >>
SharpZipLib
Posted by Chris at 4/6/2005 3:02:03 PM
Does anyone know how to make a zip file using SharpZipLib that can be opened
by Windows Explorer? I get an empty file when I try to open it with
explorer using their example.
Chris
... more >>
DateTimePicker Bug?
Posted by Chris Fairman at 4/6/2005 2:49:07 PM
NG,
Maybe I'm missing a key step, but it seems when typing dates into a
DateTimePicker control (format = 'Short'), the controls' .text property is
not updated until the control losses focus.
I'm handling an <enter> key event on a DateTimePicker control.
Essentially I want to give a user the... more >>
Using MSCOMM32.ocx with VB.net
Posted by Kevin at 4/6/2005 2:15:29 PM
I have a class with a refence to MSCOMMLib in it so I can use
MSCOMM32.ocx. It works fine on the developement machine where I have
VB6 also installed. When I try to run the app on a machine without VB6
though, I get a licensing error issue. So I read about License Compiler
in the MSDN.net... more >>
Auto clean up code removed from event?
Posted by Brett at 4/6/2005 2:00:50 PM
Is there a way to have VS.NET 2003 clean up unused events? For example,
Delphi has a nice feature in that it will remove unused event code if you
take your own code out of that event. Is there something like this for
VS.NET?
Thanks,
Brett
... more >>
Please do NOT sign the VB.COM petition
Posted by Mitchell S. Honnert at 4/6/2005 1:37:59 PM
[I apologize for the length of this post. It started out as being a summary
of some of my other posts about the petition, but grew into something
larger. Also, this post is not meant to be flamebait. I have an honest
disagreement of opinion in regards to the petition and I felt this was an
... more >>
'' Could not be set on property 'Items' - Error
Posted by Murray at 4/6/2005 1:37:19 PM
Sorry if this is not the correct group i could not see one for web controls
Hello
I am trying to write a cutom web control, The control contains a customer
collection that i want to use the Collection Editor in properties to add
members to this collection.
In design mode the control works... more >>
How to create a Serialnumber for App programmatically?
Posted by Yavuz Bogazci at 4/6/2005 1:37:01 PM
Hi, we are developing an winforms application for task management. We want
generate a serial number wich includes Username, Company Name and another
Information as String. How can i create from these values a serial number?
thanks
yavuz... more >>
How to get current free physical memory ?
Posted by Peter Stojkovic at 4/6/2005 1:11:39 PM
Using VS 2003 and Windows XP
How can I get free physical memory ??
Where is a full documentation for WMI and so an managementobjects ?
Peter
... more >>
Invert an Arraylist.Sort()
Posted by Derek Martin at 4/6/2005 1:11:18 PM
Hi List, I have an arraylist of objects. I have created my own IComparable
in the object to return the sort on datetime. This works great! Now, I'd
like to invert the sort. Currently, it gives me 4/1/05 before 4/5/05
(good), but I'd like to have 4/5/05 before 4/1/05 (better!) for my
appl... more >>
Parsing a fixed length record into fields
Posted by John B at 4/6/2005 12:39:05 PM
I'm receiving a fixed length string with fixed length fields that I need to
break apart. Ideally I'd like to take the string and put it into a Structure
and then access the individual fields from there.
I tried converting the string to a byte array and then used a
Marshal.PtrToStructure ... more >>
Visual Basic App Memory Issue
Posted by bamapookie NO[at]SPAM gmail.com at 4/6/2005 12:30:21 PM
I am new to VB, but not new to programming. I am using VB.Net 2003 and
I have written a small app to monitor several running processes and
everything is fine except the memory usage. When the app starts up,
even though there is very little on the form, the memory usage
displayed in task manage... more >>
modify HTML in code behind
Posted by philippe merrien at 4/6/2005 12:26:44 PM
hello,
I would like to modify the content of my html page from the code behind.
But i've got a problem...I know how to get the html from a spécific control
(thanks to FindControl) but what can i do to get all the all HTML page
code?
thanks
... more >>
Excel In VB.net
Posted by Atley at 4/6/2005 12:07:38 PM
I am trying to create a new spreadsheet in Excel using VB.net 2003.
This application has to be useable by a range of users running anywhere from
Excel 2000 to Excel XP to Excel 2003.
My dev machine has Excel 2003.
How do I get the libraries for the earlier version of Excel? VB.net 2003
h... more >>
Datagrid problem
Posted by Nikolay Petrov at 4/6/2005 11:49:06 AM
I have a DataSet with one DataTable in it.
When binded to a DataGrid, a get the column names in DataTable as headers
for the columns in the DataGrid.
When I created the DataColumns I set their Caption property, but it doesn't
want to show as Column header in the DataGrid. What I do wrong?
C... more >>
Passing objects ByVal vs ByRef
Posted by Witold Iwaniec via .NET 247 at 4/6/2005 11:38:14 AM
It seems that when you pass an object to a function it is always passed by reference even if it is explicitly declared ByVal. Is it the behavior of VB.Net?
Here is sample code from sample Asp.Net application. The sub loadValueByVal takes the argument by value so after returning to calling method... more >>
How to expose a structure to VB6 from VB.NET?
Posted by Peter van der Veen at 4/6/2005 11:23:16 AM
Hi
I have a VB.net apllication (DLL) with a structure and a property get.
public structure tMyCode
dim iCode as integer
dim sText as string
end structure
writeonly property GetCodes as tMycode
get
dim a(0) as tMycode
a(0).icode=10
a(0).sText = "text"
return a
end get
e... more >>
Making my own DLL
Posted by Leszek at 4/6/2005 10:54:25 AM
Hello!
I'm looking for a good tutorial of making my own dll. Can someone help me?
... more >>
Catching exceptions during DirectoryInfo.GetFiles?
Posted by Olaf Rabbachin at 4/6/2005 10:40:09 AM
Hi folks,
I'm copying files from i.e. a memory-card to the hard-drive.
The code roughly looks like this abstract:
Dim di As New DirectoryInfo("E:\")
Dim fi As FileInfo
Try
For Each fi In di.GetFiles
'...
Next
Catch ...
End Try
I would've expected that the above code ... more >>
Option Strict disallows late binding, need to update code
Posted by CodeMonkey at 4/6/2005 10:31:07 AM
Hi All
the following code generates an error with option strict on - Option
strict disallows late binding. Can someone please help with what needs
to be changed:
Dim sweep, totalsweep As Integer
Dim slices As Array = Split("26, 40, 34",",")
Dim colors() As Color = { _
Color.Blue, Color.Lime... more >>
Unable to set tool tip
Posted by Chris at 4/6/2005 9:52:30 AM
I am using windows controls to create an activex control.
I need to put tool tips in them
In a windows form you go
Me.tooltip.SetToolTip(btn, "Tool Tip Text")
How would i do this in a windows control?
Thanks
Chris
... more >>
use a hyperlink to open a tab page
Posted by lukegregory at 4/6/2005 9:25:02 AM
I have a hyperlink menu on my main form. And would like some of the links to
open another form and bring a tabpage into focus. Does anyone know what the
command is to bring a tabpage to focus? (I have tried TabPage.Focus() )... more >>
Setup project registery values with app install folder in them
Posted by Brian Henry at 4/6/2005 8:35:52 AM
I am trying to deploy my VB.NET project with a setup project, and I need to
make a reg key entry.. but it also needs to have the path to where the
program was installed in they string i placed in the key. How do I go about
insertint the installation path (folder only) to the file into the regi... more >>
Max Size for DataTable
Posted by Bruce D at 4/6/2005 8:29:15 AM
Don't ask why...
But I want to loop through all my records in the MySQL table (5 million
records) and do a data integrity check (along with some other update
functions). I'm wondering if there is a max size for the datatable. Or if
there is a better way. It seems I loose my connection if I tr... more >>
What am I doing wrong - Trying to update
Posted by Gary Paris at 4/6/2005 8:19:58 AM
I have enclosed the sample code that I created. I want to read in employee
data, and modify a few fields. I have tried to globally declare the objects
that I need but I still am having problems. I want to update in a seperate
subroutine and seem to have problems. HELP please.
----------... more >>
Adding large chunks of data
Posted by brix_zx2 at 4/6/2005 8:01:01 AM
I'm writing a database program in VB .NET 2k3:
My users are able to access a large database to view single records at a
time. I need a way for someone to be able to import/paste (or whatever) a
large amount of records in a single instance does anyone know a good way to
go about this? The ... more >>
Event for PgUp and PgDn on Form
Posted by Ed Bitzer at 4/6/2005 7:47:00 AM
Would like to use PgUp and PgDn from a Form event. Have successfully been
able to use the Enter key as an event unique event from a textbox using the
boxes KeyChar event and e.KeyChar = Microsoft.VisualBasic.ChrW(13) but
search as I may through Help I have not been able to find the keycodes f... more >>
lostfocus
Posted by Sam at 4/6/2005 7:36:20 AM
Hi,
I've got a datagrid and a treeview. When the user gives the focus to
the treeview I'd like to display a messagebox only if the datagrid had
the focus previously.
How can I do that ?
thx
... more >>
How to create a zoom feature in Vb.Net
Posted by Mo Ade via .NET 247 at 4/6/2005 7:24:28 AM
How do I write code to include a zoom feature in my project so that when my Vb Form loads an image I can click in my main menu zoom in or zoom out?
--------------------------------
From: Mo Ade
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>6aW7IUJA... more >>
Icons in a class library
Posted by Pippo at 4/6/2005 6:45:07 AM
I've created a class library and i'have also included some icon files like
'Embedded resource"
In my class library i've only 3 public class
Why, after compling, i don't see nothing icons in my dll?... more >>
Microsoft not content with "dissing" just the Classic VB Developer Army....
Posted by Jim Hubbard at 4/6/2005 6:42:49 AM
It seems that Microsoft not only does not need the classic Visual Basic
developer army (the largest army of developers the world has ever seen), but
now they don't need ANY Windows developer at a small or mid-sized business.
http://groups-beta.google.com/group/microsoft.public.msdn.general/br... more >>
Where to find good icons?
Posted by Brett at 4/6/2005 6:33:37 AM
I'd like references on where to find some good (quality) icons to use for
form and application icons (for the EXE). Most of the free stuff isn't that
great looking and there isn't a good selection. A site offering previews of
icons or purchase of a single icon would be nice.
Thanks,
Bret... more >>
Set textbox1.enabled = false inside a module?
Posted by hack123 NO[at]SPAM hotmail.com at 4/6/2005 6:29:57 AM
G'Day all,
Ok I have form1 and lets say it has a textbox on it called
textbox1.text.
Now in that form1_load sub I have a command that says:
my_custom_set_txt_box_properties.disabletextbox.
Now I have a module called my_custom_set_txt_box_properties and in
that module I have a sub t... more >>
How to convert a Byte array to a String
Posted by Jaime Stuardo at 4/6/2005 1:29:12 AM
Hi all...
I'm trying to retrieve a SQLXML query using VB.NET. When I programmed in VB
6.0, I used Stream object to accomplish this which was trivial.
I cannot do the same thing in VB.NET. Here the most similar object is the
OleDbDataReader. I have the following method, ¿is it correct what ... more >>
Multiselect List Box
Posted by steph_mw NO[at]SPAM hotmail.com at 4/6/2005 12:42:53 AM
I have created a multiselect list box control (lbx_comorb) that is
populated from a datatable (dt_ptAdmission). The list box populates
now problem at all.
However the issue is when I load the webform, when there is already
admission data. I need the populated list box (lbx_comorb) to show the
... more >>
Bluetooth
Posted by David A. Osborn at 4/6/2005 12:39:24 AM
Can anyone point me to a website for using VB.net and Bluetooth together?
... more >>
|