|
You have the ClassView to see all those thingies. (the Group by type is the nicest sorting).
You may write interfaces in separate .cs files, which is actually what C++ headers stand for.
That said, I have to agree I have yet to see a single sample using interfaces (not for marshalling).
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Thanks for the info! I never used the ClassView in VC6, so I totally forgot about that feature. On further investigation, I also noted that the object browser displays the XML comment tags for the different types.
Marc
|
|
|
|
|
I find the Object Browser extremely helpful
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
I find the Object Browser extremely helpful
The Object Browser come from VB. There are many people that will stop using it now, because of this information. As you can see there *are* some coll things from VB
Ñ There is only one MP Ð
|
|
|
|
|
Maciej Pirog wrote:
There are many people that will stop using it now, because of this information.
Why do you say that? And what infomation are you talking about?
Sorry, but I am a bit confused
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
And what infomation are you talking about?
That the Object Browser come from VB. That was a joke about people who are talking that VB is a sh*t but know nothing about it.
Ñ There is only one MP Ð
|
|
|
|
|
You can set it to collapse when you open the file...can't remember where it was cause I'm on my Mom's computer right now...but I'll look for it later this afternoon.
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
-Norm on the MailMagic GUI
|
|
|
|
|
Hello, the codegurus around the world.;)
I have the same opinion as yours when I started Java and C# in the past.
In MFC, the header file as well as the message map are a good expression
to trace the code.
However, I found that MSFT provides us the very useful tool to save the lines
by + ---- - by #region syntax.
- #region Declare the event like Message Map
|
|
|
|
#endregion
will become
+ Declare the event like Message Map
But, I am still missing the header file a little bit.
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
That's the big tooltip that makes it fine.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
I am trying to write a program that sends data from a DataTable to an Microsoft Access Database (mdb format) using an OleDBConnection. The regional settings of my computer are set to "Greek". The problem is that the decimal numbers stored in the datatable cannot be transferred correctly to the Access Database. For example, the numer 15.34 (where "." is the decimal point for the US Regional Settings) is stored as 15.340,00 (where "," is the decimal point for the Greek Regional Settings).
I have tried to set the regional settings from inside the source code (using the CurrentThread.CultureInfo to "Greek") but that only applies to System.String values, and NOT decimal or floating point. For this reason, the values cannot be stored correctly into the Access DB file. The only way to correct this problem is to manually change the regional settings from the Control Panel, but I would like to avoid this solution.
I would appreciate it if you could help me with this issue.
Thank you in advance...
Dimitris A.
|
|
|
|
|
I had a similar problem some weeks ago using MSDE. I was storing dates using DateTime.ToLongDateString() and DateTime.ToShortTimeString(), but I found out that it generated an exception on systems where Windows was localized to Spanish (dates in Mexico are DD/MM/YYYY as oppossed to MM/DD/YYYY).
What I did was to manually construct the date string using DateTime properties (Month, Day and so on) and it worked well on both my English development machine and those in Spanish where it was tested.
But I did not find a more elegant way to do this.
-- LuisR
──────────────
Luis Alonso Ramos
Chihuahua, Mexico
www.luisalonsoramos.com
"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
|
|
|
|
|
You can just format the date using an ANSI standard format (YYYY-MM-DD), I've never found a system/regional setting that doesn't understand that one correctly.
Contract Software Developer: andrew_lewis@mail.com
|
|
|
|
|
Is there any useful articles or classes on printing the contents of a listview in C#?
|
|
|
|
|
IS there a way to set the size of tabs ('\t')?
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
I am trying to cast a value from the querystring to an int. For some reason I am getting an error saying:
<br />
CS0030: Cannot convert type 'string' to 'int'<br />
My line looks like this, which I am not sure what is wrong with it:
int i = (int)Request.QueryString["note_id"];
How do I convert from the string data type represented in the querystring back to an int if what I am doing above does not work.
Nick Parker
The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
|
|
|
|
|
Since the QueryString indexer returns a string you can't just cast to get the integer value; instead you need to convert it.
You can do this with the Convert class (Convert.ToInt32 ) or Int32.Parse .
James
Sig code stolen from David Wulff
|
|
|
|
|
James T. Johnson wrote:
You can do this with the Convert class (Convert.ToInt32) or Int32.Parse.
Convert.ToInt32(...); worked great James, Thanks
James T. Johnson wrote:
you can't just cast to get the integer value; instead you need to convert it.
Can you explain why, what is the difference between casting it and converting it?
Thanks again.
Nick Parker
The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
|
|
|
|
|
Hi Nick
Casting is normally between used between inherited types (implicitly) or when a cast has been specified (explicity).
Converting (or Parsing) is used between unrelated types and allows one to be converted to the other and/or vica versa.
Hope this helps
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Hi,
I've tried google but I couldn't find anything useful. Do you know a link to a sites with different .NET compatible languages?
I'm particularly interested in Scheme, COBOL, FORTRAN
Thank you!
|
|
|
|
|
Here[^] you go.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Does anyone have any hints as how to implement a progress bar for a status panel?
I'm not entirely certain how to do it... Any ideas?
--
Richard
|
|
|
|
|
Richard Smith wrote:
Does anyone have any hints as how to implement a progress bar for a status panel?
I think you can host controls inside a statusbar panel. But it would probably be better to do a custom statusbar...
From MSDN:
Typically a StatusBar control consists of StatusBarPanel objects, each of which displays text and/or an icon. You can also provide owner-drawn panels to provide custom panels such as a progress bar or a series of images that displays the state of your application.
...
The default StatusBar has no panels. To add panels to a StatusBar you can use the Add method of the StatusBar.StatusBarPanelCollection class that is accessible through the Panels property of the control. You can also use the StatusBar.StatusBarPanelCollection object provided through the Panels property to remove panels from the control and access a specific StatusBarPanel object to manipulate the panel.
Now just add the progress bar to the panel
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
|
You might consider what Masaaki has suggested, however I tried something extremely simple which I believe take a lot of the pain out of it.
Basically add a status bar to your form, then drag a progress bar onto the status bar placing it in the lower left hand corner of the status bar, you do not need to add a panel to the status bar. With the progress bar item selected go to the Anchor property and click on both the Bottom and Left "bars". The text value inside the Anchor property should read "Bottom, Left". Run your app, the progress bar will stay in sync with you form at all times now.
Nick Parker
The greatest lesson in life is to know that even fools are right sometimes. - Winston Churchill
|
|
|
|
|
Hehehehe, Thanks guys.
I think I'll go with the first Idea. It may be a pain in the arse, but once I've done it, I know I'll use it again.
Thanks for the cheats... I'll prolly use those if I'm in a rush
--
Richard
|
|
|
|