Answer Questions
Game Squirrel Typedef-equivalent in C#?
I pass integer IDs to a variety of functions. I want to create a type for each ID so the compiler can check I am passing the right type. In C I would do this with typedefs. E.g.: typedef int personID; typedef int addressID; void DoSomething(personID p, addressID a) { ... } How can I do this in C# Creating an entire class seems like a lot of overhead. using personID = int; This gives me a synta ...Show All
Brendonv Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not ...Show All
Graham P Multi-tiered enviroments planning for MOM 2005
Will you be adding support for modeling multi-tiered environments thanks andy Jonathan, I can use the sizer tool to configure the servers and bandwidth. Right now I am trying to find out what my options are to monitor between 50000 and 150000 servers in 50 locations, each with their own MG's and I hoped the tool would help me out with that. I understand that right now this might not be something that we really need for most cust ...Show All
Jeren C# 2.0 doesn't allow me to use System.Void?
I love generics in 2.0! What a time-saving feature, less code to write! Plus it allows for more code re-use, and thus fewer bugs. I love generics, pat on the back to Anders and the C# team. I ran into a limitation, however, with C# 2 compiler and generics. I wanted to implement a method that would have a generic return type, for instance: TReturn ExecuteSomeDelegate<TReturn>(MyReturnableDelegate<TReturn> serverMethodToExecu ...Show All
Rob Nikkel Link Form
I know some C# but I don't use it often enough to know this. I wanted to know the code that you put at the top of your form to link that form to another form, for instance in C++ you would type: #include "Form2.h"; But what would you type in C# hi Im not sure what you are trying to achieve, Dou you want to diplay Update.cs using the control in the main form It's really easy, I know it is I'm just not sure reall ...Show All
nrasinec Why is a cast of a Handle to HWND generating undefine value?
Hi, I have some code which casts a handle to a Picture Box to HWND. Sometimes it works fine, and at other times it generates undefined value, and I can't see why. What I am doing is: At startup, before the GUI is displayed, I get the address of a Forms.PictureBox control using the Handle method, which returns a System::IntPtr. According to the docs, this should be valid at this stage, and a number is always returned. I pass this in t ...Show All
Sebastian Dev Using class from another file in the same project
[VC# 2005 Express Edition] Hello! I don't know how to use a class that I defined in another file from the same project (solution). Can you help me, please You can use your class by name, it doesn't matter where you class lies in your project. Important is what namespace your class belongs to. For example: You have a class MyClass in namespace MyNameSpace : namespace MyNameSpace { class MyClass { ...Show All
MaggieC Threading in C#
Hello Everyone, I have a tab application, which initially I made single threaded....I added a dll which has a form. Now when I change to a tab method in that dll gets fired and form comes up, which makes everything else unresponsive.... Whats the best solution to implement thread to solve that problem.... Secondly, I tried doing something this way..... namespace something { public partial class Some : Form { public Some() ...Show All
B. Lefferdink How to calculate the mailbox hash to construct URL path
Hello, It seems WDS is using some hash number in MAPI url to locate items. For example, the text in red : mapi://LocalHost/default/Mailbox - Wang, George ( $d3f5 )/ Is it possible to expose the hashing routine so that we can construct the URL from mailbox ENTRYID Here is a doc about something similiar, http://blogs.msdn.com/stephen_griffin/archive/2006/05/10/594641.aspx , search for "ComputeStoreHash", not sure if they are ...Show All
bllua How to convert textbox.text to string?
I have a couple of textboxes that I am trying to concatenate and I receive some error about that. Here's what I have. string strSummary; strSummary = txtFstName.Text + " " + txtLstName.Text; The error message is: Cannot convert from 'System.Web.UI.WebControls.TextBox' to 'string' Your help is appreciated. You're right. That wasn't the problem. It's something else. I got it fi ...Show All
5spot new features
whate is the new features in C# 3 just one feature Uhm, Linq I assume you know Linq already since you had an "installation" problem. Furthermore I assume that you do realize that Linq isn't just one feature but plenty of new features under one name. thanks for your answres you right about that I am sorry if i disturbed you ...Show All
mikrogen wait time
How can i make my program to loop for .5 second before moving on to next line of code. Is it the same as using Thread.Sleep(500) Yes, it's running on a thread but i don't know doing that how it's gonna affect other threads. Appreciate This forum is for C# language issues only. There is a forum for .NET base Library issues that is more appropriate for this sort of questin. If ...Show All
shtru Remove "Maximize/Restore Down" button
How can I remove "Maximize/Restore Down" button from my forms Like the picture: http://img.majidonline.com/pic/39007/Untitled-2.gif Hi, You have to set both of them to false then they disappear. Max Tanks a lot for your answer. In the form's properties, set MaximiseBox and MinimizeBox to false It changes the button to: ...Show All
A1ien51 richTextBox an html tags
Hi guys :) I am creating an application (SmtpClient with GUI) and i want to be able to preview what i have written so far, ok. Now, here is the part i am looking for advice on: This program is suposed to support html mails, so how can i preview html mails Please let me know how that is possible. thank you very much :) yes i will try that :D I looked through all settings in RichTextBox and there is nothing that turns on html elements. ...Show All
Seth Webster How to determine file reading progress
I am using streamreader to read lines of text from a file. I would like to indicate on a progress bar the status of the reading process. What would be the best way to determine where I am within the file so that I could divide this number by the filename.Length member to display in my statusBar I'm having trouble finding the right method for indicating where the file pointer is... Jon, Thanks again for ...Show All
