|
If know the IP Address of a system connected to my LAN, how can i determine the list of folders shared by the system.
Thanks.
|
|
|
|
|
Hi All,
I developed a component for which I use the OnMouseWheel event to implement a zoom function. Originally, my component derived from System.Windows.Forms.Form ; and everything was good.
Later, I decided i wanted to host the component inside of a SplitContainer, and since SplitContainer won't take a form, I had to convert the component to inherit Control.
Everything works fine, except that the OnMouseWheel event is never fired. If i add a handler for the form's MouseWheel event, that is fired, my my control never receives the message.
I can't see any reason for this in MSDN. Anyone got any ideas or pointers on how i can have my control receive the mouse wheel scroll messages?
Thanks
Jon
|
|
|
|
|
write following code after your initialize componenet
this.myControl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.myControl.MyControl_MouseDown);
sameer
|
|
|
|
|
thanks for the reply, but what has that got to do with my mouse wheel question?
|
|
|
|
|
Good day
I get a JIT error when i try to run my application from a network share. It throws a SecurityException. Try to catch this exception through code has been fruitless.
Is there a way to catch or guard against this error? Or is there a way around it?
Thanks
Kulile --- RSA
|
|
|
|
|
|
thanks a lot
Kulile --- RSA
|
|
|
|
|
i'm tring to scroll a picture box using the drag-drop functionality, i have a small panel and a big picturebox in it and i want the panel to scroll the piscturebox when i drag and drop it (exactly like in Acrobat reader). What code am i supose to write to meve the picture box??
and another question:
say i want to center the panell view on o specific point on the picturebox, how do i do that??
-- modified at 9:16 Monday 6th November, 2006
rzvme
|
|
|
|
|
I need to know if i can implement the edges and borders of a button or a panel or any other control. Or if there is any other library that i can download or reference to, that have special buttons (labels, panels, textfields, ...) that have special appearance but ofcourse with the same functionality of the standard controls in the VS2005.
Best Regards.
Jamil Abou Khalil
|
|
|
|
|
|
hi,
i couldn't find anything helpfull in any of these links that u provided for me.
hope if you can provide me with some souce code or sample or something like that. i will be verry greatfull to u.
Thank you
jamil abou khalil
|
|
|
|
|
If you download that Krypton Toolkit you can use the controls in that library and set their colours, borders to what you want, there are lots of samples as well.
|
|
|
|
|
hi
i want to load any avi into memoryStream by loop cycle and play it until memoryStream finish loading.
can anybody help to me how to do ?
|
|
|
|
|
hi,
i´ve got a problem with capturing a image from a webcam.
i can only capture a picture with a resolution of 640x480, but i need a resolution of 1280x1024.
the webcam support the resolution of 1280x1024.
stephan
|
|
|
|
|
Ok im trying to create a barcode program that will make barcodes using Code128A. Firstly i downloaded a free program that can already make these barcodes, just so that i can compare my codes to for checking purposes.
To cut along story short, when i generate CODE128A barcode i have to do a checksum. The checksum is done by looking up certain values of the encoded data and dividing it by 103. The checksum is the remainder of that.
So for example my value = 1265. I have to do 1265/103 and the remainder of that equals the checksum. That checksum is then encoded in the barcode. Here is my problem. When i do 1265%103 in c#, i get an answer of 29. But the program i downloaded says its 28! My barcode scanner also says its 28 as it dosen't read my code but does read the one generate by this program. What i did was make a function that allowed me to change the way it rounded the remainder. Now i can get 28.
I then made another barcode. This time i was working with the value of 1215, so its 1215/103. My program gave me a remainder of 79. Even doing 1215%103 gives me that but this barcode program says its 82!!!
How the hell did it get that?
At this point i was getting mad and confused. Then i thought i would do it on paper the old fashon way and i got this.
0011 rm82
103)1215
So i changed my function to work it out as above. My problem now is that my orginal question 1265/103 gives me 29 again. Does anyone know what i can do to fix this problem?
-- modified at 6:29 Monday 6th November, 2006
|
|
|
|
|
You have to find out how the checksum really is supposed to be calculated, as the reminder of 1265/103 is 29, not 28. There is no rounding, so there is never any doubt what the result should be.
---
b { font-weight: normal; }
|
|
|
|
|
|
can anyone please enlighten us on what relay can we use supplied by the 5DCV parallel port that can switch on an ordinary 110/220 switch, say to turn the rooms lights on without any risk?? i've been to Radio Shack yesterday and all i was able to find were relays to deal with batteries. please help.
kind regards,
muammar
|
|
|
|
|
Hi,
I think you are in wrong forum. Try hardware forums. (dont mind but here you wont get much help)
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
thanx
|
|
|
|
|
|
thanx
|
|
|
|
|
Please don't cross post. Especially not in totally unreladed forums.
---
b { font-weight: normal; }
|
|
|
|
|
Can anybody tell me how to include the Style Builder dialog box
that is include in VS2005 in my own C# source code?
I wish to make my own Cascading Style sheets with
that nice Style Builder.
Thanks
Gywox
|
|
|
|
|
Hi,
A few weeks back i was trying to implement backgroundworker. I got a good code sample but i still didn't managed to get it to work.
I messed up my whole code. Nothing was working anymore. So i had to work on my backupped project. Now i got it back as how it was again.
I was kinda hoping if someone could help me again with it. Some comments would be really appreciated (in plain English).
This is my whole class:
public partial class FrmWordDisplayer : Form
{
public FrmWordDisplayer()
{
InitializeComponent();
this.FormClosing += new FormClosingEventHandler(FrmWordDisplayer_FormClosing);
}
private void FrmWordDisplayer_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult result = MessageBox.Show("wanna close?", "Conformation", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (result == DialogResult.Yes)
{
e.Cancel = false;
this.Dispose();
}
else if (result == DialogResult.No)
{
e.Cancel = true;
}
}
public void DisplayWord()
{
Show();
FileStream smallWords = File.Open(@"smallwords.txt", FileMode.Open, FileAccess.Read);
StreamReader rdr = new StreamReader(smallWords);
Random rnd = new Random();
string sDocument = rdr.ReadToEnd();
rdr.Close();
smallWords.Close();
string[] words = sDocument.Replace('\r', ' ').Replace('\n', ' ').Split(';');
while(true)
{
int numberChosen = rnd.Next(0, words.Length - 1);
this.lblDisplayWord.Text = words[numberChosen].ToString();
this.lblDisplayWord.Update();
Application.DoEvents();
Thread.Sleep(1000);
}
}
}
This is a second Form in my project. On my fist Form i got a few buttons. One of them, represents this Form. When this button is pressed, it execute this method: public void DisplayWord() and keeps displaying words until the user closes the Form.
But the Form still hangs. Thats why i want to implement the backgroundworker. It makes it possible the be in control of the Form the whole time.
Its this peace of code that makes the Form running slow and hang:
while(true)
{
int numberChosen = rnd.Next(0, words.Length - 1);
this.lblDisplayWord.Text = words[numberChosen].ToString();
this.lblDisplayWord.Update();
Application.DoEvents();
Thread.Sleep(1000);
}
Thanks in advance!
|
|
|
|