|
Those category names come from the System.ComponentModel.CategoryAttribute that decorate the public properties of the object being displayed in the property grid. Generally, the "Misc" category holds those properties that don't have this attribute. If you are displaying an object of your own making, then you need to add the attribute, which will move them out of "Misc". If you want to "move" other (inherited) properties, you need to override or hide them and change the attribute accordingly.
To expand categories you can do this:
PropertyGrid pg = new PropertyGrid();
pg.ExpandAllGridItems();
pg.CollapseAllGridItems();
GridItem gi = pg.SelectedGridItem;
if (gi.GridItemType == GridItemType.Category)
{
gi.Expanded = true;
}
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Hi all,
In my web application, I tried to execute the Oracle stored procedure using the ODBC.
But it is giving an error like "Invalid SQL Statement".
Can any one tell me why and help me to get rid of this?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Is suspect the answer is in the message "error like Invalid SQL Statement" does indicate to me that your sql statement is not valid. Pull it out and see if it runs as PL/SQL
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Dear Bob,
Actually the same is working with Oracle client and the command is of stored procedure type.
Due to some other issues I am unable to use the Oracle client and I am trying to use ODBC and it is throwing this error.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Well, I suspect if you stop the code in debug and actually extract what is being passed in ther will be something that is different, otherwise it would work.
Give it a try and see
Bob
Ashfield Consultants Ltd
|
|
|
|
|
can someone tell me how to save a file to image file..
i want to save the fax receive from the modem to an image file to be save in the database..
is that possible??
even to convert it to msword format???
|
|
|
|
|
I guess you read the fax into a stream. Try this:
<br />
Bitmap bmp = (Bitmap)Image.FromStream(myStream);<br />
bmp.Save(myFileName, myFormat);<br />
Then you can add the file name to your database or convert the image into an appropriate BLOB format.
ginji20 wrote: even to convert it to msword format?
Ms Word format is for text documents. A Word document can contain images, but an image itself cannot be an Word document. I guess you want to create a document with an image on the first page. You'll find everything you need on MSDN. Look for MS Word Object Model and COM automation.
This statement is false.
|
|
|
|
|
Explain List[structure] in c#.net?
How to assign and retrieve values from the List[structure]?
shall you help me?
|
|
|
|
|
Most of your questions posted so far have started 'Explain '
Why not buy a book, read taht, try some code and then ask questions when it doesn't work. I seems all yuo are looking for is someone to answer your homework questions.
Buy a book or use Google, don't be so damn lazy.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
If you mean List<t> try List.Remove, List.RemoveAt, List.Add
|
|
|
|
|
Explain List<structure>? How to assign and retrive values from List<structure>
|
|
|
|
|
list is ordered collection and u can retrive value based on index
rahul
|
|
|
|
|
First of all Try Google
|
|
|
|
|
alternate codes for Close();
|
|
|
|
|
u may try Dispose();
rahul
|
|
|
|
|
mention some subject while posting.
use dispose.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
ok,, i mean when closing the form.. exitng from the form...
|
|
|
|
|
first of all read this[^]
second of all go buy a beginners book...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Never Put Subject like this
|
|
|
|
|
Hi! I want to know how is possible to pop-up calendar when the drop down control is expanded. Thx ahead
|
|
|
|
|
on the click event of combo box u can open ur calendar
rahul
|
|
|
|
|
can you give me some example...cause I tried like this:
private void comboBoxChooseOrderDate_DropDown(object sender, EventArgs e)
{
MonthCalendar calendar = new MonthCalendar();
calendar.Show();
}
and it doesn't want to popup, any help? Thanks
|
|
|
|
|
private void comboBoxChooseOrderDate_OnClick(object sender, EventArgs e)
{
MonthCalendar calendar = new MonthCalendar();
calendar.Show();
}
rahul
|
|
|
|
|
|
Use Javascript for that.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|