|
WiB wrote:
Clean completely bin folder in both projects.
This does not help. I'll try such solution at the beging...
Even More:
- i clean all forlder bin and obj
- i clean GAC
- I clean NGEN images
- at the end i search all instances of DLLs on my comuter and delete them... (in hidden folder too)
- I rebuild control library
- register it Designers part in GAC (needed for IDE)
and nothing good happens... I still got the same problem... I spend more then three days trying to solve problem in differ menner.
Good Luck
Alex Kucherenko
|
|
|
|
|
If your control library is strongly named (sounds like it is) then by default if the runtime can't find that specific version number it will fail to load. To get around this you can include a publisher policy which tells the runtime that when version a.b.c.y (or a range of versions) is asked for to use version w.x.y.z. You can also use a configuration file which does the same thing, but requires that whoever controls the .exe put some entries in the .exe.config file.
Publisher Policy Sample[^] by Mike Woodring.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
I have a lot of description to write for each property in a property grid. My problem is that I don't see any methods to make the description pane (or help pane) higher.
Is it possible to set a new height for the description pane in a property grid ?
Thanks for your help !
Nico
|
|
|
|
|
nico193 wrote:
Is it possible to set a new height for the description pane in a property grid ?
Nope. That's a function of the IDE, not your code.
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
I don't think he means the one in the IDE. I think he means his own property grid.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Could be... *David drinks more caffeine*
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
Yes, I mean the description pane in a propertygrid (windows Forms).
|
|
|
|
|
|
Nobody ?
|
|
|
|
|
How do i make the scrollbar stay at the bottom of the page. Iam developing an application in .net in where im displaying a datalist in a window and I am adding items to the datalist at runtime. Its size goes on increasing and i want the scroll for for this to remain at the bottom so that im able to see the last item entered.
|
|
|
|
|
Without knowing exactly how you're displaying things, the general technique for this is to write code that selects the last item in the control (thus moving the view to make it visible). If that is out of the question, you could record the current selection first, then move back to that one after making the last item visible.
Certain types of controls behave better in this respect. Check to see which controls could possibly display the data you want, maybe one of them has a method that handles this easily.
John
|
|
|
|
|
Hi
You can create a Panel and set its Dock property to DockStyle.Fill (to fill the form) and move your objects (e.g Datalist ) to the panel (except the statusbar)
Unfortunately, you can't handle the Scroll event because Panel doesn't have this event.
|
|
|
|
|
How to in C# detect Dial-up connection ? and how to recognize dial-up number?
How detect that some program try use Dial-up?
Greetings
S_W
|
|
|
|
|
Can someone advise me on how to convert hex conversion in C#? I am currently trying to get the string in a textbox, say "20" and convert it to its hex form 14, and then display it onto another textbox.
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
From help (I did something similar to this) :
Console.Write("{0:X}", 250);
I'm not sure if you can do that directly to a string or if you need to use a StringBuffer class like I did.
This is some code how I retreived color codes in individual colors (in bytes) and converted them to hex strings.
<br />
StringBuilder oBuffer = new StringBuilder();<br />
string strColorCode = "";<br />
byte byRed = 0;<br />
byte byGreen = 0;<br />
byte byBlue = 0;<br />
<br />
<br />
byRed = oColor.R;<br />
byGreen = oColor.G;<br />
byBlue = oColor.B;<br />
<br />
strColorCode = "{0:x2}{1:x2}{2:x2}";<br />
oBuffer.AppendFormat(strColorCode, byRed, byGreen, byBlue);<br />
<br />
return oBuffer.ToString();<br />
There are only 10 types of people in this world....those that understand binary, and those that do not.
|
|
|
|
|
I just found out how to do the conversion, thanks to your format string :
strColorCode = "{0:x2}{1:x2}{2:x2}";
This is what i did :
short sh = System.Convert.ToInt16(tbTextBox.Text, 10);<br />
tbTextBox2.Text = String.Format("{0:x2}", sh);
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
[using SWF;]
int i = 20;
txtBox1.Text = i.ToString();
txtBox2.Text = i.ToString("x");
Greets,
Daniel
|
|
|
|
|
Thanks... This seems like a more straight forward method
Weiye, Chen
When pursuing your dreams, don't forget to enjoy your life...
|
|
|
|
|
How do I emulate a union structure in C#?
|
|
|
|
|
Anonymous wrote:
How do I emulate a union structure in C#?
Note the attributes StructLayout and FieldOffset .
[StructLayout(LayoutKind.Explicit)]
public struct SampleUnion
{
[FieldOffset(0)] public bool Flag1;
[FieldOffset(1)] public bool Flag2;
[FieldOffset(2)] public bool Flag3;
[FieldOffset(3)] public bool Flag4;
[FieldOffset(0)] public long Composite;
}
-Nick Parker
|
|
|
|
|
Thanks. So for the BE_CONFIG union in the LAME api I should just start every inner struct at FieldOffset(0)?
|
|
|
|
|
Shouldn't the Composite member be of type Int32 (int )? Long s in C# are aliases to Int64 s.
[edit] I guess you could use a long if you'd like because this is a union (also only a sample ).Just the first four bytes of the long will be used when dealing with the booleans.
Also remember that these unions in C# are not CLS compliant. [/edit]
-Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Nathan Blomquist wrote:
Shouldn't the Composite member be of type Int32 (int)? Longs in C# are aliases to Int64s.
I suppose it would be a "best programming practice", however because in C# a long maps to System.Int64 I am o.k.
-Nick Parker
|
|
|
|
|
Yeah what exactly does cls compliant really mean? Is that the same as a Microsoft Certified Professional?
|
|
|
|
|
grv575 wrote:
what exactly does cls compliant really mean?
It means that the publicly exposed interface for the member/type/assembly follows the Common Language Specification (CLS).
Some things that aren't CLS Complaint: Unsigned integer types (C#), varying public items by changing just the case of the name (like public int Foo and public int foo ).
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|