|
hi! here's my problem...
i'm developing a service which monitors some servers for it resources...so, i was thinking in using a timer for the monitoring process...
reading some arcticles, i've noticed that it's much better to implement the timer with the system.threading.timer class...
so, as there will be many resources being monitored, i was thinking in using threads for the implementation...
my question is? which is the relation (if any) between the threadpool class and the system.threading.timer class? i don't get the idea why it isn't recommended to use a simple timer with the threadpool class...
if anyone can help me on this i'll be very thankfull!
|
|
|
|
|
hello, i want to know how to make a blinking for (highlited) like msn! when the client calls you the window that is minimized will blink orange! how can i do this?
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi,
I have this wierd requirement from my boss which requires me to add around 8000 (8 thousand) textboxes to a panel.
This i am doing at runtime ..ofcourse using a while loop..but it is horrendous slow..
Is there a way out ????
Pls help.
Thnx.
|
|
|
|
|
Swammingo wrote: which requires me to add around 8000 (8 thousand) textboxes to a panel.
No, you most definately do NOT want to do this, EVER! This will bog your app down so badly as to make it unusable and will quite possibly run Windows out of handle resources to boot. Also, just repainting this window will take about a week and a half.
What on this earth requires you to put 8,000 controls on a form???
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thnx a lot for reply.
My boss wants me to create this desktop app in vb.net which requires a huge amount of textboxes.
I had a meeting with him yesterday ....and his idea of this wierd code is to create a excel like application ...well a very small excel like app.
He wants to have this form which looks like an excel sheet.
Is there any other way by which i can achieve this ...(apart from using excel objects ..hehe
I hope you get the basic idea ...
any help is really appreciable.
thnx.
Swammingo.
|
|
|
|
|
You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database.
Chatura Dilan
|
|
|
|
|
Chatura Dilan wrote: You have a fantastic boss. Use 20 - 30 TextBoxes, ScrollBars and a database.
C'mon ....any suggestions please ........;(
Thnx...
|
|
|
|
|
|
How to get text in combo box thru coding?? As when form opens in edit mode, combo box does not show its selected value. Plz help.
Gurpreet
|
|
|
|
|
rahsi wrote: As when form opens in edit mode
What?? Forms in VB.NET don't open in any mode, except modal or not. Is this an Access form?
rahsi wrote: combo box does not show its selected value
If the form just opened, no it won't. There is no selected value unless your code sets it first. What are you trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I have created a prompts table with an promptID, English and French columns. On my form will be a button that when clicked, whill change the text on my lable from english to french.
What would be the best method for this task? Is there anything in visual studio, Vb.net that can automate this?
Thank you,
Rashar
|
|
|
|
|
You might want to read up on Localization[^] first.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi there
when I try to run my Vb.Net application into the client site I get an error whenever I run any report and the error is query engine error,
please help me...I have nothing wrong the datatables nor datasets then why does the problem appear
thanks
|
|
|
|
|
It would appear that your database isn't where the report expects it to be. Are you using an Access database? Did you hard-code a path to this database that exists on your development machine, but doesn't exist on your clients?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i am using sql database and the path is correct
|
|
|
|
|
|
try by using SaveFileDialog and OpenFileDialog
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
The image does not contain information on from what file it was loaded.
---
b { font-weight: normal; }
|
|
|
|
|
campbells wrote: when i see the debugging process most value bring it was 0 or null....
How do you mean ? You're value for num is always 0 ?
campbells wrote: sory to said that i cant use the "for loop" cause i cant use too much array where my system cannot handle with it so used in the old method.
Rubbish. This is just a pile of rubbish, sorry.
The core problem is that the code is a mess. Hard to read, hard to maintain, if a single extra line ends up in the text file, it will all fall over. Your data should be comma delimited so that one line of text is one record, that would make things a lot better than they are now. Then you should be using string.split to turn that into an array of values, and a switch statement to read the data based on the first value.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ohh~ i solve the problem!! is nothing wrong with my code but is my label set to visible false when my form load so i cant see anything hahahah :P
|
|
|
|
|
i hav installed VS.NET2005 Team suite last week.When i goto MSDN help is shows followng error window message:
Error: Could not complete the operation due to error 80041001
Im using XP-SP2,IE7.
plz help, thanks in advance
-- modified at 8:43 Monday 27th March, 2006
|
|
|
|
|
Well, two things. First, IE7 is in Beta and is not garanteed to work with the Help System. So go back to IE6 before you continue to troublshoot this problem. Second, IIRC, 80041001 is akin to "File not found" or some other reason that a file could not be opened. This could be permissions issues, path not found, a bad installation (try reinstalling the MSDN library), corrupted file, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I have a little app I'm writing to crop images and so far it works - except that once I've created a cropped version of my original image (as a Bitmap or Graphics object) I can't then convert it into an Image object to reshow in my PictureBox control.
Some background: first I load the jpeg image into an Image object then assign it to the PictureBox. I then use the MouseUp, MouseDrag and MouseDown events to allow the user to draw a rectangle on the PictureBox.... when the user clicks a crop button I do the code below:
Dim x, y, w, h As Single
'These variables are from the mouse positions caught with MouseUp and MouseDown
'on the PictureBox control which is showing the image loaded from a JPG file.
'They define the rectangle the user has drawn on the Image in the PictureBox.
x = intMouseXStart
y = intMouseYStart
x2 = intMouseXEnd
y2 = intMouseYEnd
w = intMouseXEnd - intMouseXStart
h = intMouseYEnd - intMouseYStart
'Get the source bitmap from the PictureBox control.
Dim bm_source As New Bitmap(picImage.Image)
' Create parallelogram for extracting original image.
Dim ulCorner1 As New PointF(x, y)
Dim urCorner1 As New PointF(x2, y)
Dim llCorner1 As New PointF(x, y2)
Dim destPara1 As PointF() = {ulCorner1, urCorner1, llCorner1}
'Create rectangle as the size of the source area of the image to crop
Dim srcRect As New RectangleF(x, y, w, h)
'Clear the PictureBox and display the cropped image
Dim g As Graphics = Graphics.FromHwnd(picImage.Handle)
g.Clear(picImage.BackColor)
g.DrawImage(bm_source, destPara1, srcRect, GraphicsUnit.Pixel)
So, basically I want to take what the last line above does and create an Image object out of it so I can then reassign it to the PictureBox control and do other stuff with it... I've tried all sorts of things but can't work it out - any help would be appreciated.
TIA...
Mike
-- modified at 5:32 Monday 27th March, 2006
|
|
|
|
|
Why do you wan't to create an image object to assign to the control?
You are drawing on the image object in the control, so creating a new image object would mean that you simply duplicate the image in the control and replace the image in the control with the identical copy of it. Nothing is accomplished but a waste of resources...
---
b { font-weight: normal; }
|
|
|
|
|
I guess you're right - problem is my little crop app is part of a bigger app where I have quite a few tabs and dialogs where I want to use the same Image object so I was hoping to convert the final graphics object back into an Image for that reason. Guess I'll just have to either save it to a temp file and load it back in (not efficient!) or just change my whole app to use a graphics object rather than an Image... bit of a nuisance though.
The thing is that you can create a Bitmap or Graphics object from an Image object but you don't seem to be able to go the other way... that's what I really wanted to know.
Cheers,
Mike
|
|
|
|