all groups > vb.net > january 2005 > threads for sunday january 30
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
reuse function in the thread
Posted by notregister at 1/30/2005 10:47:03 PM
i have written a program using thread. i have 8 threads, each doing their own
printing.
i wish to add a restart function which allow to do printing all over again,
but i am now fcing the problem of unable to stop and reuse the threads
pls help me...... more >>
Error in loading images from database "Invalid Parameter Used"
Posted by Arnold at 1/30/2005 8:59:02 PM
I am having problem loading the image from the database. It gives this error:
"Invalid parameter used."
This is my source code:
Private abyt() As Byte
Private fo As New OpenFileDialog
Private sf As New SaveFileDialog
Dim strCn As String = "Data Source=DATABASE\BARCA;" & _
"Initial Catalog=MI... more >>
printing
Posted by notregister at 1/30/2005 7:09:02 PM
how can i open a print dialog to select one printer and store it's name in a
string, so that i can call this string anytime anywhere to set the printer
setting later on in my program...
i tried
Dim pd As New PrintDialog()
pName = pd.PrinterSetting.PrinterName
but it always get the def... more >>
time delay
Posted by notregister at 1/30/2005 6:01:01 PM
I'm to delay my program for some limited time...i try using the following
codes but it doesn't work, how do i do a time delay???
'Extracted from the main function
Timer11.Start()
Do
tCC = timeCount
Loop Until timeCount > 10000
... more >>
Pasting a BMP file into RichTextBox
Posted by Just Me at 1/30/2005 5:53:28 PM
I've seen code that copies a bmp file into a RichTextBox by first putting it
into the clipboard and then using Paste to get it into the RichtextBox. This
destroys the clipboard contents.
Is there an easy way to save the clipboard contents and then restore it?
Thanks
... more >>
Specific Back Color
Posted by Steve at 1/30/2005 3:06:01 PM
How do I set the back colour of a label using code? I can do regular
colours with something like: "label1.backcolor = drawing.color.blue".
But the color I want to set at run time using code is a custom color
"128, 255, 128". Is this possible?
... more >>
Design a layout and fill with code
Posted by Rob Willaar at 1/30/2005 1:16:06 PM
Hi All,
I like to design my printouts with a layout designer and fill the fields
with code.
It would me nice if the end user can use this designer to add a company logo
or change margins and perhaps more.
An example would be an order form with a header/ footer, customer details, a
few r... more >>
Invoke Method
Posted by S Shulman at 1/30/2005 12:54:34 PM
Hi
I am looking for a method that allows calling a method that will be executed
by the main application thread bu will be called from any thread that I
create manually.
(I think that technically it is similar to sending a message to the
program)
I tried the Invoke method but it seem to wo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
i want localize my DateTimePicker Control-Help
Posted by Reny J Joseph Thuthikattu at 1/30/2005 12:23:29 PM
Hi,
If i put a month callender on a asp.net web form and specify the culture on
the page directive like
'<%@ Page language="c#" Culture="ar-OM"%>
it will display the Month callender in arabic.
I want the same result for my windows application.Can any one tell me how
can i do that?
Reny... more >>
Help with populating a word document?
Posted by Connor T at 1/30/2005 12:20:26 PM
Hi,
I followed this guide on msdn:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_VBNETcallsVBA.asp
And have suceeded in launching word, and displaying data from my database.
However what I can't figure out is how to setup a data source in word, and
i... more >>
Adding a tab to a TabControl1 from another Form
Posted by Tom McL. at 1/30/2005 12:07:50 PM
My Program has two forms From1 and Form2.
On From1 I have a TabControl1 witch has
8 tabs currently. I would like to add a new
tab from Form2 is this possible?
I have tried the following code on Form2
with no success:
Public MyFrom1 As New From1
Private Sub btnNewTab_Click(ByVal sender As ... more >>
Could not copy temporary files to the output directory
Posted by Bob at 1/30/2005 11:51:14 AM
Cannot copy assembly '<...>' to file <...>.dll'. The process cannot access
the file because it is being used by another process.
Could not copy temporary files to the output directory.
The file '<...>.dll' cannot be copied to the run directory. The process
cannot access the file because it i... more >>
Crystal Reports - Setting up a one-to-many relationship in a crystal report
Posted by stu_bennett1 NO[at]SPAM hotmail.com at 1/30/2005 11:42:20 AM
Hi there,
I am trying to set up a Crystal Report with the following tables:
Customer Info:
-Name
-Address
-CustomerID
Orders:
-CustomerID
-Order value ($)
I have N customers and each customer has M Orders. I need to display
the Customer Info for each customer, followed by a graph ... more >>
How Can A Thread Be Resumed When Its Current State Is 96?
Posted by alundi at 1/30/2005 11:17:01 AM
Greetings:
I'd like to post this as a new thread to an article in
microsoft.public.dotnet.languages.vb originally made by nevin and replied to
by Alan Pretre back in December ("ThreadState == not in the enumeration").
Like nevin, I have a VB.NET multi-threaded application, and quite
freq... more >>
localized Georgian DateTime Picker COntrol?
Posted by Reny J Joseph Thuthikattu at 1/30/2005 10:38:46 AM
How do i localize the DateTimePicker Control/
Reny
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.851 / Virus Database: 579 - Release Date: 01/28/05
... more >>
Early binding arrays, best technique
Posted by mark at 1/30/2005 10:15:01 AM
I understand that writing programs with option strict on is the best way to
obtain stable applications. I have also found the applications to run much
faster.
Option strict on disallows late binding, so if I have an array with class
level scope and I am operating on that array at procedure ... more >>
Sorting arrays
Posted by Najm at 1/30/2005 9:44:03 AM
Hi,
How would it be possible to sort an array of objects (my_class) based on one
attribute of that class?
suppose the class' attributes are the following
my_class:
attr1 as integer
attr2 as str
Thanks
... more >>
Navigate from TabPage1 to TabPage2 Help
Posted by Capt_Ron at 1/30/2005 9:39:04 AM
Hi,
I have a TabControl that has 1 TabPages on it.
I would like to have a button on TabPage1 that goes to TabPage2. Kinda like
a Next> button.
I can get this to work using the .BringToFront and .Show methods, but the
Tab at the top doesn't change.
How do I get the tab at the top to be t... more >>
Set Focus
Posted by RedS at 1/30/2005 7:38:23 AM
Hi I have two texbox A and B. What I want to ask is how
to set if I press enter in textbox A and it set focus to
textbox B.
Thanks... more >>
Reflection article recommendation?
Posted by deepshock at 1/30/2005 2:35:32 AM
Hi, im new to programming.
Could anybody recommend me any good ariticles on reflection. I really have
some difficulties in understanding the concept
Many thanks
... more >>
Inheritance
Posted by Martin Horn at 1/30/2005 1:03:45 AM
Can someone suggest a good tutorial on inheritance of graphical classes,
i.e. VB Form Classes, or are there known issues with this, as I seem to be
running into all sorts of unexpected problems.
I apologise if this is the second time I have posted this question, but the
first time it didn't... more >>
|