all groups > vb.net > april 2005 > threads for monday april 18
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
MySQL too many connections
Posted by Chris at 4/18/2005 5:58:31 PM
I am using the following function in a windows service. It is fired off
by a file system watcher component. It works fine, except for I'll copy
in 20 files it has to process at one time. I'll load up MySqlBrowser to
check the data, and it says I'm out of connections. (the database is
rem... more >>
Windows Forms Control Box
Posted by Dennis at 4/18/2005 5:58:01 PM
How can I tell if a user clicks the Close "X" on the windows form control box?
--
Dennis in Houston... more >>
Daylight time wrong UTC time
Posted by Brett Edman at 4/18/2005 4:06:03 PM
I created a UTC clock using this:
UTCTime = MyTime.ToUniversalTime()
Now that we've turned the clocks ahead 1 hour for daylight savings time, the
clock is reporting the wrong UTC time. It is reporting UTC + 1 hour.
Is this a bug or is there a way I can querey for daylight time and make the
a... more >>
How can I prevent this from Late Binding?
Posted by gregory_may at 4/18/2005 3:48:25 PM
I am using the thread pool.
I would like to prevent late binding, but cant figure out how. When the
WaitCallback function is called, it expects a function prototype with type
OBJECT. My rotuine that does the real work, needs it as a string Array.
Whats the best peformance way to handle th... more >>
MDI Child Form Height
Posted by Charlie at 4/18/2005 3:35:11 PM
In VB.net 1.0, windows environment, for an mdi child form in the normal size
state (not maximized)...
The maximum height of the mdi child form appears to be limited to a value
that is only slightly more than the full screen height of the MDI form.
Is there a way around this limitation?... more >>
Simple question?
Posted by Bradley at 4/18/2005 2:53:01 PM
I want to set the scroll bar and cursor the bottom of a constantly updating
textbox. I am under the impression that: txtBox.SelectionStart =
txtBox.TextLength should do the trick, but it doesn't have any impact. Any
suggestions?
TIA
Brad
... more >>
Confused about DataGridTableStyle
Posted by iano at 4/18/2005 1:18:31 PM
When I first saw the word style here, I immediately jumped to the
conclusion that the styles were of the Cascading Style Sheet variety.
It now looks that was the wrong conclusion.
Here is what I was attempting to do
<th style="text-align:center;font-weight:bold;> One or more
columns</th>
W... more >>
Search to find files containing so string
Posted by Just Me at 4/18/2005 12:34:08 PM
Windows has a search command to find files containing a given string.
Makes me wonder if there is some Windows API or managed method to
programmatically search a directory tree for files containing a given
string.
Thanks in advance
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to stop even processing?
Posted by Brett at 4/18/2005 12:29:24 PM
I have several controls on a form. Each control has various events. The
flow may go like this:
control1.event1
control2.event1
control1.event2
control3.event1
How can I stop this chain in control2.event1? I'd like to stop the entire
process and return control to the form.
Thanks,
B... more >>
Syntax help
Posted by hharry at 4/18/2005 12:06:58 PM
Hello All,
I have the following code:
response = Encoding.ASCII.GetString(bytes, 0, receivedByteCount)
Dim multiline As Boolean = (response.Chars(3) = "-"c)
What is the purpose of the c character in "-"c
Thanks In Advance
... more >>
Tips for speeding up Visual Studio .NET 2003
Posted by Mitchell Vincent at 4/18/2005 11:56:57 AM
I've finally started working in VS.NET most of the day and have a small
problem. It's *slow* on this 2.8 GHz P4 with a gig of RAM.
I only develop in VB.NET, so is there anything I might be able to strip
out or turn off to make things a bit quicker? Even saving a small 3 form
project takes 5... more >>
Stopping Confirmation
Posted by Atley at 4/18/2005 11:45:10 AM
Using VB.Net 2003 to create Excel spreadsheets using MS Excel 11.0 object
library:
When I run my app in my dev environment, I am never prompted for things
like deleting sheets or saving files, but when I release it (with reference
DLLs copied local set to true) I am prompted for all of these ... more >>
DoEvents equivalent in VB.Net
Posted by Ed Chiu at 4/18/2005 10:43:04 AM
Hello,
Does anybody know any commands that do the same as DoEvents in VB6. I need
to delay the program execution a little bit for the form to refresh.
Thanks in Advance... more >>
Converting C# class to VB.Net
Posted by Michael at 4/18/2005 10:40:03 AM
Hi All,
I need a little help converting a class to vb.net. I have the following to
convert:
internal class BBBSDIForm : BBBForm
{
public BBBSDIForm(FormInfo fi, FormMgr formMgr) : base(fi, formMgr)
{
sysform=new SmartForm(formMgr, this, fi.pos);
sysform.Text=fi.caption;
sys... more >>
How can I get my boss to like me?
Posted by Daniel Kaseman at 4/18/2005 10:35:09 AM
How can I get my boss to like me?
(I've tried.)
... more >>
Code needs to be alerted that a removable disk drive's state changed
Posted by Just Me at 4/18/2005 9:37:57 AM
I check to see if the Floppy drive is ready and display it's state.
But if the user inserts or removes a floppy disk I need an event or
Windproof
message to cause the code to display the new state.
Is the some way the code can be alerted to the fact that a removable disk
drive's state chan... more >>
Add a contact to the CC: field of an email that's already being composed.
Posted by Kenneth H. Young at 4/18/2005 9:23:43 AM
I have written an LDAP application that allows user to select contacts from
the search result data-grid and then click on an email to button which
generates a new email and populates the To: field with the selected
contacts. Note: The application reads the registry to determine what the
defa... more >>
how to clear string builder object?
Posted by Rich P at 4/18/2005 9:15:52 AM
I have to read data from an external source, massage the data,
concatenate it to one long string, then write it to a textfile. So I am
experimenting with the StringBuilder object. I append the data in a
loop, then I write the data
to text file, then I need to clear the StringBuilder object fo... more >>
Enum files in a network folder
Posted by Ed Chiu at 4/18/2005 9:14:01 AM
Hi,
I want to use VB.Net to access a network folder, say \\myServer\myFolder,
and enumerate all files in that folder and process each file one by one.
Please provide some sample codes.
Thanks!... more >>
Check Box Greyed
Posted by EdB at 4/18/2005 8:57:04 AM
In VB6, you could set a check box to checked, unchecked, or greyed. The
latter would be used to show a setting but disable the control.
In .Net, the third choice is not greyed, but indeterminate. And the doc
says it shows it as greyed, but checked. So how do you show greyed and
unchecked... more >>
Accessor declarations for events in VB.Net
Posted by Luhar at 4/18/2005 8:11:07 AM
Hi all,
I'm attempting to port some C# code over to VB.Net. It was going well until
I hit the following code:
public virtual event PInputEventHandler KeyDown {
add { handlers.AddHandler(keyDownEventKey, value); }
remove { handlers.RemoveHandler(keyDownEventKey, value); ... more >>
Can't Pass object ByRef from DLL to Windows Form
Posted by mjhillman NO[at]SPAM msn.com at 4/18/2005 7:18:19 AM
I have a web project (ASP.Net/VB.net) with a data access layer class
that passes dataset objects to the web form based on a passed SQL
query.
I tried to reuse this class in a VB.Net Windows form but the ByRef
dataset variable is empty after the call to the data access layer. The
class succes... more >>
Playing sound from a file
Posted by Xero at 4/18/2005 6:55:02 AM
Is there a simpler way to play from a sound file than this one
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbcode/html/vbtskcodeexampleplayingsound.asp
Thanks.
--
Xero
http://www.chezjeff.net
My personal web portal... more >>
Check is coputer online/live
Posted by alber NO[at]SPAM netdot.ch at 4/18/2005 6:33:33 AM
Hy.
I need to check:
- is the target machine online.
How can i do it?
if machine_is_online =true then
online = yes
else
online = no
end iF
thanks... more >>
Moving data between Access databases
Posted by genojoe at 4/18/2005 6:22:02 AM
I have two Access databases: one has records, the other only has blank
tables. I want to copy records to the empty database. I am using a
DataAdaptor and a DataSet for the transfer. My code works for for editing
records or using the Row.ADD() method to append records.
To transfer the re... more >>
using GetChanges on a datatable
Posted by Sam at 4/18/2005 4:33:50 AM
Hi,
I have a datagrid which source is a dataset :
dgFields.Rows.DataMember = m_dsFields.Tables(0).TableName
dgFields.Rows.DataSource = m_dsFields
Now my values are displayed properly and when I add a row I call the
follwing :
Dim dtChanged As New DataTable
dtChanged = m_dsFields.Tables(... more >>
How can i split a large csv file ?
Posted by damian at 4/18/2005 2:38:09 AM
I want to split a large csv file into smaller files. How
can i go about this?..
thank you !... more >>
How to make an Outlook Add-In with VB.NET? (with property page)
Posted by DraguVaso at 4/18/2005 12:00:00 AM
Hi,
I want to make an Outlook 2000 Add-In with VB.NET 2003, but I'm not able to
find any good information about it how to do it.
I want to have a property-page for my Add-In in Outlook to change some
settings. do i have to add a form for that? Or how do I do this?
Any help would be really a... more >>
computer Names and MSDE2K Databases
Posted by lgbjr at 4/18/2005 12:00:00 AM
Hi All,
I need to retrieve a list of computer names that are available on a network
and a list of databases that are available in MSDE2K. Can someone point me
in the right direction for retrieving this type of info.
TIA!
Lee
... more >>
Bit-wise And
Posted by Chuck Cobb at 4/18/2005 12:00:00 AM
Can someone tell me how to do a bit-wise "And" in VB.Net - I've looked all
over and can't find it. I thought the "And" in VB6 was replaced by a
"BitAnd" function, but I can't find it anywhere and when I try to use it, it
is unrecognized. Is it part of a class somewhere?
Thanks,
Chuck C... more >>
Checking that a Windows Service is running and restarting if stopped
Posted by Simon Verona at 4/18/2005 12:00:00 AM
My software relies on a third party data provider to a propretary database.
In turn the third party database relies on a Windows Service that runs on
the server to supply the data... The problem is that from time to time this
service dies without warning.
Is there any way that I can write ... more >>
Windows messages
Posted by Nick at 4/18/2005 12:00:00 AM
Hi There,
I'm just trying to find a range of Windows values that are unused? I
was previously using 500's but this has started to cause issues, is there a
range of values that are unused? I would rather not have to resort to
WM_USER or whatever to value is for *custom* messages. Than... more >>
Why is handles on event missing?
Posted by Brett at 4/18/2005 12:00:00 AM
I'm using a third part component in a certain app. The component has
methods and events. I noticed one particular event was not firing after a
while but it should have been. The problem was the "handles" part was
missing. I didn't remove this that I know of. After putting this back in,
t... more >>
Delete Sheets in Excel
Posted by Atley at 4/18/2005 12:00:00 AM
I am trying to delete the default sheets that appear whenever you make a new
workbook in Excel. I can't seem to find any documentation on this in the
..NET help. I tried creating a macro that does it, and use the code from
that, but I cannot seem to find the right combination of calls to do it.... more >>
ListView events for column resizing?
Posted by Thief_ at 4/18/2005 12:00:00 AM
Does the VB Listview have some sort of event which fires when the user
resizes the columns in Details view? I want to record the column sizes as
the user changes them. If not, can I create an event like this?
--
|
+-- Thief_
|
... more >>
.NET Framework and Office (Word/Excel) Documents
Posted by at 4/18/2005 12:00:00 AM
Dear Group,
I can't seem to find a place within the framework to allow me to store my
own private (hidden) data within these types of documents. I just need a
place to store a few encrypted strings to assist with document tracking.
Thanks!
--
Liddle Feesh
*fap fap fap fap*
<>< ... more >>
No more \\.\X: raw disk access
Posted by Lucvdv at 4/18/2005 12:00:00 AM
I started working on a disk replication tool for CompactFlash, to deploy an
XP Embedded device.
It would save me a lot of time and rebooting into good old DOS, if I could
replace the CF's bootsector from within the same tool.
The problem is that a filestream doesn't support raw disk access t... more >>
Detecting form going off edge of screen
Posted by copyco at 4/18/2005 12:00:00 AM
Does anyone have any suggestions on this? I have a form that can be
collapsed into a compact size and expanded back to full size. If the
user moves the compact size of the form close to the edge, then when it
is brought to full size, the right edge goes off the edge of the screen.
How ... more >>
Convert Lower Case Chars to Upper Case
Posted by Dino Buljubasic at 4/18/2005 12:00:00 AM
Hi,
I would like to convert characters as typed in my text box to upper
case. How can I do this?
Thank you... more >>
|