Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 3 results for
stringformatting
- Page 1
Listbox items color change
Programming
Software Development
14 Years Ago
by Mekonom
….Bounds.Height - delta); // Console.WriteLine(e.State.ToString()); // Setup the
stringformatting
object StringFormat sf = new StringFormat(); sf.Alignment = StringAlignment.Near; // Get…
DrawItemEventArgs index is -1?
Programming
Software Development
13 Years Ago
by jackabascal
….Bounds.Y, e.Bounds.Width, e.Bounds.Height); // Setup the
stringformatting
object StringFormat sf = new StringFormat(); sf.Alignment = StringAlignment.Near; // Get…
Re: DrawItemEventArgs index is -1?
Programming
Software Development
13 Years Ago
by Geekitygeek
Have you tried checking the index before attempting to access it? In fact, if index is -1 then you can skip the whole method since you are trying to draw an item that isnt in the list so: [CODE] private void Browsers_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e) { if(e.Index<0) return; //rest of …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC