|
Maximilien wrote:
job posting that look for experienced C# and other .net framework experience
- either it's a fake aimed to tease you. I happen to have been seduced by this approach, and in the end, I am still asked to use VB, not .NET. F*** the employers.
- or the required skills have been randomly filled by a HR person who doesn't know a sh*t about IT.
- or it's a way to make sure that you can start developing C#-stuff the first day you enter the job.
.NET is out since Feb 2002. The first beta was out 1 year before.
.NET is still in an evangelization phasis. 4/5 years are required before it becomes a massive standard. Besides that, I can see the point of using .NET for ASP.NET portals, but honestly I don't see the point with desktop apps : slow, memory hungry, limited in features since you end up doing interop for practically anything (like the Declare statement in VB), etc.
|
|
|
|
|
I got my first glimpse of .NET and VS.NET in July 2000 at the TechEd in Amsterdam. I think they sent the first useable .NET tools to me about September/October that year. I remember writing a few things in C# before the end of 2000.
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
I've been using C# off and on since the Summer of 2000. Of course, everything changed with each new beta release, but that's besides the point.
On a related note, I was looking for a job last year and the employer all but called me a liar when I listed my C#/.NET experience at around one year (so I'm modest). They said "how could you have that kind of experience when Microsoft just released the product last month (this was in 2002)". I explained about the beta period but I don't think they believed me.
I guess I should throw away all the code I wrote from 2000 to 2002 huh? Since C# didn't really exists before 2002 - right?
|
|
|
|
|
seems, that nobody can help me
i have 3 main problems, i just cant solve, although they sound easy:
1. I cant change the icon of the addin button.(i always have the default button, a smiley)
(sounds like a easy problem,he? TRY IT!!!,change it to a custom icon!)
2. I cant assign a default shortcut, i tried the following but it didnt worked(it compiles, but it does not assign the key)
//in the onconnection method:
SAFEARRAY arrSafe;
arrSafe.fFeatures =FADF_BSTR;
arrSafe.cbElements =35; //maby not necessary
arrSafe.cDims = 1; //maby not necessary
BSTR bstrShortCut =A2BSTR("Global::alt-s");
arrSafe.pvData = bstrShortCut;
VARIANT var1;
var1.vt = VT_ARRAY;
var1.parray = &arrSafe;
pCreatedCommand->put_Bindings(var1);
3. I would like to install my addins(the buttons) by default in a menu next to "Tools" which is called "MyAddins". how can i do this??? (i can manually make a new menu (Tools->customize,etc..) and then install my addin in there automatically (IfFailGoCheck(pCommandBars->get_Item(CComVariant(L"MyAddins"), &pMenuBarCommandBar), pMenuBarCommandBar);
but i cant make this "MyAddins" Menue automatically by code!!
THE FIRST DUDE, WHICH CAN HELP ME IN ANY OF THE 3 ISSUES (ISSUE 2. IS THE EASYEST, I GUESS)
WILL BE NOMINATED FOR THE OFFICAL "ADDIN-MASTER OF THE YEAR AWARD"
|
|
|
|
|
Look at sources of published addo-on's on codeproject....
Code Teamplate Add-on can solve 2 issues to you...
Also look at SmartHelp addon sources... many good ideas and finished classes ready to use...
Good Luck
Alex Kucherenko
|
|
|
|
|
Hello EveryBody,
I want to develop a computational grid using C# & .NET.I came across components such as Xceed grid,dbnetgrid etc.,for developing data grids.But i want to develop a computational grid.Is there any s/w or library available ?I want to do a project in it.So please help me in this regard.
Thank you all for your response,
With regards,
Shankara Raman S
|
|
|
|
|
Hello,
How to validate a xml document against a dtd when no dtd reference is actually in the xml document.
Thanks,
Chito
|
|
|
|
|
<sarcasm> Post of the week. </sarcasm>
|
|
|
|
|
I will let you find out the details but very simply you use the XML classes in the .NET Framework. Load up your XML document and there is a property/method to assign a DTD/XSD to the XML file and then you can validate it.
Go through those classes. They have virtually everything you will need and all very self explanatory.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
DavidW wrote:
You are totally mad. Nice.
|
|
|
|
|
Dear experts,
Does anyone know how to get access to the text box control that is displayed underneath icons on the Windows desktop. I want to re-use this text box in my own application as it has the "growth" behaviour that I urgently need. I need a text box that will grow in height as more text is added to it.
PLEASE HELP ME! Thanks in advance for your assistance.
Benjamin
|
|
|
|
|
Hi,
Why don't you use the standard textbox and at every keypress check the size of the text using the MeasureText method and size the textbox appropriatly.
It works for me...
Greets,
Poolbeer
Speak Out! Use the Source, Luke!
(Dr. GUI .NET #5)
|
|
|
|
|
Hi Poolbeer (nice name ,
I've actually tried this approach. Maybe if I could go over my thinking:
(1) Handle the key press event
(2) Get the key value and check for special keys like delete, backspace, enter and take the appropriate action based on this (i.e. either add the normal char, delete a char etc..)
(3) Modify the Text value accordingly
(4) Indicate the event has been handled.
(5) Get the value of Text and use Graphics.MeasureString to compare to the width of the TextBox area (available through TextBox.Size).
(6) If the width of the string > width of the client area, then increment the height of the TextBox by the the FontHeight.
(7) Reposition the cursor within the textbox.
(8) Invalidate the control to repaint itself.
Is this the kind of approach? (i'm no expert). How do settings like WordWrap and the likes work into your TextBox solution? Finally, how to you handle the ability to get and set Text into your box especially if the Text has been modified to create the desired output.
Sorry for the abudance of questions but I've been working on this for a while and you are the only help I've had!
Benjamin
|
|
|
|
|
Hi,
If you use the StringFormat Class and pass that along with the other stuff into MeasureString you'll get the size of the text back.
Then if you do the DrawString using the same StringFormat properties the text will be drawn exactly like you want it. (ie wrapping)
Using the wordwrap property of the textbox you can get the same look as the Graphics.DrawString method using the Formatting.
Just play a little with those classes and you'll see it'll work.
the rectangle you pass into the MeasureString method should be the size of the textbox minus the border width (usually 2 px).
Good Luck.
Poolbeer
Speak Out! Use the Source, Luke!
(Dr. GUI .NET #5)
|
|
|
|
|
Could you elaborate a little more on the rectangle that you pass into the MeasureString method? I am trying to determine the required dimensions (ie. size) so what dimensions to I pass into the method?
Appreciate your ongoing assistance.
Cheers,
Benjamin
|
|
|
|
|
Actually I think I've worked out what you meant about the layout rectangle. Cool.
However, my main problem is actually determining the layout rectangle which is equivalent to the behaviour of the TextBox. You mentioned taking into account the textbox with minus the border etc. however I cannot seem to get a layout rectangle that ensures the behaviour of the TextBox is replicated exactly.
How did you solve this problem? Is your solution resolution independent etc..
Cheers,
Benjamin
|
|
|
|
|
txtDescription - is a TextBox control
<br />
private const int DEF_HEIGHT = 40;<br />
<br />
<br />
<br />
using( Bitmap bmp = new Bitmap( 1, 1 ) )<br />
{<br />
using( Graphics g = Graphics.FromImage( bmp ) )<br />
{<br />
int iHeight = 0;<br />
<br />
SizeF size = g.MeasureString( <br />
string.Join( "\r\n", txtDescription.Lines ) + "\r\nW", <br />
txtDescription.Font, <br />
txtDescription.Width );<br />
<br />
iHeight += (int)( size.Height + 0.5 );<br />
<br />
if( iHeight > 200 )<br />
{<br />
txtDescription.ScrollBars = ScrollBars.Vertical;<br />
iHeight = 200;<br />
}<br />
else<br />
{<br />
txtDescription.ScrollBars = ScrollBars.None;<br />
}<br />
<br />
if( iHeight < DEF_HEIGHT ) iHeight = DEF_HEIGHT;<br />
<br />
this.Height = iHeight;<br />
}<br />
}<br />
}<br />
<br />
Good Luck
Alex Kucherenko
|
|
|
|
|
Hi,
I have readen that the compact framework does not support GDI+, ... then to load a JPG I need to use strange, fancy activeX controls from third parties ?
Thanks, greetings
Braulio
|
|
|
|
|
Hi,
I need to register a pluggable protocol for Internet Explorer like
res://C:/windows/googletoolbar.dll#options
My problem or requirement is as follows:
(*)Can I ask my user to install a DLL and call its method like the one above? (Will POST or GET to that would work?)
(*)If I want to register a new protocol like res:// how is that possible? If the solution would be using .NET framework Classes, it would be great.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
A protocol handler can be temporarily made available. Watch out for the IInternetSession() and CoInternetGetSession API methods in MSDN.
Other than temporary registration, the only way to have a protocol handler running is to have it fully registered and, at this point, there is no way to do it through the web. Otherwise, this would be a security hole.
|
|
|
|
|
Does anybody know how to make a localized installation kit?
I apreciate any help.
Sergiu.
|
|
|
|
|
Hi,
I have a problem with DateTimePicker control. The problem is that I want to capture the Up and Down button of DateTimePicker control when its ShowUpDown property is true.
Can anyone know about the events or logic how to trace it.
Plz help me
Thanks
Sohail
|
|
|
|
|
Hi Sohail,
Are you talking about DatePicker in ASP.NET or in Windows Forms? I have tried out ASP.NET Calendar Control but since that involves server roundtrip, I went to a control from http://www.softcomplex.com/ , which provides complete clientside datetime picker along with validation for time also.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
I'm trying to create an interface with 4 viewports(seen in most 3d modelling apps and level editors).
I'm trying to split the windows with a number of Splitter's but I just can't get it right.. It seems it is impossible to divide a window into 4 viewports using splitters? Do I need to create my own control or does someone have a class ready for this purpose?
|
|
|
|
|
Hint: Use panels
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Yeah.. I figured that out after my post.
But the problem still remains.. you can't get a pure 4 viewport interface because in order to get 4 panels
---------------
| | |
|_____|_______|
| | |
| | |
|--------------
the horizontal splitter needs to be divided.. one left of the vertical splitter and one to the right.
so i can't get a cross-arrow in the middle... bugs me out
|
|
|
|