|
Thanks Man,
It works...
Regards,
Rajeev
|
|
|
|
|
Hi
I am using Collection Editor in my Property Grid.When I change value of
a property in the property grid, the PropertyValueChanged event is
raised and and I am able to execute certain lines of code over
there.But in case of Collection Editor, this event is not raised and so
I am not able to reflect the changes into my code Can anyone suggest me
the reason and a possible workaround for this problem ???
|
|
|
|
|
Hi Shrivastava,
Guess the following site will help you.
http://www.codeproject.com/vb/net/CollectionEditorVB.asp
Thanks and Regards
Kodandapani.M
|
|
|
|
|
hi,
I have an application developed in MFC( VC++ 6.0 ) where the information all the parameters of CreateFont function of CFont is stored in a file. Now I am rewriting the whole application in c#. But I am not able to map all the paramters of CreateFont to the Font class of c# and to provide backward compatibility it is important. Can anyone suggest me a possible workaround for this problem ????
|
|
|
|
|
Tulika Shrivastava wrote: Can anyone suggest me a possible workaround for this problem
It would be helpful to understand the format of the file.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
hi,
The information about the font is stored in the follwing format:
1. LoByte (Point size for Font)
2. LoByte (Point size for Font)
3. LoByte(LoWord(Height))
4. HiByte(LoWord(Height))
5. LoByte(HiWord(Height))
6. HiByte(HiWord(Height))
7. LoByte(LoWord(Width))
8. HiByte(LoWord(Width))
9. LoByte(HiWord(Width))
10. HiByte(HiWord(Width))
11. LoByte(LoWord(Escapement))
12. HiByte(LoWord(Escapement))
13. LoByte(HiWord(Escapement))
14. HiByte(HiWord(Escapement))
15. LoByte(LoWord(Orientation))
16. HiByte(LoWord(Orientation))
17. LoByte(HiWord(Orientation))
18. HiByte(HiWord(Orientation))
19. LoByte(LoWord(Weight))
20. HiByte(LoWord(Weight))
21. LoByte(HiWord(Weight))
22. HiByte(HiWord(Weight))
23. Italic(byte)
24. Underline(byte)
25. StrikeOut(byte)
26. CharSet(byte)
27. OutPrecision(byte)
28. ClipPrecision(byte)
29. Quality (byte)
30. PitchAndFamily(byte)
31. Length of face name (L)
For Length L following 2 bytes will be repeated
1. LoByte (character of face name)
2. HiByte (character of face name)
Here the first inforation i.e.Point size for Font is the value which we get from the
CFontDialog::GetSize()
function and the rest of the information are the the parameters of the CFont::CreateFont( int nHeight, int nWidth, int nEscapement, int nOrientation, int nWeight, BYTE bItalic, BYTE bUnderline, BYTE cStrikeOut, BYTE nCharSet, BYTE nOutPrecision, BYTE nClipPrecision, BYTE nQuality, BYTE nPitchAndFamily, LPCTSTR lpszFacename ).
I am not able to map all these parameters to their corresponding c# values and thus cant open the application developed using the previous version( MFC ) and see the fonts properly.Any suggetions???
-- modified at 4:33 Monday 13th February, 2006
|
|
|
|
|
Hello,
I'm trying to display data from a text file "TAB" into a data set for display in the windows form. Later , I need to update any changes that the user made to the text file. Anyone knows how to do this?
I'm using C#
-- modified at 1:40 Monday 13th February, 2006
|
|
|
|
|
how u r expecting a table in a text file... in text files u can't create tables, if u want to do that means seperate the texts with seperators and then get the string from that text file do the operations
VMSSanthosh
|
|
|
|
|
Hii,,
i need to identify all the systems connected in a lan..How can i do it? and if my lan contains multiple domains then how can i find the domains programatically and find the systems under that domain??PLease help
|
|
|
|
|
Hi,
I hope you can manipulate the follwing code and get information about the Domains
using System;
using System.Net;
class GetResolveInfo
{
public static void Main(string[] argv)
{
if (argv.Length != 1)
{
Console.WriteLine("Usage: GetResolveInfo address");
return;
}
IPHostEntry iphe = Dns.Resolve(argv[0]);
Console.WriteLine("Information for {0}", argv[0]);
Console.WriteLine("Host name: {0}", iphe.HostName);
foreach(string alias in iphe.Aliases)
{
Console.WriteLine("Alias: {0}", alias);
}
foreach(IPAddress address in iphe.AddressList)
{
Console.WriteLine("Address: {0}",
address.ToString());
}
}
}
Hope this will help you
kss
|
|
|
|
|
thanks for the reply..But here i have to give the domain name externally.what i need is my program has to find all the domains in the lan.thanks in adv
|
|
|
|
|
hi,
I am working on VS 2003.I have developed an window application.
I want to know how the application can be run in
1.GUI Mode
2.CommandLine Mode -In which the application should prompt
for the input from the user.
Thanks and Regards
vinutha kempanna
|
|
|
|
|
On the class where your start up form is there is a static method called Main() . It kicks off the GUI. You need to make a descision here whether to launch the GUI or go command line. The parameters passed into the Main method are the command line parameters. If there are none then you can launch the GUI. If there are parameters then you could process them and exit.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
I'm trying to return an Ampersand as a char using this code:
<br />
case 17:<br />
return '&';<br />
However, it doesn't return anything. So I tried using the unicode escape: \u0026. That didn't return anything either.
I've changed the fonts multiple times, but for some reason the ampersand just doesn't show up. Does anyone have a solution?
|
|
|
|
|
Paradox22 wrote: it doesn't return anything.
- What is "it" in the above phrase?
- What happens when you set a breakpoint at the return statement? Is it ever reached?
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
hi
u try
{
case 17:
return '\&';
}
|
|
|
|
|
Yes, of course it's returning something. A function always returns something, and there is no reason what so ever that it couldn't return a specific character.
The problem is where you handle what the function returns.
---
b { font-weight: normal; }
|
|
|
|
|
If you're displaying this value in UI, then due to mnenonic nature of the Windows forms, the "&" will get converted into an underline for the next character. You must return "&&" for it to be displayed on labels/captions/radio-buttons/menu-text etc.
- Malhar
|
|
|
|
|
Thank you!
That was the problem. The mnenonics was screwing it up.
|
|
|
|
|
Hello all,
I have this question of which I'm not able to find any solution on the internet. So I thougt that I could find one here.
I have a device hooked up to the serial port which provides the ability to connect analog potmeters to it. Now I'm able to get these ADC values and I want to pass these to windows OS to handle them further. The intention is that a game will see this as a joystick and can use the analog potmeters as joystick axis. I've done some reading about writing a device driver, but how do I make windows see my device as a joystick? Any help is much appreciated. I'm working mainly with C#.
Danny
|
|
|
|
|
|
Well, it is not the serial part that forms any difficulties. But I have this value of a Potmeter, which I aquired through a serial device, that I want to use as a joystick axis in games. So I want to pass this value to windowsXP so that it treats this as a joystick-axis. In other words, how do I simulate a joystick is connected which I can pass this value to in windows. I hope this is more clear what I mean.
Danny
|
|
|
|
|
Ah. Once you've acquired the coordinates from the pot, set the Cursor.Position property to move the cursor.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I do not want to control the mouse-cursor via a joystick, but I want joystick input like normal when a joystick is attached to the gameport. Now I have potmeters via a serial device which I want to use as the axis. How do I make windows see my joystick axis so I can use them in a game that supports DirectInput for joystick input.
Danny
|
|
|
|
|
Hi,
Is there any way to programmatically open the Shell file/folder properties dialog for a given file? Is it possible to open this dialog to a given tab?
Thanks,
DigitalKing
|
|
|
|