|
i want some code exercises because i haven't been programming for 3months know !!!where can i get them??????????????????//
|
|
|
|
|
just go through some exercises of walk through in MSDN
and u then can wrap up some articles to post here .... ;(
<< >>
|
|
|
|
|
|
Just read the questions in this forum and code up answers. :->
Matt Gerrans
|
|
|
|
|
True enough. thats how i started learning
Aim small, miss small...
|
|
|
|
|
hi all !
How to check all records in all pages across grid with a single click..and those check boxes has to maintain the state in paging of grid..
kris
|
|
|
|
|
Hi,
How can I check an instance of class A is implementing an interface B in program ?
Thanks
|
|
|
|
|
if (MyAObject is B) ...
---
b { font-weight: normal; }
|
|
|
|
|
i've this string: "abcdefgh"
i want to create a crypting key for the cryptostream, i've tryed ASCII.getBytes("abcdefgh") bu t get error!
|
|
|
|
|
What kind of error?
That is a very weak key to use for cryptography. Use the crypto provider to create a real key instead.
---
b { font-weight: normal; }
|
|
|
|
|
in this way i get a byte array.
so if i need to give the file to my friend i need to tell him the key.
How if is it just a byte array?
|
|
|
|
|
You can use any representation of the byte data you like. One obvious would be the hexadecimal representation of each byte.
---
b { font-weight: normal; }
|
|
|
|
|
Hello, I need help with the following problem, please.
I am using C# and DirectX 9 to show MPEG-2 video files within a Windows form. Unfortunatelly I often do not get the correct duration of the file when checking the "duration" property, e.g. a 18 second clip assumes to be only 4 seconds long. So all these videos stop playing too early.
Also, it is not possible to jump to certain positions in the video. If I add a new value (e.g. "AverageFrameLength") to the "CurrentPosition" the displayed video proceeds only every n-th frame and skips all frames in between.
I did not have these problems with a MPEG-1 video, for example. With those, everything worked fine.
Does anyone have an idea, why the durations are gathered incorrectly and how I handle this? I searched the whole web for a solution, but it seems nobody else has ever had a problem like this.
It seems that there are two things that seem have an influence on this situation.
1.) If these video files are converted to use a constant bit rate the duration property seems to get at least get the correct value. Moving from frame to frame still does not work reliably. But as conversion of all files increases their sizes significantly, this ist not an option anyway.
2.) Also, this does not work with every MPEG-2 codec. To receive correct duration values, I first needed to remove the "Moonlight Elecard" MPEG-2 Codec from my system. After that it used another codec automatically. In my case this is the "MPEG-2 Demultiplexer" (Which - I guess - belongs to the DirectX installtion).
Of course, I cannot know what codecs might be installed on a destination system for my application, and even worse, I cannot simply remove a codec from the system just because my app does not like it...
Any ideas?
|
|
|
|
|
Hello Sensei,
i had similar problems with divx files. It it figures out that the problem depends on the codec configuration. Perhaps this leads you forward
Greets Snow
|
|
|
|
|
I set Format property of DefaultCellStyle property of an instance of DataGridViewTextBoxColumn to N2 But it doesnt work.
N2 means Numeric 2 digit number (1,254.56 etc)
I aim to create a numeric DataGridViewTextBoxColumn . What can i do else?
|
|
|
|
|
How can i check which users are logged into the network?
marcelw
-- modified at 6:16 Thursday 20th October, 2005
|
|
|
|
|
User don't login to a network, they login to servers. What kind of servers? And from where do you want to determine this information? Client-side or server-side?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Basically I want to check if the user is at the office, logged in at his desk. It will need to be an application running on one machine.
marcelw
|
|
|
|
|
That depends on the server your running this from. Are you talking about checking this in a login script, a web service, web application, insert situation here, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
My problem is as below,
1. I open a window form in .NET
2. place a panel A on the form, where the panel's paint method was overrided
3. on the panel A, I placed a tab control
4. on the tab control, I placed another panel B with overrided paint method.
And I repaint all the two panels A and B (by calling its Refresh() method), but only get the panel A refresh, while panel B has no effect.
Why ???? I have tried method like Update(), invalidate(), validate(),
but all have no effect on panel B.
Thanks
|
|
|
|
|
Hi,
I am using System.IP.Ports namespace to connect to modem from my application.
If I connect to modem(55.6) at 115200 I get message from modem, otherwise(greater or less that 115200) not getting any message from modem.
Can anyone tell me what all setting need to be done using the API for it to accept the connection at other speeds.
Thanks
|
|
|
|
|
hi
I want the C # application that I can receive faxes through the modem system.
But I do not know how to do this. Please help me
email : javad.asadi@yahoo.com
|
|
|
|
|
Hi,
I have the following function that checks a database field for DBNull.Value. If it contains DBNull.Value, the it should return "", otherwise the string.
This is my calling function (objCustomer is an instance of the Customer class):
objCustomer.AddressLine1 = Globals.CheckStringForDBNulls(objDr["Address1"]);
This is my static function:
public static string CheckStringForDBNulls(string strCheckString)
{
if(strCheckString.Trim() == DBNull.Value)
return "";
else
return strCheckString.Trim();
}
Something tells me that my parameter string strCheckString is of the wrong type.
Please can someone help me correct this error/problem that I am having.
Regards.
-- modified at 5:45 Thursday 20th October, 2005
|
|
|
|
|
ma se wrote: objCustomer.AddressLine1 = Globals.CheckStringForDBNulls(objDr["Address1"]);
Try This
ma se wrote: objCustomer.AddressLine1 = Globals.CheckStringForDBNulls(objDr["Address1"].ToString());
======================
ma se wrote: if(strCheckString.Trim() == DBNull.Value)
return "";
else
return strCheckString.Trim();
TRY THIS
ma se wrote: if(Convert.IsDBNull(strCheckString.Trim()))
return "";
else
return strCheckString.Trim();
AMJ (With "Z" Factor)
|
|
|
|
|