all groups > vb.net > april 2005 > threads for friday april 29
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
Detect a Modal Dialog Box
Posted by Jeremy at 4/29/2005 10:38:28 PM
Hello,
I'm thinking this may be an easy one but I am getting frustrated. How
can I detect if a process is showing a modal dialog. Like "Are you sure
you want to exit?", or an error message etc...
I stumbled across the GetWindow API but am unsure how to work it
properly. The only examples I ... more >>
Is there any way to for/each controls?
Posted by Terry Olsen at 4/29/2005 10:31:15 PM
Is there any way to run through all controls on a form using a For Each
loop? Say I want to clear all textboxes on a form...what's the best way to
do that?
... more >>
Limitation to drawing on a form
Posted by TBK at 4/29/2005 10:18:01 PM
There seems to be a limitation to drawing on a form that is set to 300x300.
The problem is I can't seem to figure out how to expand that so eve if I make
the form bigger the drawing only shows up on that 300x300 space. Is there
any way to expand that?... more >>
Resolution
Posted by Tom McL. at 4/29/2005 9:14:25 PM
How can I ensure that a program on one computer will look the same
on another computer with different screen resolution settings?
TM
... more >>
Newsgroup Not Available???
Posted by GrandpaB at 4/29/2005 7:19:47 PM
When I attempt to view additional pages in this newsgroup
I get a message that the newsgroup is not available. I
don't have this problem with other newsgroups. Any clues
would be appreciated. This message has been present for
the last 2 or 3 days.
While I'm whining, I get a message t... more >>
How do you bind a Arraylist to a dropdownlist?
Posted by Jack at 4/29/2005 6:41:55 PM
Hello,
I want to bind an ArrayList to a Dropdownlist. How can I do this?
Thanks for any help,
Jack
... more >>
MS Access Reports
Posted by David at 4/29/2005 6:03:09 PM
Does anyone know how to run MS Access reports from VB.net. I'd like to keep
the existing reports in the database if I can.
Thanks
David
... more >>
Problem converting byte() to string and then back to byte()
Posted by moondaddy at 4/29/2005 5:46:21 PM
I need to convert a byte array to a string and pass it as a parameter in a
URL and then convert it back to the original byte array. However, its
getting scrambled in the conversion. In short, here's the code:
======================================
Dim textConverter As New ASCIIEncoding
Di... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem crating file and executed other process
Posted by Juan Carlos S at 4/29/2005 3:02:03 PM
Hi I Am Juan Carlos
I have a Text File, and convert the text File to Pdf File with GhostScript
My question is
Who knowing when to the file this totally created?
I am open pdf file with acrobat reader but show error,beacuse, the file not
that full created
thanks for your help
... more >>
Help: Questions regarding Modal forms
Posted by Sarika at 4/29/2005 2:18:01 PM
I have some questions regarding Modal forms and would appreciate if someone
could clarify my understanding.
(a) I observed that the modal form's Form_Closing event is generated if I
set the modal form's Visible property to False or call its Hide method. Is
this true? or is it a result of so... more >>
Better timing??
Posted by jamie at 4/29/2005 1:53:00 PM
Hi all,
I tried posting this Q in Csharp, but they seem
to be down right now. (Anyone know why?)
Here it goes...
I am working on a school project, that includes
the control of motors throught motion profiling,
and velocity loops. The velocity loop function
has to run every 10ms, and pre... more >>
Auto Resize Label Height to Accomodate Text
Posted by Wenlei Fang at 4/29/2005 1:40:17 PM
Anybody knows how to accomplish this?
... more >>
Lockout Security
Posted by TOM at 4/29/2005 12:03:11 PM
Hello,
I am working on a class that will be called from multiple
forms, which will start a timer count down 15 min. When
there is mouse activity the timer is reset to 15 min. This
way if a user leaves the program open and leaves there
desk it will save and lock, making them reenter there ... more >>
Newbie: Delay function or method ?
Posted by steve at 4/29/2005 11:58:01 AM
Hi,
What is the common way to have a wait( ) type of function in VB.net ?
TIA
-steve
... more >>
TCP Socket
Posted by Lou at 4/29/2005 11:52:49 AM
I have a VB6 client app that I send data using the winsock control.
Buffer = "<xml>" & _
"<command>GetSomething</command>" & _
"</xml>" & vbCr
Buffer = StrConv(Buffer, vbUnicode)
'Winsock 0 is the gateway socket
If Winsock(0).state = sckConne... more >>
launching a msc file (Active directory users & computers)
Posted by dwilliamjoe at 4/29/2005 11:22:03 AM
How in the world can I launch a msc file from a visual basic application.
I've tried Shell which is only for EXE files
I've tried a process which should do it, but does not.
Please help.... more >>
Calculating age errir in VB 6.3
Posted by Tommy at 4/29/2005 10:44:14 AM
Hello!
I'm trying to work on a database for someone and they're having a few
troubles getting things working.
They use to have this program on another older computer but they recently
got new computers and just copied and pasted this database from their old
computer to the new one. What... more >>
Microsoft Ink
Posted by André_Nobre at 4/29/2005 10:18:33 AM
Hi all..
i am responsible for coding a project that uses Microsoft.Ink namespace,
but i don't have this namespace. Looking in google i found that this
namespace comes with a microsoft tablet package. Where can I download this?
Thanks,
Andre... more >>
bytes to io.stream
Posted by John at 4/29/2005 10:16:03 AM
I have an array of bytes that contains a bitmap file. I want to convert the
array into IO.Stream and load the image using
MyPictureBox.Image.FromStream(MyStream).
How can I do the conversion?
Thanks.... more >>
Screen scraping or better method
Posted by Steve Long at 4/29/2005 9:37:39 AM
Hello,
I currently have an app that accesses a web page and I scrape the screen and
parse the returned text to find the elements I want off of the page. My
question, is this a good method of doing this or is there a better method of
getting at particular elements of a web page? Is there a way to... more >>
can g.DrawString draw text on top of a label control? any control?
Posted by Rich at 4/29/2005 8:28:04 AM
Hello,
I need to draw some text on a form. No problem
....
e.Graphics.DrawString(drawString, drawFont, drawBrush, x, y, drawFormat)
My problem is that I want to draw the text on top of some label controls.
Is there a way to do this using the Graphics DrawString method? Is there a
way ... more >>
mysterious-connection string "disappears" from source code (bug ??
Posted by HarryMangurian at 4/29/2005 8:08:02 AM
I am really confused !
- Form1 uses an openfiledialoag to get a public strfilename.
- Forms 2 and 3 both connect to the database specified in the file name.
The connection string is shown below.
Intermittently, the connection string disappears from either Form2, Form3,
or both.
When I get... more >>
get dataset row count
Posted by Sam at 4/29/2005 6:56:52 AM
Hi,
I've got a datagrid and a dataset used as the datasource.
I'd like to do a test, if the index of the selected row in the grid is
greater than the dataset.tables(0).rows.count. The problem is that if I
edit the last row of the grid, a new row will be added below and to the
dataset. Therefore... more >>
Moving a project over to another person?
Posted by Tmuld at 4/29/2005 6:34:37 AM
Hello,
I have created a project on my computer (ASP.NET) which connectes to a
remote database.
All the code is local to my machine.
I need to move this code to another developer, so they can continue the
work.
How would I do this?
Zip up my directory in c:/inetput/wwwroot/<project n... more >>
sizeof? is there a .NET equivalent
Posted by stand__sure at 4/29/2005 4:39:43 AM
Having recently had a need to use ZeroMemory from the kernel32.dll, I
"discovered" that there is apparently no .NET equivalent to the c/c++ sizeof
operator -- one does exist in the Marshall namespace, but it fails when
passed a managed type. I poked around the Reflection namespace, but found ... more >>
c++ to vb
Posted by Bolo at 4/29/2005 2:12:02 AM
hi
what is the equivalent of "unsigned char*" of c+ in VB
i know that unsigned char == byte in VB but what about
unsigned char* == ????
thx
--
--------------------------------------------
giving up is not an option... more >>
Application terminated when Sub Main finishes
Posted by schapopa at 4/29/2005 12:49:39 AM
I am working on upgrading my application from VB 6.0 to .net and I have
module set as a startup. There is a warning that application will
terminate when Sub Main finishes and recommendation to move code to Load
event, but in module there is no such event. (I am not intending to
terminate applica... more >>
BaseClass-DerivedClass Instance-Issue
Posted by Michael Maes at 4/29/2005 12:36:02 AM
Hi,
I have a BaseClass-DerivedClass Instance-Issue.
Classes: (Framework)
Stegosoft.Settings.SerializationClass
Stegosoft.Stegosuite.Common.UIStrings (Inherits
Stegosoft.Settings.SerializationClass)
Stegosoft.Windows.Forms.UIForm
Stegosoft.Windows.Forms.UIFormWithCommandManager (Inherit... more >>
performance XML Webservice / Remoting?
Posted by DraguVaso at 4/29/2005 12:00:00 AM
Hi,
I need to write a VB.NET-application (Windows Forms) that may have a part of
it (re-)implemented as a Webpage for the customers.
I think it can be usefull to create a business Layer with Remoting or a XML
Webservice, and than write my Windows Forms application that uses it. and
than may... more >>
Help - Problem Getting DataAdapter to update
Posted by Siv at 4/29/2005 12:00:00 AM
Hi,
I seem to be having a problem with a DataAdapter against an Access database.
My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable.
I then proceed to update a list to reflect that the 3 items have been
deleted only to discover that the 3 items appear, however when I cli... more >>
office interop
Posted by John at 4/29/2005 12:00:00 AM
Hi
I need to call methods from office apps from my vb.net app. Some of my
clients are still on office 2000 so to maintain compatibility I can not use
office 2003 PIA. Can I avoid the whole PIA route by using late binding?
Could someone please give me an example of using late binding for cal... more >>
Form showing then vanishing?
Posted by Adam Honek at 4/29/2005 12:00:00 AM
Hello,
I have an app that starts in sub main()
I am making a new instance of a form so it can be displayed. It compiles
fine but when
the program is run the form shows up but then a split second later closes
itself.
Why is this?
Code below:
Public Sub main()
Dim MyNewForm As New... more >>
automatically logging into a website
Posted by Brian Henry at 4/29/2005 12:00:00 AM
Is there a way I could enter a username and password in a windows form then
take that and cause it to open a website up in IE and "post" the information
to a site so i can cause that site to log in useing this information?
... more >>
Architecture advice
Posted by John at 4/29/2005 12:00:00 AM
Hi
I am designing a brand new vb.net application. My aim is to have the main
app as a shell only and all real functionality is provided by plug-in
modules. Modules are to be loaded at runtime depending on which modules are
present. Modules also need to communicate to the main app to display... more >>
How to tell what other forms are opened.
Posted by Simon Verona at 4/29/2005 12:00:00 AM
I have an application with a menu system which creates a new thread when a
menu item is selected - some of these other threads may open a form for user
interaction.
Before the menu system is closed, I want to check that no other forms are
open - on any thread. Is there a way of checking f... more >>
Create IE Toolbar
Posted by Tlink at 4/29/2005 12:00:00 AM
I have searched the Internet looking for an example on how to code a IE
custom toolbar in VB.net without success, I want to create a custom toolbar
for our internal users and external users in vb.net and am looking for any
hints/tips/suggestions/pointers and would greatly appreciate a vb.net
exa... more >>
DBCurrency
Posted by Agnes at 4/29/2005 12:00:00 AM
User A and User B modify the same record, UserB save first.
As User A save it , I will get the concurrency error.
I know I can use
Try
..... dsTable.udpate()
catch err As DbCurrency
messagebox.show("UpdateFailed ")
end try
However, How can I let User A know "User B save the same record ... more >>
XP Style controls?
Posted by Connor T at 4/29/2005 12:00:00 AM
Hi,
How do i enable XP Style controls in my VB .net application?
At the moment they look like standard old style buttons and scroll bars.
Rgds,
Dan
... more >>
Calling Win31API NetQueryDisplayInformation
Posted by Chris van den Heuvel at 4/29/2005 12:00:00 AM
I am trying to enumerate the users of a system from within my app (VB.NET)
Not finding any .Net Framework classes to do this I turned to the Win32 API
and NetQueryDisplayInformation. I can't get it to work from within VB.NET
however. I found the following KB article from MS
http://support.m... more >>
Classes and Nested Classes
Posted by Raju Joseph at 4/29/2005 12:00:00 AM
Hi All,
We are in the process of developing an N-Tier app using VB.NET. We are
extensively using classes (entity objects) in our design. Further, most of
the times, we do have to specify nested types within our entity classes.
For example
Public Class Country
ID as short
... more >>
COM Automation example
Posted by Connor T at 4/29/2005 12:00:00 AM
Hi,
I followed this example in MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_VBNETcallsVBA.asp
And i correctly get a word window with the mail merged document. However i
also get the original document displayed... I just want to view the mail
m... more >>
Toolbar
Posted by Stuart Nathan at 4/29/2005 12:00:00 AM
I am using vb.net
I have written my own usercontrol button.
I am writing a usercontrol toolbar using these buttons.
I have written a collection class (Button Collection) to contain these
buttons.
On my toolbar control I have this code:-
<DesignerSerializationVisibility(DesignerSerializationV... more >>
Newbie question on OleDbConnection
Posted by Richard Lu at 4/29/2005 12:00:00 AM
Hi all,
In VB.NET I want to use access MS MDB database, and use following code.
....
Dim myConnection As OleDbConnection
....
But the compiler warns me that 'undefined type OleDbConnection', is there
anything missing?
--
Best regards,
RL
... more >>
outlook and VB.Net
Posted by RTT at 4/29/2005 12:00:00 AM
I found this simular code:
http://www.c-sharpcorner.com/Intern...ghOutlookCB.asp and this work
partly...
with this code i can save the mail in the draft folder. But i can't get it
to display to the user. mailitem.display does not seem to work.
so now i'm searching for a way to open of focus... more >>
Try...catch...finally question
Posted by dord at 4/29/2005 12:00:00 AM
Try
DB_DataAdapter.Fill(dt)
Return dt
Catch ex As Exception
Console.WriteLine(ex.ToString)
Finally
DB_Command.Dispose()
DB_DataAdapter.Dispose()
End Try
The above code is within a function call, wi... more >>
Dynamic SQL problem
Posted by Agnes at 4/29/2005 12:00:00 AM
SELECT @sql = 'where voucherno =' + quotename(@voucherno,'''') + ' and recid
= ' + str(@recid)
As I print the above statment to check , the syntax is correct
Where voucherno ='GL123' and recid = 123
However, I got this error "Unclosed quotation mark before the character
string 'and recid = ... more >>
moving between forms
Posted by gordon at 4/29/2005 12:00:00 AM
Hi,
This will hopefully be an easy question for everyone apart from me.
I am building an app for my pocket pc - how can I move from one form to
another with a click of a button control.
thanks
doug
... more >>
|