|
you can do so ... but you need to know how the sockets are working ... and which implementation of you should use (Asyncrounous or Syncronous) ... eventually you will implement your own mechanism of file transfering as I have done before ... actually its kindda fun working with sockets
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
Hi!
Can you plz send me the code, which worked for you. what ever the way was addapted. It be a great help for me. Thanking you in advance.
Regards,
|
|
|
|
|
Hi,
I have a windows form with its Background Image property set to a .jpg which is in the Resources folder.
I want to be able to change the Background Image from the App.Config file.
I've set the properties needed in the App.Config file, and I've written a bit of code in the Form Load event, which points to the correct jpg. However, when I change the image in the config file, the form still loads the original image. Is there something I should be putting into the Form Load event to load the new jpg? I've tried refresh, but that doesn't work, the code I'm using is as follows:
private void FormDisplay_Load(object sender, EventArgs e)
{
try
{
........
CustomerDisplay.Properties.Settings mySettings = new CustomerDisplay.Properties.Settings();
Image Img = Image.FromFile(mySettings.BackgroundImage);
anyone have any ideas?
Thanks,
RB
|
|
|
|
|
Assume you have a resource folder with different possible background images, and your configuration file contains a user setting BackgroundImageFile which is of type string . The setting is to hold the filepath (e.g. \Resources\picture.jpg) of the actually desired background image. Then either you use property binding (see MSDN), or you bind the image yourself in the Load-Event-Handler:
private void Form1_Load(object sender, EventArgs e)
{
try
{
this.BackgroundImage = Image.FromFile(Properties.Settings.Default.BackgroundImageFile);
}
catch (Exception ex)
{
}
}
You don't need to instantiate a new object of the settings class unless you implemented your own.
|
|
|
|
|
I am programming in C# using Visual Studio 2008 on Windows XP.
I have a TTS application that is working fine using the SpVoice class (from SpeechLib) to speak text. However, I only have a few voices to choose from... Microsoft Mike, Sam, and Mary. That's all I have access to, and I really need a few more voices. So, I have two basic questions:
1) Where can I get additional voices to use in my app? I want something like the three listed above, which seem to work no matter what the word is.
2) Is there a way for me to create new voices that I can use, complete voices like Microsoft Sam and family?
|
|
|
|
|
the interweb has tones of them...i recomend the HomeSeer voices i think they're Kate and Paul, i think you could create your own voices, but i imagine it would be very very difficult.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Wow the third question in a row that has nothing to do with C#.
AeonBlue wrote: As a new developer
As a new developer it sounds like you need to do some studying on Windows Installer[^].
Another good resource is InstallSite[^]
led mike
|
|
|
|
|
how to recognize voice (ex:recognize digits)by using neural network?!!!!
And the way to train it learn recognize digits?
|
|
|
|
|
Wave a digit in front of it and give it a sweet when it gets it right.
|
|
|
|
|
I am looking for a third part control to run a series of virtual camera's so I can analysis a series of pre-recorded video streams simultaneously. I have downloaded several virtual web cam products, some of which work well for single camera simulation and have send E-mail inquiries on purchasing a control but have only gotten back bounced e-mail messages or nothing at all.
Can anyone point me to a control for sale or even better, free?
|
|
|
|
|
I can imagine you are getting frustrated with this effort, but dude, really, this is a C# question?
led mike
|
|
|
|
|
I am looking for a control/DLL to add to my c# solution.
|
|
|
|
|
tjschilling wrote: I am looking for a control/DLL to add to my c# solution.
Oh, ok then that makes it a C# question. Good luck
led mike
|
|
|
|
|
how to fixed a mdi child form on restricted ares ... i must be move only small areas only
do you know pls reply me
laknath
|
|
|
|
|
It can be done by checking the location property of the form in the move or locationchanged event but it's nasty as the form jumps.
I wrote an article[^] about doing this with dialog forms (not children) but you may be able to adapt it.
The trick is to capture the WM_NCLBUTTONDOWN message that occurs when the title bar of the form is clicked and calculate the rectangle from that cursor point where movement is allowed - and set the cursor's clip property to that rectangle. You need to remove the clip after the mouse is released
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
laknath wrote: i must be move only small areas only
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
How do I link a keyboard shortcut to a button on a form? I have added shortcuts to menu items-that is very straightforward-but for some reason, I cannot find information on how to add the shortcut to a button.
Thanks.
|
|
|
|
|
just use Amperion ("&") before the charecter on which you want to use Keyboard Shortcut.
<br />
e.g : Button Text="Click"<br />
<br />
Just Give "&Click"
and on Runtime -> "Alt + C" will invoked Button Click Methods !!!!
|
|
|
|
|
Amperion
Ampersand[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Is there a symbol that can be used for Ctrl + C instead of Alt + C?
Thansk.
|
|
|
|
|
Abhijit's answer is correct. if you want to assign function keys, you'll have to set the Form's KeyPreview property to true and handle the Form's KeyPress or KeyDown events and call the PerformClick method (and Focus if you need it) of the button you want pressed.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
my app is at(root):
C:\Documents and Settings\wolf\My Documents\Visual Studio 2008\Projects\MyMoO\Client\bin\Debug
my resources are at:
C:\Documents and Settings\wolf\My Documents\Visual Studio 2008\Projects\MyMoO_Resources\stars
and i'm accessing them with latter path, however, if i would archive MyMoO & MyMoO_Resources and unarchive them to another path i would have to edit the path in source. I need to give it a relative path approach.
My problem is that i don't know how the relative path for the resources would look like in this particular case(URI above)
I found this helpfull link however i don't know what my relative path would look like, i might even be able to hard code it.
http://weblogs.asp.net/pwelter34/ar...de-snippet.aspx
Even so if that' the right method for me then what do i pass it as fromDirectory and toPath arguments? Root and resources paths?
I tried first hardcoding stuff like @"..\..\..\MyMoO_Resources\stars" but it didn't work.
modified on Friday, August 22, 2008 10:17 AM
|
|
|
|
|
private string GetResourcesPath()
{
string basePath = AppDomain.CurrentDomain.BaseDirectory;
string commonPath = basePath.Remove(basePath.Length - @"MyMoO\Client\bin\debug\".Length);
return (commonPath + @"MyMoO_Resources\");
}
|
|
|
|