all groups > vb.net > april 2005 > threads for friday april 1
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
Catch Title bar double click
Posted by Marty at 4/1/2005 8:59:01 PM
Hi,
I stuck on basic thing today...
How can I caych the double click event when it is done on the title bar
of a form. I just want my form to be expanded or shrinked when the user
dbl-click.
Thanks,
Marty... more >>
Imposing a delay in code execution
Posted by Marty at 4/1/2005 6:59:49 PM
Hi,
Is there a "light" way on CPU usage to delay a process in the code
execution. For example, if I want a function to wait 5 seconds before
continue executing without using a timer.
Is there a better way than using this:
While (MyCondition is true)
System.Windows.Forms.Application.DoE... more >>
Total seconds of day
Posted by Marty at 4/1/2005 5:51:59 PM
Hi
How can I get the total seconds in the current day?
I thaught that this was helping (DateTime.Now.Second), but it return
only the nb of sec in the current minute.
Regards
Marty... more >>
Serialization questions
Posted by SStory at 4/1/2005 5:29:49 PM
My app is near completed for the basic feature of version 1.0.
I have an extensive object model and I now want to persist my objects using
serialization.
I have chosen binaryformatter to serialize, and custom serialization, which
I understand will allow me the flexibility of not breaking old t... more >>
Opening a file over the internet
Posted by Adrian at 4/1/2005 5:03:01 PM
My final goal is to laod the source of an HTML page displayed at a given URL
and through a buffer to save it into a database. If that file would be local,
the code would be:
Dim fs As FileStream
Dim sPath as String = "C:\Test.htm"
fs = File.OpenRead(sPath)
... more >>
Cannot compile program written by another user on my PC
Posted by Bruce D at 4/1/2005 4:21:58 PM
I'm wondering why I cannot compile a co-workers project from my PC?
Here's the situation:
We both have WinXP.
We both have VS .NET 2003 installed.
I can open her project and make changes to the code...she can open my
project and make changes to my project...but if either of us try to compile
a... more >>
Terminating a thread
Posted by S Shulman at 4/1/2005 4:17:15 PM
Hi
I am using the Suspend method to terminate a thread but it seems that after
calling that method the IsLive property is still set to True
Is there another way to terminate a thread from the program?
Thank you in advance
Shmuel Shulman
... more >>
Code Execution Just Stops
Posted by Adrian Enders at 4/1/2005 3:41:19 PM
I have something that I have never seen before in a MS development product.
I have a pretty simple call to a network directory that looks something like
this ...
Dim dirFolder As System.IO.DirectoryInfo
dirFolder = New System.IO.DirectoryInfo(sFilePath)
Dim filFiles() As System.IO.FileInf... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
guidelines for developing an application
Posted by Vivek Sharma at 4/1/2005 3:36:41 PM
Hi There,
I am about to develop a windows application. I was wondering if there is
any set of general guidelines I should be following when developing a
windows application? Is there a preference of writing SQL queries within the
application rather than Stored Procedures?
Please help
T... more >>
Who is logged on Win2003 Server?
Posted by Brett at 4/1/2005 3:10:55 PM
In task manager of Win2003 Server, I can see who is logged on. I want to
programmatically access this information. Is there a log file or something
I can access to get it?
Thanks,
Brett
... more >>
Opening Forms.
Posted by Shawn at 4/1/2005 2:50:34 PM
I have an application that starts with a Module (Sub Main) that calls a =
few forms in order. When I close the next to last form, the last form is =
called and closes immediately. I have application.run(me) in the load =
event for that form and it opens fine if I call it at the beginning of =
th... more >>
Newbie; datagrid and Excel questions
Posted by steve at 4/1/2005 2:37:32 PM
Hi,
I have the following two questions:
1) Is there a way to customize the titles of the columns in the datagrid or
does it have to be the names coming from the db tables`columns. I want to
avoid having to show CIid for example, i prefer to rename it to Customer ID,
etc. I went over the da... more >>
Send a message to a thread
Posted by S Shulman at 4/1/2005 1:56:45 PM
Hi
Is there any method to send a message to a running thread so the thread will
perform a specific function before the program suspends it?
Thank you,
Shmuel Shulman
... more >>
Using Comm dll file in vb.net 2003 error
Posted by gv at 4/1/2005 1:43:57 PM
Hi all,
using vb.net 2003
Imported a com dll under Reference
Im trying to use one of the classes but keep getting an error:
"Object reference not set to an instance of an object."
Using it like this:
Dim getduration As String
Dim rd As BVEvent
getduration ... more >>
RTF print with pictures
Posted by millenia at 4/1/2005 1:43:03 PM
Now that I have my printer routine working with text of various fonts and
colors from an RTF box, I wonder how one would add pictures also to the
printer routine? Another quest is about to start to find that out.
Any ideas??
Fred... more >>
Save with user's documents
Posted by S Shulman at 4/1/2005 1:21:58 PM
Hi
for security reasons I want to save the temporary files that the program is
creating in the user's Documents folder. I think that there is an
abbreviation to write this path I just can't remember what is it
Thank you,
Shmuel Shulman
... more >>
two dlls + arguments
Posted by raulavi at 4/1/2005 1:13:02 PM
I need to search a string in some text files.
(any good routines out there?)
then, I created a mysearch.exe with a method that will search for a String
in a fileName.
I want "string to search" and "fileName" to be the params in mysearch.exe /
method.
Is there any way to call mysearch.e... more >>
File locking problem
Posted by Aaron Smith at 4/1/2005 12:58:20 PM
I have a small application that runs in the taskbar. All it has is a
timer that goes off every second. It looks at a list of files on a
source and then on a destination folder. If it can't find a file in the
source folder in the destination folder, it copies it into the
destination. Everything i... more >>
Binding a combo box
Posted by TS at 4/1/2005 12:55:03 PM
I configured a data adapter and generated a dataset and wrote the code to
fill the dataset with data coming from an SQL database table when my form
loads. I also changed the DataSource of a combo box to point to the
dataset.tablename and changed the DisplayMemebr to point at a column. After
... more >>
Treeview webcontrol problems with javascript
Posted by Sun at 4/1/2005 12:09:02 PM
Hi All,
I am facing a prob with treeview with check boxes
When ever a javascript funtion is associated with Treeview, I am not able to
retrice the Values of checkboxes in the tree. When no Javascipt function is
associatead, every thing works fine.
Is it something to do with viewstate??
a... more >>
SQL Error
Posted by RTT at 4/1/2005 11:59:37 AM
I keep receiving an SQL error. Not everytime but frequently. Does anyone
know what to problem could be? This is the error i recieve:
Timeout expired. The timeout period elapsed prior to obtaining a connection
from the pool. This may have occurred because all pooled connections were in
use and ... more >>
To use multiple processes or threads?
Posted by Brett at 4/1/2005 11:57:29 AM
What are the advantages/disadvantages of using one process with multiple
threads or doing the same task with multiple processes, each having one
thread?
I see using multiple threads under one process as being a problem.
Potentially, one thread may crash and could bring down the whole proces... more >>
Avoiding late binding
Posted by Andrew Morton at 4/1/2005 11:53:32 AM
(First posted to microsoft.public.dotnet.general by mistake.)
I don't know the correct terminology, but I'm sure there's a better way to
do the following with .aspx pages:-
In global.asax, I create an instance of an entity (basketCentral.vb) which
has subroutines, functions and variables whi... more >>
VB.Net Joining Paradox and SQL Server Table?
Posted by Roger at 4/1/2005 11:44:02 AM
Has anyone done this yet? I know it is easily done in Paradox, but I would
like to do it in VB.Net.
Can anyone point me in the right direction?
Thanks,
Rog
... more >>
Redistributable Files For Databases
Posted by Mark at 4/1/2005 11:31:05 AM
I am using an Access 2000 database in a VB 2003 .NET app and am unsure which
redistributable I need to send with my app so that it will be able to work
with this database format. In my conenction string, I am using the following
provider: Provider=Microsoft.Jet.OLEDB.4.0;
Do I need a speci... more >>
Label text like in mirror
Posted by Dzemo at 4/1/2005 11:25:46 AM
I need way to have text in label and look like in mirror like "ambulance" so
when i look text via mirror it print fine. Not "ecnalubma" but exactly like
in mirror.
thx
... more >>
MDI Child Form ?
Posted by kvrdev1 at 4/1/2005 10:45:03 AM
I am trying to open another MDI Child form (that is not currently open) from
within another MDI Child. There is a "Next" button that should navigate to
the next form in the series, and I cannot get this to work. With VB6, it
would have been simple, but vb.NET is completely different.
Basi... more >>
Deleting 100,000 rows
Posted by Bob Day at 4/1/2005 10:27:25 AM
I need to delete ALL rows in a dataset and currently use the method in the
code snippet below, which works fine. However, there can be 100,000 rows,
which makes the FILL, DR.Delete and UPDATE take a very long time.
Is there a way to simply delete the entire dataset and then update that to
... more >>
touch screen monitors
Posted by Bob at 4/1/2005 10:24:24 AM
I have no experience with them... can I expect that "touch" will fire
"mousedown" for any control? Or will I need special controls that understand
touchscreen input?
Bob
... more >>
Inplace Browser Activation of a VB.NET Windows Forms app????
Posted by Shane Story at 4/1/2005 9:48:13 AM
Is there a way, using a browser such as Internet Explorer, to allow a user
to, access some link, and it maybe download/open a copy of a full blown fat
client Windows Forms .NET application and run it inside the browser, like
Adobe Acrobat does?
Our application is database driven and has no ... more >>
Open Excel Error
Posted by brix_zx2 at 4/1/2005 9:41:04 AM
VB.NET 2k3 using these statements:
Dim ThisApplication As Excel.Application
ThisApplication.Workbooks.Open("C:\Program Files\97CS\SelfInspect
1.0\NewForm27.xls")
Statements look good then I debug and it gives me:
An unhandled exception of type 'System.NullReferenceExcepti... more >>
sorting files retrieved by OpenFileDialog
Posted by Randall Arnold at 4/1/2005 8:59:04 AM
I'm not happy with the order in which OpenFileDialog retrieves multiple
selected files. I want them in Date order, oldest to newest, but by default
they come in by filename, last to first.
The only property that seems relevant is Sort, and all that does is invert
the filename order. I nee... more >>
Insert Border around a picture
Posted by Aris at 4/1/2005 8:43:01 AM
I wonder if there is an easy way to plase a border around a picture.
I have already tryed with the trasparent function but the border gets upon
the picture so it hides some of it.
I have created borders with white space in the middle and with the
bmp_Frame.MakeTransparent(Color.White)
a... more >>
COM, LPT and USB to C, C++ Interface.
Posted by arnold at 4/1/2005 8:37:10 AM
hi, I didn't write programs for more then 20 years. So I got some
truble wenn I started again.
Can somebody help me ?
How do I interface a COM, LPT oder USB I/O with C, C++.
Thank you very much.
regards
arnold... more >>
Resize Tab control when windows form resizes
Posted by BrianDH at 4/1/2005 8:30:14 AM
Hi
I have a windows form and with init I have a tab control.
How can I get the tab control to resize, Min/Max as the windows form is
resized?
Thanks
... more >>
Opening Excel
Posted by brix_zx2 at 4/1/2005 8:15:02 AM
I'm using VB.NET 2k3 and I want to be able to code a button to open an
existing Excel Application. Anyone know where I can find this info or want
to tell me the lines to code? All I can find on the net is how to create new
excel apps.... more >>
Object variable or With block variable not set.
Posted by sista via DotNetMonster.com at 4/1/2005 8:07:53 AM
hi.. just wondering what does this error means?
here's my vb code:
Imports System.Web.Security
Imports System.Data
Imports System.Data.OleDb
Public Class dpitem
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Des... more >>
Read private variables between forms
Posted by dumbo at 4/1/2005 7:55:06 AM
Hello,
who gives one more shining solution to me?
My application load form "A". The form "A" by means of a push-button load
form "B" that in its turn by means of a push-button load form "C". Form "B"
contains one variable "Private"
"VarB". How I can read the value of "VarB" from form "C"? Al... more >>
datagrid scroll problem
Posted by Brian at 4/1/2005 6:17:02 AM
I've used the syncfusion method to autosize my datagrid row heights. The
problem I run into is the vertical scrollbar does not take into account the
new row heights. When I scroll to the bottom I still have several rows left
below.
Thanks... more >>
Weird Button Caption Problem
Posted by Jasper Jones at 4/1/2005 5:54:49 AM
For some reason if I set the text property of a command button to
something like "Mr & Mrs Smith" the end result is a command button with
the caption of "Mr _Mrs Smith". Does anybody know how I can include
the & sign in my command buttons? Is this a bug? Is there a work
around?
Please help,... more >>
How can I get the following functionatilty in Windows Forms ?
Posted by Al at 4/1/2005 3:31:06 AM
I have a useful framework, written in a different language (PowerBuilder),
which I'd like to replicate in .Net and Forms, but I'm unsure of how to
approach it, as the Event model is being used different between the
development environments.
Currently we have data entry screens, whose column... more >>
breakpoint in vb.net
Posted by PS2 at 4/1/2005 2:25:27 AM
Can someone pls help me to solve this problem. Thanks in advance.
After adding a breakpoint to a line of coding, the whole line turned red and
there is a big red dot next to it. However if I run the program, a question
mark appeared inside the big red dot with a message of "The breakpoint wil... more >>
Form question (Re-usuable code)
Posted by Paul at 4/1/2005 2:13:03 AM
Is there any way of making the following code into a function so that I
don't have to re-use the same code for all my buttons? I've tried to do this
with the code at the bottom of my post but I get a build error saying 'Type
FormToShow is not defined'.
Cheers,
Paul
Private WithEvents ... more >>
Role bassed security question.
Posted by Ray Cassick (Home) at 4/1/2005 12:56:13 AM
I am having a bit of a problem doing something that I was expecting to be
very straight forward. I am trying to declare a Role that needs to be
available before a specific class can be instantiated. My class code is set
up like this:
Imports System.Security
Imports System.Security.Permissi... more >>
|