|
David Stone wrote:
I think this might be similar to what you wanted:
http://www.gotdotnet.com/team/changeinfo/default.aspx[^]
I did have look there previously, but it the site wont open now. It only really listed compatiblity issues.
David Stone wrote:
Oh, and they've changed their license stuff...
http://www.gotdotnet.com/community/messageboard/Thread.aspx?id=40466 [^]
Yes I received a mail from them. The problem is as I understand, is that now private workspaces does not have that clause. I dont see the point. OK, maybe one step closer, but I still want share my code with others and allow them free use, not code for MS. The issue is actually much more complicated as my library is already bound to the license of the BASS library. Basically, by GPL'ing my library, I just let the user refer to BASS's license. So unless MS feels like dishing out some $$$ for BASS they cant use my lib to make $$$. Hell, now I'm even more confused
David Stone wrote:
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
Hi,
I want to create my control witch have collection (containing only MyControlItem objects) as a property.
(Something like ImageList with property called Images )
And I want to use Collection Editor (in design mode click on "...").
But I don't know, how to change type of objects that are added (in Collection Editor) to the collection from object to MyControlItem .
Thank you
(and i'm sorry about my english)
Tomáš Petříček
|
|
|
|
|
|
Thank you
|
|
|
|
|
I don't know how to do this
What's wrong with this:
<br />
public class DropDownItem<br />
{<br />
private string szName="";<br />
<br />
public DropDownItem() {<br />
szName="DropDownItem1";<br />
}<br />
<br />
public string Name {<br />
get {<br />
return szName;<br />
}<br />
set {<br />
szName=value;<br />
}<br />
}<br />
}<br />
<br />
public class DropDownCollection : CollectionBase <br />
{<br />
public DropDownCollection() { }<br />
<br />
public virtual void Add(DropDownItem val) {<br />
this.List.Add(val);<br />
}<br />
}
Have you got some sample source or link ?
Thank you
|
|
|
|
|
Hi
Everything seems fine
But (isnt there allways a butt?) you may need to add some extra methods to implement.
Also, implement the collection in your class as follows:
public class MyClass
{
DropDownCollection ddcol;
public MyClass()
{
ddcol = new DropDownCollection();
}
public DropDownCollection DropDownItems
{ get { return ddcol;} }
}
Nave a look at this as well, very handy for creating Strongly typed collections http://www.gotdotnet.com/userfiles/kristopher_johnson/TypedCollectionGenerator_1_3_0.zip[^]
Hope it works this time
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
|
Tomas Petricek wrote:
but I don't know why
I was thinking about this. Perhaps it needs the indexer or the GetValueAt() functions implemented.
OK I looked at the CollectionEditor's docs:
Notes to Inheritors: This editor can edit collections that have an Item property. The editor can determine the type of the collection from the Item property, if it exists. If the collection does not have this property, or if you want to provide collections of more than one type, you can override certain protected members of this class to customize the editor to support other types of collections.
Cheers
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
That's it
|
|
|
|
|
Hello everybody,
I have a strange problem with DrawString in my OnPrintPage event handler I need to print a few lines of text (field names) that is right-aligned. I'm using StringFormat to set the text alignemt and a RectangleF instance to set the coordinates. This is the code snippet:
StringFormat formatRight=new StringFormat();<br />
formatRight.Alignment=StringAlignment.Far;<br />
....<br />
RectangleF rectRight=new RectangleF(m_nMarginLeft+80,m_nMarginFields, 50, 30);<br />
e.Graphics.DrawString("Field name 1:", m_fontField, Brushes.Black, rectRight, formatRight);<br />
e.Graphics.DrawString("Field 1 value ...", m_fontGeneric, Brushes.Black, rectRight.Right, (float)(rectRight.Top-0.5));<br />
<br />
rectRight.Offset(0,m_fontGeneric.GetHeight(e.Graphics));<br />
e.Graphics.DrawString("Looong field name 2:", m_fontField, Brushes.Black, rectRight, formatRight);<br />
e.Graphics.DrawString("Field 2 value ...", m_fontGeneric, Brushes.Black, rectRight.Right, (float)(rectRight.Top-0.5));<br />
...
(Page units are milimeters) The problem is, that the fields are actually not exactly right aligned. The longer the text is, the more it is offset to the left (i.e. when printing it makes some 2 milimeters difference for field names which are twice/half the size of each other). The same thing happens when I use one multi-line string in a rectangle of larger height. I have absolutely no clue of what can be wrong? Therefore any clues are highly appreciated Am I doing something stupid or what? Thanks for any help.
Have a nice day,
Rado
|
|
|
|
|
Hi,
I can use Directory.GetLogicalDrives() method to get the drives attached to the computer but it only returns an array of strings which contain the drive letters (i.e. A:\, C:\, D:\, etc). What I want to know is how can I get the volume names and is there a way to find out the type of drive (floppy, hard drive, CD-ROM, networked) within the .NET framework. I noticed in the SDK documentation that there appears to be a VB.NET function that will get the volume names, but there doesn't appear to be one for C#.
Thanks
WJ
|
|
|
|
|
Wjousts wrote:
I noticed in the SDK documentation that there appears to be a VB.NET function that will get the volume names, but there doesn't appear to be one for C#.
MSDN is full of errors. If it is .NET any language can be used BTW what is the "VB.NET function" called?
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
I think it was the dir() function described here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctdir.asp
At least I think that was the one I was looking at earlier, it so bloody hard to find anything in MSDN and even harder to find it again. Anyway, it appears to be a function that is specific to VB and not part of the .NET framework itself. I couldn't find the same function anywhere within the .NET class library. What gives?
|
|
|
|
|
I guess you will have to use WMI then... Have a look at the System.Management namespace.
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
Okay, I think I have it figured out using WMI inspite of the documentation. Could they make it any sketcher?
|
|
|
|
|
Wjousts wrote:
Could they make it any sketcher?
Dont give them ideas!
Paul
|
|
|
|
|
I think you can only use win32 API for this:
GetVolumeInformation
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Hello,
I know the tree control is one of the build-in components inside the toolbox of VC.NET C# window form, but it seems missing in web form control toolbox. The main purpose for this is that I got a database organized like tree and require to show it in ASPX. The DataGrid control cannot fit in my requirement.
Any suggestion?
Thanks.
-mh
|
|
|
|
|
|
Does anyone know how to do:-
1. Display a single & double precision floating point value.
a) the internal representation in hexadecimal
b) the true exponent in decimal, hexadecimal and binary
c) the significand in binary
d) the associated name
|
|
|
|
|
Is this homework?
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
In VC++ i've always used the emessage WM_INITDIALOG.
In C# and dialog inherited from System.Windows.Forms.Form is this message
not attended.
I tried to do it in this way:
protected override void WndProc(ref System.Windows.Forms.Message m)<br />
{<br />
<br />
switch(m.Msg)<br />
{<br />
case WM_INITDIALOG:<br />
break;<br />
default:<br />
break;<br />
}<br />
base.WndProc( ref m);<br />
}
but it dosen't work . I mean, that with little help of my friends, i should
do it !!!
Best regards
|
|
|
|
|
Hi
Marcin wrote:
case WM_INITDIALOG:
You will need to define the constant somewhere, or if you are doing alot of WM related stuff, dump them all in an enumerration.
const int WM_INITDIALOG = 0x0110;
Cheers
[edit]
I read your message again, so all of the above mite be useless. Can you please give more info? What is the problem your experiencing? Does it just do nothing?
[/edit]
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
Im affter defined
<br />
private const int WM_INITDIALOG = 0x0110;<br />
thanks
|
|
|
|
|
I'm trying to create something similar to the start page for my application.
I'd ideally like to have a table with small icons that I can trap the
OnClick event. The contents of the table are dynamic.
One option is to make a webcontrol of sorts that I fill with HTML. Problem
is how to trap those events. Prefer to do it without IE (just another control to check for on the install).
I would like to stay away from the WinForm grid control and have something
more along the lines that looks similar to the VS.NET start page or the
Groove Welcome page
(http://www.groove.net/products/popup/workspace/welcome.html).
Any ideas?
Andrew Connell, MCDBA
IM on MSN
andrew@aconnell.com
|
|
|
|