Moandal's Q&A profile
.NET Development How to extract icon from resx file
I've a form with an imagelist filled. I just want to access the resx file of the form to get an image from the imagelist in icon format. Can anyone help me I've solved the problem : before the Main sub there was a directive : [STAThread] Deleting this code line my application running well. But now my question is : why till 1 month ago I can run application with [S TAThread] without problem and today it doesn't work And more What does [S TAThread] means ...Show All
Visual C++ VC++ 05 beta 2: pgodb80.dll not found
Hi, I was hoping to try out the profile guided optimisations, however, when I try to build an intrumented application I get the following error: "fatal error C1350: error loading dll 'pgodb80.dll': dll not found" The pgodb80.dll simply does not exist in the installation. Does anyone know where I can get hold of this dll so I can move forward to test out the PGO capabilities Best wishes, Mark If you have msdn subsription you can install the latest CTP builds. For more details, please see http://lab.msdn.microsoft.com/vs2005/get/default.aspx#pro Thanks, Ayman Shoukry VC++ Team. ...Show All
SQL Server Setup Forum?
Where would I find this. It's not listed under SQL forums. Is this a general setup forum or specific to SQL Thanks...... http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=95&SiteID=1 ...Show All
Visual C# Disable button
Hi, I want the following thing to happen: I have FORM1 and FORM2. When I push on a button on FORM1, FORM2 should open. But my problem is, that when I push again on the button, I get 2 times FORM2. How should I fix this Thx You need to open FORM2 as a modal form, not as a modeless form. So, use Form.ShowDialog() and not Form.Show() ...Show All
SQL Server sql server 2005 auto number property
Hello I have a table with two columns. First column is type and second column is ID. ID column must be unique and I want to give values in ascending order to the new records. For example first record's ID is 1 ,second one's is 2 ... How can I do this in sql server 2005 Hi, did you have a look at IDENTITY This generate an "auto-number" based on a start value and an increasing value. HTH; Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms After running application (F5) Controls disappear from designer, now invisible
I wish I could post my entire form on here for inspection. Anyway I will try to explain the best I can on what is happening. I developed this application using VS 2003. I have a form with a tab page with 5 pages on it, on each page I have a few controls including TextBoxes and NumericUpDowns that are binded to a DataView on my form from a method called from my constructor. My NumericUpDown controls are set to display tenths and have an increment of 0.1. In .NET 1.0 I had an issue that the value would not be validated correctly when I clicked off the control. For example.. I type in 15 as the value (at runtime). I click of ...Show All
Visual C# Login Control problem
Hey guys, I have a VS2005 website project on my dev machine. It compiles and runs perfectly. When I publish the project and put it into production, the Login control keeps giving me a "Login failed for user..." error. The web.config is the same, the connection strings are the same. Anyone know what the problem could be Can you provide more info on this, may be some tracing/event logging would help in here to diagnose further. -Jay ...Show All
SQL Server Error in SQL Server Management Studio Express when Attach DB
Hello When I try to attach a Database in SSMSEE, I always receive the same error. After clicking on the "ADD"-Button in the "Attach Databases"-Window, the following error occurs: TITLE: Locate Database Files - ORION\SQLEXPRESS ------------------------------ C:\Programme\Microsoft SQL Server\MSSQL.1\MSSQL\DATA Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists. If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box. OK - Butto ...Show All
Visual Basic Algorithm Benchmarking
I have Googled this and can't find a good answer so, lets say I have two bits of code that do the some thing (my actual program is far more complicated). Dim numIsOdd As Boolean = ( num And 1) And Dim numIsOdd As Boolean If num Mod 2 = 1 Then numIsOdd True Else numIsOdd False End If How can I benchmark these different sections of code Thanks guys, both answers will help me move forwards with what I am doing. ...Show All
Visual Basic Send all event data to rtf on form
I have a form with various methods of data input controls - selecting from list box (locations), some check boxes, text box. I would like each data source whether written or selected to be placed in an RTF text box on the same form with some kind of bolded subject matter line. What's the best approach for putting this together ...Show All
Visual Studio Team System Error message for December CTP - Error 28925.TFServerStatusValidator: UnexpectedError
Getting this message at the very end of install: Error 28925.TFServerStatusValidator: UnexpectedError Hit cancel when I got the error and got the following data from the log files: [12/06/05,16:58:15] Microsoft Visual Studio 2005 Team Foundation Server - ENU: ***ERRORLOG EVENT*** : WARNING:Warning 32000. The Commandline '"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Bin\Stsadm.exe" ...' returned non-zero value: -1. [12/06/05,17:02:09] vs70uimgr: Entering DisplayMessage() method. [12/06/05,17:02:09] vs70uimgr: DisplayMessage_START:Error 28925.TFServerStatusValidator: UnexpectedError [12/06/05,17:05:11] vs70uimgr: Di ...Show All
Windows Forms Windows Forms Book
Hi I am looking to purchase a book on Windows GUI in C# as I start learning how to program in this new environment. And I was wondering if any one has any suggestions Neil FWIW, I am really loving all four books: Petzold, Prosise, Richter, and Balena (and I'm sure I would like Dino Esposito's book, too, if I had it)  ...Show All
SQL Server A problem with SQLColumns call
Hello, let us consider the following problem with SQLColumns call. Fist of all here goes a small quote from MSDN on SQLColumns input string parameters: CatalogName [Input] Catalog name. If a driver supports catalogs for some tables but not for others, such as when the driver retrieves data from different DBMSs, an empty string ("") denotes those tables that do not have catalogs. I read it as I can call SQLColumns the following ways: SQLColumns(hstmt_, (SQLCHAR *)"",SQL_NTS, ... or SQLColumns(hstmt_, (SQLCHAR *)"",0, ... but none of this calls works. The only working way is SQLColumns(hstmt_, 0,0, ...Show All
Windows Forms Capture and image from Windows form
I am drawing on a a form, this form is only for drawing my objects. I want to capture those object in one image and save it as .gif The problem I faced was and I save the image, and then try to view it on IE or open it with any image viewer the image doesn't appear !!!! can anyone help me with this !! give me an ad ...Show All
Windows Forms Multiple Users and Roaming Profiles
I probably know the answer to this but want to make absolutely sure. My app is aimed at schools and colleges. Typically, staff and students will use any available computer so each computer could have hundreds of different users in the course of a term. Am I right in thinking ClickOnce would reinstall for each new user with no shared disc storage If the users have roaming profiles, does the installation get moved across the network at each login Thanks Michael Yes to your first question and no to your second question. Everytime a new user logs on to the computer, he/she needs to install the applicatio ...Show All
