John123's Q&A profile
Visual Studio Express Editions How can I get results from string formatted formula?
How can I get results from string formatted formula EX)Dim ExampleFormula as string = "((6/2)*5)+2-3+1" Then how can I get results from that string formatted formula I've tried it manually by referencing Java Stack Calculator source, but it was much harder than what I'd thought. Is there any easier way to get it done (such like data parsing) or better example source based on VB Express If you just want to evaluate math forumulas, see http://mmofx.com/codedetails.aspx A=402 . ...Show All
Windows Forms Problem with startup form.
Hi, I have a problem in my project. ie.. In my project I've 4 forms And its a windows Appln. When i set Form 3 as startup form, And after clicking F5, It will shows me the 1st form as startup form. What could be the reson Please send me a solution. Im using Microsoft visualstudio 2005 VS 2005 ...Show All
Visual Studio Team System WorkingFolder.LocalItem is null in uncloaked path
I have a version control app that has worked for many months. Recently two users have consistantly experienced issues that I can not replicate. The problem is that the localitem property is null in an uncloaked path. Here's the code: WorkingFolder[] workFolders = this.workSpace.Folders; foreach (WorkingFolder workFolder in workFolders) { if (workFolder.LocalItem.ToLower().Equals(localPath.ToLower())) { serverPath = workFolder.ServerItem; } } Can anyone point out what I'm missing ++alan How do you know it's an uncloaked path You're not checking the Type property for == WorkingFolderType.Map, so it seems like you could be hitting cloaks as well. If you want to have null local items be fine, I'd recommend ch ...Show All
Visual Studio Express Editions How can I do that the default language will be hebrew in textbox?
Best Regards, Yaniv I tried the example in the help of thread.currentUICulture and the default language is still english and not hebrew. of course that I set the language of the form hebrew. So I don't understand way it is not working Best Regards, Yaniv ...Show All
Visual Studio Express Editions pages error
my page1 is not recognised by my page2 by tis i mean tat the dropdownlist in page1 cant be detected in page2 here's the scenario i have a DropDownList1 in page 1 and i have TextBox1 in page 2 So i want the TextBox1.Text to display DropDownList1.SelectedValue so i put this TextBox1.Text = DropDownList1.SelectedValue but there's an error sayin DropDownList is not declared can anyone tell me how to solve this problem im usin visual web developer 1st i create a PanHotelDeafault.aspx 2nd i right click the solution explorer and add new item and click web form 3rd i name the new web form PanHotelCustInfo.aspx 4th there's a dropdownlist in PanHotelDeafault.aspx and a Textbox ...Show All
SQL Server date parmeter converts into drop down
I am working in SSRS 2005. I have three parameters on the reports Parmeter 1 is Date filter which is drop down and values are MTD,QTD,YTD... 2nd and 3rd parameters are fromdate and todate which are datetime parameters. When user select let's say MTD from parameter1 then i have Stored procedure which populate the fromdate paramter with 1st date of the month and, todate populate the todays's date. The problem i am facing is the moment these date parameters get populated it converts into drop down. i want these date parameters should be still datetime so user can select the date. The value i am passing to these parameters are datetime type( Now() ) .Still the date parameters controls are showing as dropdown. I don't know how to hand ...Show All
Visual Studio Tools for Office Access controls in different document instance (VSTO 2005)
Hi, I have two different documents (A and B) and both have the same VSTO customization attached to them. [Actually I first create A and later open B and attach through the ServerDocument classe the VSTO solution]. How can I access a control instance (RichTextBox) of document A from B I got as far as this: // from document B, I try to find A // iterate over the open documents foreach (Word. Document parentDoc in Application.Documents) { if (parentDoc.Name.Equals(“A”)){ // iterate of controls in document A System.Collections. IEnumerator en = this .Controls.GetEnumerator(); while (en.MoveNext()) & ...Show All
SQL Server Programmatically Data Conversion component creation
Hi there, I have created a package which simply imports data from a flat file to a SQL Server table. But I need to incorporate a data conversion component by which I may change the source-destination column mapping programmatically. So what I thought that I need to add a data conversion component into the dataflow task. After adding this component (I found its component id as {C3BF62C8-7C5C-4F85-83C3-E0B6F6BE267C} ) I have created a path which establishes the mapping between output columns of source component and the input columns of data conversion component. Now I am not sure how to establish the mapping between the data conversion component’s input column collection and output column collection. I am giving my code snippet her ...Show All
Visual Studio Express Editions Find the Handle of a Foreground Window Even if it's Not Active
I am trying to get the handle of whatever window happens to be in the "foreground" regardless of whether it has the focus. Basically, I'm looking for whatever window that is on the top. I've tried the PInvoke GetForegroundWindow function, but that only seems to return the correct foreground window if it has the focus. Any help or ideas of how to pull this off in VB .Net 2005 would be greatly appreciated have you tried using the FindWindow API http://www.pinvoke.net/default.aspx/user32/FindWindow.html you need to give it the exact (case sensitive) window title you are after ...Show All
Visual Studio Cannot Debug in VS2005
I cannot launch the debugger in VS2005. I have a solution with numerous projects (1 C#, the rest VB). Whenever I run the solution and hit a break point, I get a message saying that Visual Studio has encountered an internal error. I have sent multiple error reports to Microsoft about this. This also happens when I just try and single step into the solution. Everything in the solutions builds fine and runs fine, until I try and use the debugger. I am running Windows XP (SP2) with a dual-core processor. I read some posts online that recommend setting up your startpage and I did that. I also set the project to run on x86 CPU and I am still having the same issue. Another developer in my environment can debug the exact same solution and the prim ...Show All
SQL Server Using variables in a data reader source
Greetings SSIS friends, I have tried using a sql command for my data reader source. I added the following expression to my datareader source : "select * from result where result_id > " + @[max_result_id] but I get the following error message : The SQL command has not been set correctly. Check SQLCommand property. I then got rid of the variable (defined at package level) and replaced it with a string like so : "select * from result where result_id > " + "123456" but I still get the same error message! What am I doing wrong ! Please advise. Is @[max_result_id] variable string type (I guess it is as the expression evaluates correctly; but just in case) ...Show All
Visual Studio VSS2005 - Binary Checkin speed issues
When checking in big binary files like pdb and lib with sizes above 6 MB (limit not tested) there is a significant speed reduction. Example: I copy one of two similiar files as tmptest.lib, size is ~12MB . File options in VSS are set to binary, no autodetection of unicode. When checking in with VSS2005 (ss or ssexp), it takes 720 seconds . If I do the same with VSS6.0d , it's 2 seconds . In both cases cpu util is 100% all the time. VSS6 and VSS2005 are installed on the same machine. VSS2005 checkin was tested also direct on server with local database path - no difference. Richard, there is a bug in VSS2005 which manifests exactly as C. Hoffman described. We have the fix for it (I think it was checked in ...Show All
SQL Server Could not Authenticate with SQL Server
Here's my situation and I've spent enough time to troubleshoot. Any help would be appreciated. 1) I have a VB.NET Windows Form Application that uses SQL Server Express 2005 database. 2) The "mdf" file is a part of the application itself. 3) When the application distributed to my clients using Windows XP SP2, the "Click Once" installer automatically installs SQL Server 2005 Express [which is a pre-requisite] and copies this mdf file into the application folder. 4) The authentication mode is "Windows Integrated" The problem is, when the application is launched [while logged in as the local system administrator in a given computer], it is unable to connect to the SQL Server. I get the following error, Failed to generate a user instance of S ...Show All
Gadgets OT: Posts are appearing out of order
Not sure if anyone else has noticed this, but posts are starting to appear out of order. eg. Bruce's reply here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1145168&SiteID=1 and Menthos's reply here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1149010&SiteID=1&PageID=1 Maybe it has to do with which "reply" button you push I might have replied to my own, immediately-preceding message, instead of the last one on the thread. Even if that's so, its still seems wrong - you can't just scroll to the bottom of the thread to see the latest comments. ...Show All
SQL Server Msg 468, Level 16, State 9, Line 1 --Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_Ge
execute the following in any user database... So far I've been able to only reproduce this on SQL 2005 Standard instances..for some reason I don't get the error on Enterprise server. It appears that perhaps the system objects have different collation attributes.. !! select name from sysusers where name not in ( select name from master .. syslogins ) Microsoft SQL Server 2005 - 9.00.1399.06 (X64) Oct 14 2005 00:35:21 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 1) (1 row(s) affected) Msg 468, Level 16, State 9, Line 1 Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_L ...Show All
