|
|
Which network adapter?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I have a doubt in datagridview. I'm retrieving data from sql to datagridview. Now my problem is that i have to edit the data and store the new data into the sql again.plz help......
Thanks in advance..
|
|
|
|
|
This[^] is how it can be done.
|
|
|
|
|
Thanks, but this code is not working i have already implemented this code. can u send me another code for saving the updated values into the database.
Thanks in advance........
|
|
|
|
|
Hi,
I have 4 different cameras located in my home.
These 4 cameras are connected to 4 channel DVR.
DVR store recorded video stream data in raw format on one attached hard disk drive.
I assign static IP address to this DVR, and DVR throws video streams on this IP address and 80 port.
Are there any ways to read video streams from this IP address and 80 port of DVR.
Regards,
Kunal.
|
|
|
|
|
My guess would be "yes".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Request you to please give me some method description of how i can do this in C# or C++/MFC.
|
|
|
|
|
first:i use two functions to install a new font int the following.
AddFontResource("d:\\tmp\\Ni7seg.ttf");
SendMessage((IntPtr)0xFFFF, WindowsMessages.WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);
second:i don't konw how to use the new font.how to set the label's text with the new font?who can give me a example?very thanks
|
|
|
|
|
A label has a font property. You can use that to set the font for the Label text.
|
|
|
|
|
i know that.i mean i have a font file(.ttf),my program first load this font to memcry.
but i don't know how to let the label to display text with the font.
i know one waw can get it.for exam:
System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
pfc.AddFontFile("d:\\tmp\\Ni7seg.ttf");
Font myFont = new Font(pfc.Families[0], 80f, FontStyle.Regular, GraphicsUnit.Point, 0);
but my program is running in wince that don't support "System.Drawing.Text.PrivateFontCollection".
so who know how to implement this through winapi.
|
|
|
|
|
If you use Reflector, you can easily dig out the internals of how PrivateFontCollection works, and wrap up your own implementation using just the bits you need. (Here's a hint - I just took a quick peek using Reflector and found that adding a new font relies on:
[DllImport("gdiplus.dll", CharSet=CharSet.Unicode, SetLastError=true, ExactSpelling=true)]
internal static extern int GdipPrivateAddMemoryFont(HandleRef fontCollection, HandleRef memory, int length);
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Not sure. See if this[^] helps. Looks somewhat similar to what you are doing.
|
|
|
|
|
My program creates a registry key under HKEY_CURRENT_USER\Software.
There is no problem creating the key or creating values underneath it.
However the framework throws an UnauthorizedAccessException when I try to delete the key using the "DeleteSubKey" method of the RegistryKey class.
The program is running as the same user that created the key.
This is on Vista SP2.
What could I be missing? I thought that a user has total access to keys underneath HKEY_CURRENT_USER?
|
|
|
|
|
Never mind!
I found out that I'm supposed to open the key with delete-access to begin with.
Thanks for reading my post.
|
|
|
|
|
hi.
I need help in this.
I have a textbox and two radiobutton.
For example, If the data in the textbox is yes, I want the yes button to be selected. If the data in the textbox is no, the no button is selected.
so far the code i have is this,
if (query returns true)
{
VMradioButton.Checked = true;
TnRradioButton.Checked = false;
}
else{
VMradioButton.Checked = false;
TnRradioButton.Checked = true;
}
please, need help. thanks
|
|
|
|
|
A) Why? Why not just use the RadioButtons?
B) If the RadioButtons are in the same group, you only need to check one, the framework will uncheck the other(s) for you.
Otherwise, I'd use the TextChanged event of the TextBox and maybe a switch .
|
|
|
|
|
thanks for the reply.
what is switch?
sorry, im a newbie.
|
|
|
|
|
google it, or go to msdn.com search keywork switch . ![Laugh | :laugh:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_laugh.gif)
|
|
|
|
|
|
Just put them in the same panel or group box and it will be automated
Natza Mitzi
|
|
|
|
|
|
Hello guys,
I needed to create a proxy by adding a web reference into my C# class library project, but there's been some issues configuring the thrid party product and the webservice they expose....so I have manually downloaded the WSDL file (its not asmx, its actually java/ibm web service).
Anyways, since i can't use the add web reference wizard from Visual studio anymore, I'd like to know how to I create a porxy (Reference.cs) file in my project using the WSDL file located on my C drive.
Can anyone point me to the right direction, I treid looking into Wsdl.exe but looks like it only support a URL and not a local path, if it does can someone point me to the right command syntax?
I'd appreciate your help.
Thanks
Tina
|
|
|
|
|
I use svcutil.exe [^] to manually generate WCF proxies.
/ravi
|
|
|
|
|
Hello Ravi, thanks for the response...but I should have mentioned, I'm using VS 2005 framework 2.0.
Can you tell me how do i do that in this environment?
Thanks
|
|
|
|