all groups > vb.net > may 2004 > threads for thursday may 13
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
[Data Binding] slow ?
Posted by Agnes at 5/13/2004 11:24:27 PM
I got a tables which got 10,000 records.
user will input the invoice no as key.
my strConnection = "select * from invoice_Table where invno ='" &
(Me.txtInvoiceNo.Text) &"' "
in my form, there are over 20 textbox.
If i use databinding to bind each textbox. will it become slow ???
if i move the... more >>
Regular Expressions and Empty Strings
Posted by cleo at 5/13/2004 10:23:59 PM
I'm experimenting with Regular Expressions and Windows Forms.
Frequently I want a value to be either a valid pattern or empty. For
example a Zip code must be 5 digits or may be empty. I know that I can use
the Regular Expression "\d{5}" to test for exactly 5 digits. How can I add
the option f... more >>
Error when trying to send email from Windows Service
Posted by gerardl NO[at]SPAM networkpro.co.nz at 5/13/2004 10:07:02 PM
Hello
I have created a windows service to monitor a database, it starts some
checks when a timer elapses. The checks send emails depending on their
findings. My issue is that when I created a windows application it
worked fine, however I need to use a service as I don't want to rely
on a user... more >>
Data binding problem
Posted by EOliver at 5/13/2004 8:01:12 PM
Hi
I have a problem that is driving me crazy. I have two forms, both with tab controls. Multiple tab pages contain controls bound to a datatable. One form behaves correctly. The other form loses it's edits when you change pages. So if I modifiy an edit control, then switch tabs, when I come back ... more >>
Data Binding Problem
Posted by EOliver at 5/13/2004 8:01:10 PM
Shell and Proceses.Start
Posted by Charles A. Lackman at 5/13/2004 7:31:33 PM
Hello,
When I use Shell in VB.NET all works great. i.e.
Shell("C:\Hogg.exe -n -pg")
but when I use Dim MyProcess as Process =
System.Diagnostics.Process.Start("C:\Hogg.exe -n -pg")
I get an error that says it cannot find the file.
I need more control over the 'Shelled Application' t... more >>
PostBack
Posted by ruca at 5/13/2004 7:26:09 PM
Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click a
link that execute a function that I have in my code.
I know that with simple links, that postback does not exist.
I must have links and not link buttons, because I have to set the targe... more >>
Finding an outlook appointment using ".find" fuction
Posted by Ori :) at 5/13/2004 7:21:03 PM
I am writing an application to retrieve appointments from Outlook, I have the appointment items sorted by
"Start" field and now I want to find the first record which's "Start" value is later than now (future appointment
The relevant piece of my current code
Dim oCalendar As Outlook.MAPIFol... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to evaluate required permissions?
Posted by Larry Serflaten at 5/13/2004 5:35:48 PM
I just put a simple exe out on the internet and tried to run it.
All it does is manipulate its own images and respond to its own
controls, but the darn thing needed FULL TRUST to run properly!
Does VS.NET have some sort of method to spit out warnings when
stepping outside of the trust boundrie... more >>
free pop3 server class wanted
Posted by John Smith at 5/13/2004 4:58:00 PM
i`m trying ( :( to write an email app
somewhere here i saw a link to
Lesnikowski dll which is a nice pop3 client
now i need something similar but doing the
server work
and 1 more question
there will be like 50 cliens -
should i use multiple threads or asyncronous operation
or o... more >>
ActiveX DLL registration in VB.NET
Posted by Paul Bromley at 5/13/2004 4:35:32 PM
I am using an ActiveX control in a VB.NET application as there is no
alternate .Net control available to me. The problem is that when I try to
install this appliaction on another machine the DLL is not registered. The
only way aound this that I have found is to build a ismple VB6 application
pur... more >>
vb.net convert filenames to 8.3 format
Posted by Thom at 5/13/2004 4:20:48 PM
I'm trying to use shell to execute an old dos based program. This program
takes a binary file and does internal processing and then outputs a text
file based on the processing.
I am choking on the spaces in the valid pathnames.
Any ideas on how to convert from the long file name format to an 8... more >>
Reference Control help
Posted by Merlin at 5/13/2004 4:10:28 PM
Hi
I have a control that allows embeddable editors, so for example I can set a
property of controlsEmbeddableEditor =me.TextBox1 on my form, no problem
here - what I want to do is the same thing but from a string variable.
i.e. I have 14 controls that have a name which is a permutation of 4
... more >>
Global Error Handling
Posted by OHM at 5/13/2004 4:05:53 PM
Hi everyone,
I have a problem with error handling and wondered if anyone has managed to
implement a global exception handling model.
Is it possible to ensure that you see all exceptions before it becomes an
unhandled exception.
This is opposale to putting Try Catches around every statemen... more >>
Detect changes from user
Posted by Bob at 5/13/2004 3:26:05 PM
I am developing a database app using vb.net and SQL Server. I am trying to come up with a way I can detect if the user has made any changes/updates to any data currently displayed on the form so that I can set a varible that I would check when the user closes the form to promt them to save their cha... more >>
Problem while deploying VB.Net application on Windows 98 system
Posted by kelahcim at 5/13/2004 3:17:03 PM
Hi,
we are trying to deploy .Net application on Win98 system.
While it is run at WindowsXP (development environment) there is no problem
with getting it started.
When moved into Windows 98 system, it crashes with information entered
below:
Application has generated an exception that co... more >>
Webrequest examples
Posted by gb at 5/13/2004 3:01:05 PM
Does anybody know of a good place to find some code samples on retreving and posting data to web pages? I can get the response fine using WebResponse, but populating some textboxes and submitting the page using webrequest is what I am having trouble with. Thanks... more >>
VB 6.0 in VB.Net
Posted by Michael Riggio at 5/13/2004 2:43:58 PM
Hi,
I was wondering if there was a way to create (not convert) visual
basic projects in visual studio .net that does not use the .net framework
(i.e. a traditional vb 6 project).
Thanks!
-Mike
... more >>
Client / Server 'Shall I put a sock(et) in it?'
Posted by m_doolio NO[at]SPAM hotmail.com at 5/13/2004 2:32:38 PM
I'm sorry to bother you with this question but it was either this or
giving up and trying to go for a simpler solution (which I will if
this is not gonna work out..)
I'm afraid this is way out of my league but then again why not give it
a shot...
I've used the Pocket PC Signature Applicatio... more >>
SSL
Posted by scorpion53061 at 5/13/2004 2:28:21 PM
Anybody have tutorials or links I can study to learn how to do telnet
connections that are secure.
... more >>
doevents() issue
Posted by Edward at 5/13/2004 2:10:27 PM
Hello,
Win VB6 i used doevents() to update my forms during a process, but for
whatever reason this is changed in vb.net.
Can someone help me with how this should work.
Thanks,
Edward
... more >>
Application Instance
Posted by Jeff at 5/13/2004 2:08:34 PM
Greetings,
Ho do I get a handle to an application's instance in VB.net?
Thanks,
Jeff
--------------------------------
Jeff Morhous
Hi-Tech Metrology Products, Ltd.
jmorhous@hmp-ltd.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...g... more >>
OLEDb.DataReader
Posted by SQL at 5/13/2004 1:50:02 PM
Hi, is there a method to move to the next record in a datareader? Kind of
like the rs.MoveNext from VB6...
Thanks
... more >>
openfiledialog with preview
Posted by mdev at 5/13/2004 1:37:24 PM
Hi what is the esiest way to add preview to openfiledialog
thanks all
... more >>
Inherit ENUM
Posted by Dave Wurtz at 5/13/2004 1:27:54 PM
All,
Is there anyway to inherit from an Enum and/or to add items to them outside
of the Enum statement?
Public Class Class1
Public Enum Test
Value1 = 1
Value 2 = 2
End Enum
End Class
Public Class Class2
inherits Class1
'How can I add class2-specific values to the... more >>
Encryption with des with random password
Posted by newbie at 5/13/2004 1:23:49 PM
Hello,
I face a practical problem with encryption.
I've read examples for encrypting a file with the DES algorythm. The
algorythm uses a key and a IV value. Both are 8 bytes if I'm correct, and
can be generated by the system or specified by me at design time.
How can I then do DES encry... more >>
Undo
Posted by Eric Dreksler at 5/13/2004 1:14:21 PM
Hi,
Similar to my last post on drag-and-drop, does anyone know of any good
resources on how to create a good Undo implementation for an application.
I've been wanting to include this feature in my apps, but haven't been able
to find any good info on good ways to implement this kind of feature ... more >>
Drag and drop
Posted by Eric Dreksler at 5/13/2004 1:12:21 PM
Hi,
Does anyone know of any sources on where to find info about implementing
drag-and-drop capabilities?
Not just how to turn on the ability in contols, but good practices for
formating the info?
Eric Dreksler
... more >>
App.Path
Posted by T Cordon at 5/13/2004 12:05:26 PM
What happened to App.Path how do I get that info now?
Thanks
... more >>
sorting a combobox
Posted by amber at 5/13/2004 12:01:07 PM
Hello
I use the following code to populate a combobox
Me.cbxPeerReview.DropDownStyle = ComboBoxStyle.DropDownLis
With cbxPeerRevie
.DataSource = dtEm
.DisplayMember = "STR_NAME_F
.ValueMember = "ID_USER
End Wit
Me.cbxPeerReview.DroppedDown = Tru
Me.cbxPee... more >>
Please help
Posted by mike at 5/13/2004 11:21:09 AM
I am trying to learn how to deploy applications and I am having significant difficulty accomplishing this task.
First, the application is run over a network
Second, I have copied the bin directory to where the application should run from.
Third, I have changed the local intranet security for al... more >>
Using MQ SERIES
Posted by oz at 5/13/2004 11:20:56 AM
Hi,
Where can i find code examples of connecting with MQ from VB.net(not using
msmq bridge)
BR
Oz
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 07/05/2004
... more >>
how to obtain the positon of the row in the data set
Posted by Carmen de Lara at 5/13/2004 10:56:10 AM
hi all, i have a master detail form. In the datagrid control i have the following code
Private Sub dtgCobD_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dtgCobD.CurrentCellChange
Dim Val As Intege
MessageBox.Show("Col is " & dtgCobD.CurrentCell.C... more >>
Program crashes on logoff but not regular closing
Posted by farmerbuzz NO[at]SPAM hotmail.com at 5/13/2004 10:53:32 AM
I have a program that exits just fine when you close it manually, but
throws an unhandled exception when I try to log off windows. It
suggests I enable the JIT debugger, but when I compile the program in
debug mode and enable JIT debugging it closes fine, though the logoff
process is aborted. ... more >>
Web server
Posted by Jorge Schrauwen at 5/13/2004 10:40:05 AM
Is it posible to code a simple web server in vb.net?(only
get), i've seen samples in c#, but i don't under stand them
kind regards
Jorge Schrauwen... more >>
Gettin no KeyPress event
Posted by KC at 5/13/2004 10:31:13 AM
I'm trying to build a simple text editor in part of my app. Right now I'm
just testing the basics of the KeyPress event handler. The code is
basic...real simple. I'm just testing stuff -
Private Sub txtConsole_KeyPress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventA... more >>
Setting focus doesn't work
Posted by Brian Henry at 5/13/2004 9:55:09 AM
Hi,
I have a bunch of forms in a DLL that I call from my main application. The
one form is a login form, and I have the tab order set in the order I want
it (password box first, then ok button then cancel button then database
selection combo box then user name text box, then back to password t... more >>
redirecting STDIN/STDOUT
Posted by Christophe Helfer at 5/13/2004 9:48:59 AM
hi,
I have some problem with redirecting input and output from a process.
Situation:
I have to use the Cisco Network Registrar (DNS And DHCP server) command
line utility as redirecting its input and output so I can interact with this
one. This utility is similar to ftp under a win32 console.... more >>
Threading, Controls, Invoke and Marshaling to main thread
Posted by Charles Law at 5/13/2004 9:25:22 AM
Hi guys.
I have two threads: a main thread and a background thread. Lots of stuff
happens in the background thread that means I have to update several (lots)
of controls on a form.
It is quite tiresome to have to write code to call MyControl.Invoke for each
control on the form, along with t... more >>
Returning parms to vb.net from as400 stored procedure
Posted by j070957 NO[at]SPAM yahoo.com at 5/13/2004 8:52:37 AM
Returning parm data to vb.net from AS400 stored procedure
This example loads a textbox which is used by javascript for error
handling.
First create the stored procedure on the AS400:
CREATE PROCEDURE KBMCUSTOM/RUSECW55(INOUT :li CHAR ( 10), INOUT :pw
CHAR ( 10), INOUT :dp CHAR ( 10), INO... more >>
Are vb.bet apps supported on this platform
Posted by John at 5/13/2004 8:40:37 AM
Hi
Can I write vb.net apps that would run on this device;
http://www.xda-2.co.uk/under_the_bonnet.html
If yes, is an emulator available?
Thanks
Regards
... more >>
Center a control in a group box dynamically
Posted by Tom at 5/13/2004 8:24:24 AM
I want to be able (at run time) to center a control (like a text box) inside
a group box. Whats the best way to calculate this? Is there something in the
framework that tells you the area INSIDE a group box? And how does one
account for the wierd groupbox margins? (i.e. the top line, where the na... more >>
proper program design?
Posted by Stefan Richter at 5/13/2004 7:37:44 AM
Hi,
I have to write a little program,
to enter and retrieve data from a database.
The most important aspect is that the code is easy to understand, clear and
organized,
and easy to modifiy or expand.
The program won't need much data and not any complicated calculations,
so performance is le... more >>
Querying a dataset
Posted by JC at 5/13/2004 6:36:07 AM
I have created a data adapter (CheckVacationHrsDataAdapter1) and generated a dataset (CheckHrsVacDataSet1) in the form designer. What I would like to do is query this dataset, find the sum of TotalVacationHrs per EmployeeID, and put this sum in a text box. How do I load my dataset at runtime in orde... more >>
Currency Violation. Update command affect 0 records
Posted by Geraldine Hobley at 5/13/2004 6:31:03 AM
Hello I'm getting the above mentioned error in my applicatio
I have a datagrid bound to a datasource like s
MyDatagrid.DataSource = Mydataset.Tables(Order) - this all works fine
However I have another field on the form which is a richtextbox and is bound to another field in the same ... more >>
Proxy authentication error: Please Help
Posted by Greg Vereschagin at 5/13/2004 4:37:26 AM
I cannot get the following code to work when trying to download web
pages through a proxy server:
[1] Dim wrq as Net.WebRequest
[2] Dim wrp as Net.WebResponse
[3] Dim proxyObject as WebProxy
[4] proxyObject = new WebProxy("abc-dc", 8080)
[5] proxyObject.BypassProxyOnLocal = True
[6] Globa... more >>
MS Access - make connection - use class
Posted by Art at 5/13/2004 4:16:03 AM
Hi -- I'm claiming once again that I'm new to this -- and I really am, it's just taking a long time to pick up what I need.
I'm reading through Dobson's book on VB.net and MS Access. I can connect to a database as follows:
Dim m_DB As New ADODB.Connection
Dim m_COB As New ADO... more >>
Repost: Can anyone help with this Regex problem?
Posted by Greg Vereschagin at 5/13/2004 3:28:52 AM
I'm trying to figure out a regular expression that will match the
innermost tag and the contents in between. Specifically, the string
that I am attempting to match looks as follows:
....<table>...<table>...>Final<...</table>...</table>...
I want to match: <table>...>Final<...</table> from t... more >>
Sorting Dataset Rows
Posted by Slonocode at 5/13/2004 3:28:27 AM
I have a form with some textboxes, checkboxes, and comboboxes that are
databound to the "Packages" table in a dataset.
For Example:
Me.txtFirstName.DataBindings.Add(New Binding("Text", DS,
"Packages.FirstName"))
and I navigate with statements like:
Me.BindingContext(Me.DS, "Packages").Posi... more >>
byte() to string()
Posted by pproost NO[at]SPAM hotmail.com at 5/13/2004 3:01:18 AM
Hi
I've got a blob field in a database and I need to place it in an
invisible textbox and then convert it to an image and place it in a
picturebox. I know it sounds weird but this is the way I have to do
it, my problem isn't converting the blob data to an image and place it
in a picturebox, b... more >>
InternetAutodialHangup (wininet.dll)
Posted by connull at 5/13/2004 2:36:02 AM
I used the following code but it does not disconnect the automatic dialup. Can anybody help
Private Declare Function InternetAutodialHangup Lib "wininet.dll"
(ByVal dwReserved As Long) As Lon
Public Sub HangUp(
'To disconnect an automatically dialled connectio
InternetAutodia... more >>
Confused by the NameValueCollection
Posted by anon at 5/13/2004 2:07:06 AM
I need a little clarity in the NameValueCollection.
Within the MSDN .NET 1.1 Framework help is says:
"This collection is based on the NameObjectCollectionBase class.
However, unlike the
NameObjectCollectionBase, this class stores multiple string values under
a single key."
Wh... more >>
What I always wanted to know...3 of 3...references to dll's...
Posted by Michael at 5/13/2004 1:56:04 AM
Hi there,
I am still working with Access97/VBA (will change to 2003 soon).
I built mde systems that use automation with excel and others. When I compile the mde it uses my dll versions and if someone else has a later version (Excel for example) errors occur. I've got no idea how to solve this on... more >>
What I always wanted to know...2 of 3...numbers in a list box...
Posted by Michael at 5/13/2004 1:51:03 AM
Hi there
I am still working with Access97/VBA (will change to 2003 soon)
I use a lot of listboxes displaying numbers and they are always left justified. I'd like them to be right justified..
But I don't know how..
Sounds simple but I've never figured it out, most of the time too impatient and ... more >>
What I always wanted to know...1 of 3...x y cords of a form...
Posted by Michae; at 5/13/2004 1:46:02 AM
Hi there
I am still working with Access97/VBA (will change to 2003 soon)
I would like to find out how I know the location of a form. I use the Docmd.MoveSize to place my first form wher
I want it in order to place a second form somewhere specific. I'd like to know the current position of the fir... more >>
Console apps
Posted by Alexandre Gomes at 5/13/2004 1:13:31 AM
I've been searching for a clue for this but can't find one.
Is possible to create an aplication with something like:
"Decompressing... x%"
Where the x will be changing with the evolution of the decompression in
this case.
In this case I used decompressing but it could be anything like in... more >>
Converting Word formatted contents to HTML
Posted by Craig Petrie at 5/13/2004 12:41:16 AM
Hi,
I have a large table in Word 2003 that has formatted text in the cells and
wish to read and convert a cells formatted contents to html output via
vb.net code. The formatting contains the following: bold text, italic text,
superscript & subscript text, bullet points. The output html is then s... more >>
|