|
Hi..,
Is any body have a knowledge like how to create a user control like that the description is below:-
[1]ComboBox : TextBox : TextBox : TextBox :
and Also in some fields like textbox in readonly mode and we can change its property at rumtime.
[1]ComboBox : TextBox : TextBox : TextBox :
and it's repeat at the runtime as user use Tab Button
Muhammad Waqas Butt
|
|
|
|
|
|
Im working on a C#2.0 grid control, its on hold for the moment as ive just started uni, but you can have the source if you want, it will be open-source when complete
The example only uses TextBoxes for editing, but new editor types can be created.
http://www.onyeyiri.co.uk/misc/Grid.zip
|
|
|
|
|
Hi~
I use the code in "pocket pc network programming". The code cannot get the body of a email.(return ""). So can any help?
Thanks
|
|
|
|
|
Hi,
By fetching the logical drive from a folder I'd like to test what file system I'm on (NTFS or FAT16/32). Have tried to figure out how that is done but so far been unable to find any useful way to achieve this in neither System.IO or using ManagementObjectSearcher (WMI).
Anyone that can hint me where to look?
|
|
|
|
|
U can obtain that using WMI.
try on www.csharphelp.com/arhives3/arhive585.html?ptintable=yes.
Is 2nd part for WMI and there u will find a full application source code - see list of logical drives in that app.
Hope this will help u .
|
|
|
|
|
Yeah, it looks promising. I'll give it a try on Monday. Have a nice weekend.
|
|
|
|
|
Hi~
The MAPI PR_ENTRYID is a structure consist of 2 members - LPBYTE lpb and ULONG cb.
I would like to know is the LPBYTE is a type of encoded string or what is it? It is an entry ID and I would like to convert whatever number or string. How to convert it ?
(p.s. LPBYTE is the pointer of byte array and the member cb is the array size)
Thanks
|
|
|
|
|
Entry ID is an array of bytes. CDO 1.21 represents it as a String.
You can convert the String to the byte array...
private static byte[] StringToByteEntryId(String strEntryId){
byte[] entryId = new byte[strEntryId.Length/2];
String strByte;
int byteIndex = 0;
for(int n=0; n<strEntryId.Length; n+=2){
strByte = strEntryId.Substring(n, 2);
entryId[byteIndex] = Convert.ToByte(strByte, 16);
byteIndex++;
}
return entryId;
... and vice versa:
private static String ByteToStringEntryId(byte[] bytes) {
StringBuilder result = new StringBuilder(bytes.Length*2);
String currentNumber;
foreach(byte b in bytes) {
currentNumber = b.ToString("X2");
result.Append(currentNumber);
}
String entryId = result.ToString();
return entryId;
}
|
|
|
|
|
Hi, all
i tested creating userControl at runtime using Activator.CreateInstance method.
in testing, I found some different thing about Load Event.
when i designed userControl without ActiveX Control (ex, WebBrowser control), Load Event occurred when it is added to other parent control.(ex : panel.Controls(userControl1))
but, when it is designed with ActiveX Control,
Load Event occurred at CreateInstance method.
I must handle Load event, but it's invoked time is different.
why Load Event Invocation Time is different?
thanks for regards!!
|
|
|
|
|
i am using the axWebbrowser in my app, and was wondering how i might jump to a location within the same page. basically, i'm trying to simulate having an that jumps to a location referenced by elsewhere in the same page. what i have done is inserted the tags into the doc's innerHtml, and later when i try to call navigate(), i dont't know what url to pass it. if it was an external page on disk, i'd just pass it "<location>/page.html#jumptohere" as the url, but since i'm working with the DOM, i dont know what to use as the url to postpend my jump locatino to.
i'm sure there's other ways, too, like jumping to an element using the dom or somethign, but i haven't found it. thanks.
|
|
|
|
|
you should be able to use simply #jumptohere as the url.
Using the DOM it would be
document.location.hash="#jumptohere"
|
|
|
|
|
sir,
i am an student of computers and i want to know about project on c language plzz help me for making the project i cannot able to choose what project i made can you help me for making that project
thanks
pranshu
|
|
|
|
|
This forum is for the C# language, not the C language - two entirely different languages built against two entirely different platforms (managed vs. unmanaged).
Try the Visual C++ forum.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
First of all welcome to CP, since you just joined, but this is the C# forum and not a C forum. You will get better responses in the right forum.
This question has been posted to many email groups and on many forums and there is no right answer. It all depends on what you want to focus on. You could focus on UI, database, algorithms, multimedia, etc. It all really depends on what you are used to and are familiar with.
Are you doing windows programming, console apps, drivers, services? Are you using MS C# or Mono? You need to help us out to get to know you too. for school projects there has to be some sort of guidelines as to what is needed. One of the first steps in being a developer is to understand your requirements. When I let my students start projects without alot of detail it was to teach them that they can ask their customer (the instructor) for more information before starting the application.
This reminds me of an interview question that I have heard of. You are told to go to the whiteboard and design a house. If you go directly to the board and draw a house you would never be hiredbecause the house was for giraffes and your design did not take that into consideration. Or the house had to withstand cold temperatures of the North Pole, but you only put an air conditioner in because you live in a warm climate and nobody has heat.
One suggestion I have to to make a small program that would help you to do something that you enjoy (like a hobby). This could be to calculate the time that you had to take in coming to the surface when deep sea diving. Or to be more geek-like, a small program that let you keep track of your high scores on every video gamethat you play. The possibilities are endless.
Steve Maier, MCSD MCAD
|
|
|
|
|
Do you mean C, or C++ ? As has been pointed out, it doesn't seem like you mean C#.
It really depends on your skill level. If you're starting, try writing some small things like calculators and so on. If you're beyond that, think of something you have a use for ( that will keep your motivation up to finish the thing ). For example, I've written several different database applications over the years to keep track of aspects of my music collection.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi all,
i am having 12 bit image data in a 2D array. How can i create a 48 bpp bitmap image using actually 12 bits only for pixel color information and the remaining 4 bits to be padded. Should i have to define any color pallete for it in the header? or can i directly enter the pixel values for each Red,Green and Blue by copying the lower byte value in the first byte and the MSB value in the second byte?..IF not...how can i create a Palette. How can i store the pixel color values for each pixel (R,G,B).
At present I am using the following command to create a 48 bpp bitmap
Bitmap b = new Bitmap(Width,Height,PixelFormat.Format48bppRgb);
how can i access the Bitmap byte by byte right from the beginning (not from the data [using Scan0]).. I mean the header.
any ideas or suggestions r appreciated...
thanks in advance,
Suman
|
|
|
|
|
why not use the Scan0? I dont think there's a better way to access the actual memory. If you dont want to lock the bitmap, you can use the Bitmap.SetPixel member function.
there are no facts, only interpretations
|
|
|
|
|
P/Invoke the native GDI APIs you need and use the HBITMAP handle form Bitmap.GetHbitmap . That handle is also the address of the entire block of memory, but to use it you'll need to pin the Bitmap into memory so the GC doesn't move it. See the GCHandle class for more information about locking the Bitmap (which can also get you the HBITMAP you can use).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
The fact that you're putting 16 bits in to specify each colour means that, by default, there is no palette information required.
Why do you need to access the header ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
HI Graus,
thanks graus... it seems u r very nice... i thought th u would be vexed by my frequent questions.
Actually wht happened is my advisor asked me to convert those LL1/LT1 format image files to BMP format and he hasn't specified the bit depth ahead..so, i thought of doin the most common 24bit BMP image. But yesyerday, he want me to use all the 12 bits in my original image to create a 48 bit BMP image (16/16/16) by using 12 bits for actual pixel information and padding the reaminin as it was int he original image.
So, now I want to convert the original image into 48 bit bmp instead of 24 bit, which i did now. But, i am thinkin tht it is not the same way as i implement 24 bit for implementing 48 bit. I thought should I have to use any color pallete to do so...
if i am worng, please let me guide into right direction. If u think there is some easy way to do this.. plz lemme know..as soon as possible...
thanks in advance,
Suman
|
|
|
|
|
Suman Somanchi wrote:
I thought should I have to use any color pallete to do so...
Definately not the case. The way a pallete works is that it stores all the colours, then the rest of the image is pallete indexes. It's done to save room, and therefore not done on images with more than 256 colours.
Did you tell your supervisor that Windows cannot display images with more than 24 bits ? You can set it up to be 32 bit, but the extra byte is ignored, it's the same colour count as 24 bit. Also, given that your image is grey scale ( isn't it ), if that is true, then you only have 256 shades of gray to choose from.
Unless you're sending your images to a very funky printer or other device that can handle the bit depth, your supervisor is ignorant. Either way, the most significant bits remain, the difference is going to be very slight.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi Graus,
yeah we have discussed on the display issues, but wht he is concerned abt is if we convert it into a 48bit Bitmap then we can reatain the original pixel data and it willbe helpful for some image processing techniques, sothat we can reduce data losses.
I am clear, wht we have thought. Anyway I successfully converted it into 48bit bitmap and displaying its histogram.
thanks for ur advices all the way,
Suman
|
|
|
|
|
Hi Graus,
I am able to produce a 48 bit bitmap... but it seems there are no white greylevels at all in it, it is showing full of greylevels and black...
How can we invert a 48 bit bitmap....do we have to do any shifting operations or can we proced using substraction doe for 24 bit bitmap.
if u have any ideas plz lemme know...
thanks in advance,
Suman
|
|
|
|
|
White is when all the bits are turned on. If you don't have any whites, your algorithm is obviously wrong, or the source image has no whites.
How are you displaying a 48 bit image ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|