|
Thank you James.It was very simple.I don't know why I forgot it.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
How to set bold style on a specific item?
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
well I found an example here:
http://samples.gotdotnet.com/quickstart/howto/doc/WinForms/WinFormsOwnerDrawListBox.aspx
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Thanks good. Next time maybe you should mention that it is a List Box item you were trying to set
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
But I have problems with the code!
I don't know how to get the text from the item to be drawn in the dra item method!!
Can you help me!?
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Rickard Andersson wrote:
don't know how to get the text from the item to be drawn in the dra item method!!
If it is an owner drawn listbox, you could just access the Item array for the item you are drawing.
Items[e.Index].ToString()
Where 'e.Index' is the DrawItemEventArgs item passed into the DrawItem.
Rocky Moore
|
|
|
|
|
Aah!
Just what I were looking for!
Than you!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
hi all,
I am using MSFLexGrid in in one of our projects which is being implemented in C#. I am trying to dock a ComboBox in one of the MSFlexGrid cells. The problem is that the CellWidth, CellTop, CellLeft and CellHeight properties are all returned in values which are not of the same coordinate system type as the container which holds MSFLexgrid and the combobox. So to position the combobox properly over the flexgrid i need the conversion factor between the four properties mentioned above.
e.g. CellWidth property set in my case is 845, where as the entire FLexGrid Width is somewhere around 136. Obviously a small cell of the grid cannot have width larger then the containing flexgrid. So you can see that the Flexgrid width is in terms of the space occupied by the flexgrid on the container form whereas the internal CellWidth is in terms of some other unit of measurement. How do it find a conversion factor?
regards,
vivek
|
|
|
|
|
Is this happening to anyone else? How can I fix it?
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Cathy wrote:
Is this happening to anyone else? How can I fix it?
What are you running?
beta 1? beta 2? final release?
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
The final release.
BTW I saw Monsoon Wedding last night. It was very good! (It did make me cry though. I even went out to smoke a cigarette to make it stop but not even that worked.) So I know people asked you this question before but I forgot your answer. Was it an accurate portrayal of life there?
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Cathy wrote:
BTW I saw Monsoon Wedding last night.
I never saw the movie, Cathy. What's it about? Is it based in India?
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Nish [BusterBoy] wrote:
What's it about? Is it based in India?
I don't know where it was filmed but it was about an Indian family living in India.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Cathy wrote:
was about an Indian family living in India.
What's so special about an Indian family living in India? A french family living in india or an indian family living in china, I can understand, but an indian family in india?
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
You asked was if it about India. Not exactly. But it was about this Indian family living in India.
Sorry, I'm not very good at explaining things.
If your point was that that doesn't sound like a very good topic for a movie, I would agree, but dispite that it was very good. I would have to say one of my favorites.
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Cathy wrote:
But it was about this Indian family living in India.
Sorry, I'm not very good at explaining things.
LOL
Okay. I guess, I'll go see the movie
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I had the same problem with one of the beta's; my only bad install.
Reinstalling might help, with the beta it was my only recourse
James
Simplicity Rules!
|
|
|
|
|
I uninstalled the .NET Framework and then reinstalled. That fixed it.
Thanks!
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
Hi All,
I need to implement the same functionality in one of my programs exactly what netstat does (basically look at all the active connections to/from my machine). Does anyone know where I could get the source code for netstat (a Windows version not a *nix or *BSD version). Or where I could get a class that I could use in my code. Preferably in C# but C++ or Java will do also. Thanks in advance...
-Koby
|
|
|
|
|
I beleive SysInternals may have something similar to what you are looking for w/source in C.
Regards
|
|
|
|
|
hello
how can i draw over the caption and border of a form?
i remember have seen such a thing with VC++ but can't recover it again.
I know that is looks like XP theme, but i just want to handle an annotation window (ala postit) with cool ui (consistant color)
I belueve there must exist a more lightweigth solution.
thanks
|
|
|
|
|
Yes you can by handling WM_NCPAINT, WM_NCCALCSIZE. I don't know any c# examples. But this is an example using C/C++
Look at Q99046
|
|
|
|
|
you can set the form border style to "none" and assign an background-image to your form - now you have a skinned application
of course you need to think about implementing the minimize, maximize and close buttons yourself, but you can put usual controls everywhere you want on that form...
just an idea...
:wq
|
|
|
|
|
Hi all,
I am desperately seeking a multi-Column TreeView component in C#. I need to build one for work and I really have no experience with building GUI components. I have seen a few examples in MFC but none in C#. Pretty much, I am looking for a component that mates a TreeView with a ListView. Would you happen to know where I can find an example?
Thanks in advance
|
|
|
|
|
(also call TreeListView
you can
- wrap an ActiveX control like this in CP (search TreeListView)
- use a commercial one (search VsFlexGridPro)
- Also considers it's a really cool control but consist of a lot of effort (3000 lines at least, 6 month of work)
|
|
|
|