|
hi,
may i know what are these code and which event should i add these code
what m indicates
pls.
With Regards
Prasad
|
|
|
|
|
C#
Visual studio 2003
Os: XP
I have put 3 gif file in a ImageList.I want to place the
picture from ImageList and put over the picturebox.
I can place the picture and display
the picture is ok.But In the ImageList all are Animated
file that file is not animated in the picture box.the probelm
is only taking the picture from the ImageList.Anybody help me.
I hope to get soon.
MaxWorld Technology Pvt
|
|
|
|
|
Hi,
Is not the better solution, but try to put the images in a label control.
|
|
|
|
|
This is my first time posting to something like this so bare with me.
I am using Visual Studio 2005 and C#. I've looked everywhere and I can't seem to find a way to do what I want. The goal is to be able to access a GIF file's color table. I'm trying to reduce the number of colors in that image and the best way to do that I am assuming is by accessing the color table and taking the top X number of colors and applying that to the image. I have the applying part working, but the problem is getting those colors to begin with. Currently I am going through the entire image(which is required for my purposes to be 2400 px by 2400 px) and finding the color of other pixel on every other line. This takes a little time and isn't quite as accurate as I would like.
Thanks!
|
|
|
|
|
hi every one..
i'm presently doing a project to fetch the information about a particular url,
if the particular site is working fine then i have to get the information lik ok, and how long it takes to load the page..
if any error is occured then i want the info of wat kind of error has occured..
so plz send me the code and hepl me... i need this to be done using the c#.net..
bye.
vijay
vijay
|
|
|
|
|
Hello,
For that you should send http get to that perticular URL and check the timmings for the http reponse from that perticulatr URL.From that you can actually retrieve the information you want.for code you have to do implement for your self , or find some similar kind of tools from the web
Regards ,
nishu
|
|
|
|
|
actually i don kw how to check the particular timing that take for the url.. how to get that info
|
|
|
|
|
Hi all,
I have been working on an application that records audio off of a soundcard. I use the winnm.dll to give my application this functionality.
The problem I am encountering is when I call WaveInOpen, it is giving me an error 4, meaning MMSYSERR_ALLOCATED. I cannot find any rhyme or reason why I am receiving this error message.
I am not doing any TAPI or modem functionality, just using functionality that I discovered on the internet for recording of sound from the soundcard. The WaveInOpen call is a standard call.
One rather funky situation that I have encountered is on the lower end soundcards, I am not receiving this error. On higher-end cards ($300+), I am receiving this error.
I am running XP, written in C# with VS2003.
Any suggestions?
|
|
|
|
|
1. easy way to get its transpose? (note: it's the datagrid i would like to get the transpose of not the datatable which is easy to do)
2. suggestions how to do the following:
the form that contains my datagrid is not wide enough to display all of the columns. i would like to be able to "freeze" a column (specifically the first one that contains the identifier for the row) so that when i scroll horizontally, the frozen column will not scroll out of view.
big TIA!
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
Hello,
I have a Parent form and a Child form. My Child Window collects some information from the user and sends them back to the Parent Window.
There are button options of "Cancle" and "Connect" on my child form. On my Parent Form I need to know what was pressed on the child form.
How can I have a button handler which monitors the events on the child form regarding the button press (Cancle or Connect) on the child form.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Use a delegate to send an event to the parent form, or if the button closes the form, use the DialogResult property to tell you what was pressed.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
To create a delegate and event you can solve the problem
Continue...
|
|
|
|
|
I am trying to create a windows service and I need to access a method from another project. The windows service project and the project containing the required method are in the same solution. Is it possible to do this? If so how would I go about it?
|
|
|
|
|
add reference of the proj which you want to use
Nana
|
|
|
|
|
and make sure that you have used teh appropriate access modifiers for the method..so that it can be accessible in other projects...
Ashvin Gunga
|
|
|
|
|
First u create a shared assembly.u can communicate with different application.
u try to create some interface u can solve the problem
Continue...
|
|
|
|
|
I am trying to display then data that is captured in months to be shown as years. For example if someone have been with us for 18 months, I want to display it as 1.5 years. I have attempted to do so by writing the code below but to no avail. Any assistance will be greatly appreciated.
public static int YearsFromMonths(int months)
{
int evenMonths = (months /12);
int remainingMonths =(months % 12);
decimal fractionOfYear = Convert.ToDecimal(((remainingMonths) * .0833)/10);
if((months % 12) == 0)
{
return evenMonths;
}
else
{
return fractionOfYear;
}
Thanks.
Skan
If you knew it would not compile why didn't you tell me?!?!?!
|
|
|
|
|
If you want to return a fraction, return a float.
float years = months/12.0F;
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
This may sound ignorant but what's the difference between Decimal and float? The couple of Apps I wrote in C++ I never heard of decimal. I guess this new with .Net. Also why the "F" after the number for float? .Net suck...........but I guess I have to adapt.
Skan
If you knew it would not compile why didn't you tell me?!?!?!
|
|
|
|
|
Also is it possible to round a float number to one deciaml place?
Skan
If you knew it would not compile why didn't you tell me?!?!?!
|
|
|
|
|
Hi,
If its 18 months you will show as 1.5 years. What if its 16 months or 15 months. How will that be displayed. This is for my information, so that I can work on it
Thanking you in Advance
Kind Regards
Pratik Shah
|
|
|
|
|
If its 15 months then it should display 1.25 and if its 16 months then should display 1.3 (not the on decimal place because in reality it 1.3333). I think if we take the radical vairable and multiply it by .83333 then round it off to on or two decimal place that should work.
Skan
If you knew it would not compile why didn't you tell me?!?!?!
|
|
|
|
|
This one line of code solved it all. Thanks guys.
return Decimal.Round(months/12M,1);
Skan
If you knew it would not compile why didn't you tell me?!?!?!
|
|
|
|
|
Is there a way for me to check if a string contains a specific character and replace it with another character? I tried calling the Replace() method, but it doesn't seem to work. I want to check if a string contains the hyphen character, like in "Mike-Donald" and replace it with an underscore character to make it "Mike_Donald". Any help would be appreciated.
|
|
|
|
|
Strings are immutable in the .NET Framework. Once created, they cannot be changed. How did you use the Replace method? Without seeing your code, it's impossible to tell you, with any certainty, what went wrong.
But, the Replace method returns a new string object. It can NOT modify the current string:
string newString = oldString.Replace(@"-", @"_");
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|