all groups > vb.net > january 2005 > threads for wednesday january 26
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
Regular expressions
Posted by Dave at 1/26/2005 11:24:01 PM
I was wondering if someone could help me with a regular expression problem.
I have a string of characters and numbers that will contain some information
about chemical formulas. I need to parse out of the string what elements it
contains and which numbers are associated with those elements. Th... more >>
Data Access Problem in Vb.net
Posted by farhan at 1/26/2005 11:20:23 PM
iam using this code but the moment i click on submit it
says "Insert Error: Column name or number of supplied
values does not match table definition" although there is
nothing wrong in the table
If IsValid Then
Dim cn As OleDbConnection
Dim str As String
... more >>
capturing the screen
Posted by rs at 1/26/2005 10:54:17 PM
Hi guys,
How can I capture a window or the whole screen and save it as a picture?
Thanks
Ahmed
... more >>
System.Web.Mail Problem with Quoted Printable
Posted by Lucas Tam at 1/26/2005 10:48:21 PM
Is there a way to change System.Web.Mail's Content Transfer Encoding? It's
currently using Quoted Printable... However, a piece of software on the
receiving end does not support Quoted Printable.
Is there a way to switch the encoding type?
Thanks!
--
Lucas Tam (REMOVEnntp@rogers.com)
... more >>
printing without dialog
Posted by notregister at 1/26/2005 9:59:04 PM
Hi i have already create an interface which allow me to print a document. but
i would like to skip the print dialog, which mean that while i click on a
self implement button x, i am able to print that document out.
For ur info, i have already stored the document path and name under a
varia... more >>
Execute Query on a TOTALLY disconnected DataSet
Posted by rawCoder at 1/26/2005 9:17:19 PM
Hi All
Is there a way to Execute a query (possibly including two tables and joins)
on a totally disconnected dataset.
By 'Totally Disconnted' , I mean there is no DB and there is no DBConnection
/ DBCommand - all the data and structure is in memory.
The query is to be used to databind a grid,... more >>
Show the front and end of a string
Posted by yxq at 1/26/2005 7:07:20 PM
Hello,
When show a string in a fixed extent label control, if this string is too
long, then it can not be shown inextenso.
How to only show the front and the end of the string, the middle section
will be replaced with suspension points? like the windows progress dialog
box of copying or movi... more >>
Parent child close minimize maximize
Posted by Bill at 1/26/2005 6:23:03 PM
Hi
I have a parent child forms. I want the close, maximize, and minimize
buttons to be removed.
One the child form I have set the maximize and minimize buttons to false. I
have the child form mamiximze in the parent form. So then the maximized
button is still active. But I want the chil... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Print Using
Posted by Al Jones at 1/26/2005 5:58:43 PM
Okay, this is dumb....
In gwbasic I can print using "#####.####"; 12.987654 and that produces
,,,12.9876 (commas for spaces). I've looked at buildstring, and tostring
but nothing I've seen gives me the ability to format with a non-currency
number position to the right of the decimal ...... more >>
system.web.mail
Posted by Greg Chu at 1/26/2005 5:29:40 PM
Hi, I created a console applicaton and try to import system.web.mail. But I
do not see it. after system.web I can only see 3 choices for
AspNetHosting.....
But I downloaded a sample console app. from the web and I do not have any
problem.
Any idea what am I doing wrong?
Thanks!
Greg ... more >>
Component v.s. Class
Posted by Ellis Yu at 1/26/2005 4:47:41 PM
Hi All,
I'm not so clear between component and class. After reading from
help, component can also be said a class but implement icomponent interface.
But what's scenario I should use component and what's scenario I should use
class. I'm so confused on it. Anyone could help? Thanks
B... more >>
Date and Time
Posted by Michael Turner at 1/26/2005 4:34:14 PM
Hi Guys
I have two DateTime pickers one shows the Date and the other the time, this
is a requirement of the solution. The problem I have is that when the time
is saved to the sql database into a datetime field it uses the default date
which is a problem when I try to sort, what I wanted to ... more >>
Need Feedback on using many user controls
Posted by Gary Kahrau at 1/26/2005 4:32:53 PM
I am planning a very large project in vb.net and I want to make it modular.
If the project needs 200-300 forms what do you think about creating a user
control for each of these forms? The main program would dynamically load,
place and dispose each one as required.
Is this a good idea from applic... more >>
Set focus to main form from user component control
Posted by Tom at 1/26/2005 4:13:19 PM
I am developing a VB.NET user control that is composed of a component
control (along with some classes, etc). This is probably a stupid question,
and should be easy, but I must be having a brain fart. In the control
itself, how do I set focus BACK to the form that the control is on? This
control... more >>
Installing application made in VB.NET
Posted by Arsalan at 1/26/2005 2:58:24 PM
How do I install the application made in VB.NET to another PC? In another
word, how do i make the installer using VS.NET ? Will it also install .NET
Framework?
... more >>
VB.NET and EM_STREAMOUT
Posted by Shawn G. at 1/26/2005 2:57:03 PM
I am trying to use the EM_STREAMOUT message to get RichEdit Control data from
another application. I have found several examples on the web for C++ and
C#. I have tried to convert them, but the call always crashes the window I
am trying to get the data from. Does anybody know where I can fi... more >>
drag/drop from listbox to listbox, but multiextended mode
Posted by Bernie Yaeger at 1/26/2005 2:47:05 PM
I've been able to get a pair of listboxes to pass data from one to the other
successfully, but only one selected item at a time. If I change the listbox
mode of both the multiextended, it only passes the item (point) from which
the drag begins. Here's some of the relevant code:
Dim Pt As Ne... more >>
how to call a Java object in VBA / VB
Posted by Krishna at 1/26/2005 2:27:03 PM
Hi all,
I have a Java wrapper program which I need to access in Visual Basic / VBA.
I am trying to read some objects and methods and get data from the java and
genenerate an Excel file for the client.
What is the best way to do this?. Please help Thanks... more >>
Use CType or Integer.Parse to parse a string into an integer
Posted by Teresa at 1/26/2005 2:25:02 PM
1) Should I use Integer.Parse to convert a string into an integer in .NET
now?
CType(sUserID, Integer) OR Integer.Parse(sUserID)
2) And is it better to use the string class to trim, get length, etc in .NET?
s1.trim OR trim(s1)
s1.length OR len(s1)
Thank you!... more >>
XML to Access table
Posted by jmb at 1/26/2005 1:59:05 PM
I need to move data stored in an xml file to an MS Access 2000 table. I have
a VB.net (created within Visual Studio.Net 2003) windows form that reads the
xml data to a dataset and displayed in a datagrid so the user can verify that
it is indeed the data they want. What I'm missing is how to sa... more >>
pass variable and push button
Posted by HankC at 1/26/2005 1:21:41 PM
I'd like to pass a variable to my webform1.aspx, place it in a textbox
on the page and push a button to execute code when the variable is
present...
e.g.
www.server.com/MailboxSize/WebForm1.aspx?username=John.Doe
or
www.server.com/MailboxSize/WebForm1.aspx
the app checks for the... more >>
.net equivilent of VB6 Winsock control
Posted by mike w. at 1/26/2005 12:55:03 PM
I know I can add the VB6 Winksock control as a COM object
but how can I use the .Net Sockets to do the same thing?
I see no way using a tcpClient to get events for a connect or data arrival.
What am I missing here?
thanks
mike w. ... more >>
Example of dragging bitmaps
Posted by Geoff Jones at 1/26/2005 11:56:54 AM
Hiya
Could anybody direct me to some examples of code to do the following:
Display a bitmap on a form which can then be moved about i.e. dragged, using
the left down button of the mouse.
Thanks in advance
Geoff
... more >>
Newbie: Major problem
Posted by Koriel at 1/26/2005 11:16:16 AM
I have just started to code in VB 2003 and have a problem, whenever I
try to load an image at design time, no matter whether it is a
background image or into a picture box I just get an error message
stating "empty path name is not legal". Can anybody explain what it
going on and how to get roun... more >>
File path (contains special characters) problem when passing as input to API function.
Posted by Sakharam Phapale at 1/26/2005 10:44:54 AM
Hi All,
I am using an API function, which takes file path as an input.
When file path contains special characters (@,#,$,%,&,^, etc), API function
gives an error as "Unable to open input file".
Same file path containing special characters works fine in one machine, but
doesn't work in other.
... more >>
General Question about Object Creation
Posted by Charles Law at 1/26/2005 10:31:20 AM
As a matter of practice, where would people put the following elements of
object creation/initialisation:
Create shared member objects
Initialise shared member objects
Create non-shared member objects
Initialise non-shared member objects
Initialise peripherals
The places where these coul... more >>
Using MSMQ on a workgroup?
Posted by Webbee at 1/26/2005 10:31:02 AM
I have a service built that is trying to read messages from a private que.
When this tries to happen I get this error....
A workgroup installation computer does not support the operation
From what I read I need to have my system setup on a domain, is this
correct? For my dev work I'm not g... more >>
Stored Procedure Results
Posted by Kait at 1/26/2005 10:07:27 AM
I have a stored procedure which is as follows:
Alter Procedure "uspConfig"
(
@FO int,
@Pull varchar(4)
)
As
DELETE FROM tblEEConfig
INSERT INTO tblEEConfig
SELECT FO, Pull, Config, StartSNRange FROM tblSerialNum WHERE FO = @FO
AND Pull = @Pull;
This proc will only return one record.... more >>
datagrid format
Posted by Barney at 1/26/2005 10:07:01 AM
How can i get my datagrid to read from right to left instead of up and down?
I want to be like:
BMW Lexus Volvo
instead of:
BMW
Lexus
Volvo... more >>
Write a property on one line
Posted by kurt sune at 1/26/2005 10:05:16 AM
If I want to write this in one line; how do I achieve it?
Public Property x1() As Integer
Get
Return _x1
End Get
Set(ByVal Value As Integer)
_x1 = Value
End Set
End Property
/k
... more >>
general question about a component
Posted by Bernie Yaeger at 1/26/2005 9:48:06 AM
I am having trouble using a component - I believe a managed component, but
that's part of the problem.
I have to source, as it is freely available on the internet. I have
communicated with the authors of one of these components (there are several
versions) but no one has been able to expla... more >>
Using MsgBox in a thread
Posted by RML at 1/26/2005 9:43:07 AM
Hi all, I have a VB.NET app which contains 1 form. The form starts a thread
which does some processing based on what the user is doing on the form.
My problem is, the thread can display a MsgBox which is not Modal to the
form. If I click on the form while the MsgBox is up, the MsgBox hides ... more >>
just wondering how to design this...
Posted by rodchar at 1/26/2005 9:41:02 AM
Hello all,
Please allow me to revisit this topic once more it has hindered me for the
longest. Even after the great replies I got in the past. I guess they might
have been a bit over my head or my requirements weren't very clear. I’m
betting on the latter (not asking clear) so after sever... more >>
TCP question
Posted by Nikolay Petrov at 1/26/2005 9:34:03 AM
I need to transfer different types of data from my tcp client to my tcp
server - string, bynary, datasets.
Ho to know what exactly data I receive?
... more >>
DOS TYPE command from within VB
Posted by Darin at 1/26/2005 9:24:07 AM
I need to open a cash drawer and the easiest way to do that is to:
ECHO "||" > LPT1
I have put:
system.diagnostics.process.start (my echo command)
but it fails with a File Not Found error.
Any ideas???
Darin
*** Sent via Developersdex http://www.developersdex.com ***
Don't just... more >>
just wondering why
Posted by rodchar at 1/26/2005 8:19:03 AM
hey all,
i was wondering why I've seen articles similar to the following:
ADO.NET Code Generator - Map DataBase Objects To .NET Classes
What does this subject accomplish? Like, this does this instead of doing
what? Please also give me an anology if possible.
thanks,
rodchar
... more >>
Inheriting the TreeView problem...
Posted by johnb41 at 1/26/2005 7:38:21 AM
In my treeview, I need each node to hold a "value", not just
text/label. Kind of like how a ListBox item has text, and a value
associated with it. I need this because when a node is clicked, i need
to get the "value" behind the node and then use it do do something.
Anyway, I made a custom tr... more >>
Problem Calling Stored Procedure
Posted by Scott McNair at 1/26/2005 6:54:55 AM
Hi all,
I'm having problems calling a stored procedure from within my code. If I
execute the SP manually from a Query Analyzer window it runs without a
hitch, but it seems it doesn't even fire when I try to run it from my code.
Anyway, here's both the VB code and the stored procedure:
... more >>
How to control placement of app on startup
Posted by Peter B.L. Rasmussen at 1/26/2005 6:27:07 AM
I want to start an app, and at the same time control where it is placed. I
use the following code, but it doesn't seem to work. The MoveWindow call
doesn't move the window. What am I doing wrong? Isn't the shell function
supposed to return the handle to the window? Or is this just a process id
a... more >>
Make dll that contain one function. Help Please.
Posted by milo2low NO[at]SPAM yahoo.co.uk at 1/26/2005 6:20:30 AM
Vb.Net Make dll that contain one function. Help Please.
I would like to call a function from different applications.
I think i have to make a dll.
I have Visual Basic.net 2003 Standard Edition, that teorically does
not make dll,
but pratically does.
I search vbc.exe and copy it to a new ... more >>
Which is First Form in Project?
Posted by Alan M Dunsmuir at 1/26/2005 5:38:08 AM
Something very basic I either never thought about, or (more likely) once
knew and by now have totally forgotten.
I have developed a Windows application in VB.NET, all based on a single
Form. I would now like to add a Splash Screen to the project, which
should be seen by the user whenever th... more >>
Multiple values in one line of Combo or Listbox
Posted by tino at 1/26/2005 5:33:02 AM
I have the (usual) problem that, in a combo or listbox, I want to keep a text
and a related key value. For instance the country description and the country
code.
In order to solve this I uss the following approach:
With the following class I create an item
#Region "Create SubClass Item"
... more >>
Strange "bug" on EnableVisualStyles?
Posted by Juan Pedro Gonzalez at 1/26/2005 2:55:32 AM
I am a bit unsure about this "Effect"... My code:
Public Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Dim myMainForm As New FormularioPrincipal
Dim mySplash As New MyClass.SplashScreen
If mySplash.ShowDialog() = DialogResult.OK Then
Appl... more >>
Open new window from aspx.vb
Posted by PLSH at 1/26/2005 2:35:04 AM
Good day,
I nned to find a way of opening a new window. I have a aspx page with a
whole bunch of text boxes and so on on it and some command buttons. What I
need is that when one of the command buttons is pressed and some preocessing
gets done in the aspx.vb section I need a new window to o... more >>
how to pass instance handle
Posted by SARIT GHOSH at 1/26/2005 12:59:01 AM
To pass the instance handle of a client application we use
VB6.GetHInstance.ToInt32 in VB6.
What should we use in VB.NET ?
Actually I am trying to do TAPI programming in VB.NET .
In Visual Basic the lineInitialize function is called as follows:
Error = lineInitialize(hTAPI, VB6.GetHIns... more >>
Connecting a textfile to a datagrid
Posted by motimh NO[at]SPAM hotmail.com at 1/26/2005 12:02:05 AM
Could someone please show me the code (or design-time) required to use
a comma-delimited textfile as data to a datagrid?... more >>
how to pass instance handle
Posted by SARIT GHOSH at 1/26/2005 12:01:01 AM
To pass the instance handle of a client application we use
VB6.GetHInstance.ToInt32 in VB6.
What should we use in VB.NET ?
Actually I am trying to do TAPI programming in VB.NET .
In Visual Basic the lineInitialize function is called as follows:
Error = lineInitialize(hTAPI, VB6.GetHIns... more >>
|