nidionys's Q&A profile
Visual C# Formating output to a textbox
Hello I have a noob question. I am writing a little app to convert the temperature between farenheit and celcius, and would like to only display one decimal point in the textbox. I would prefer to see 70 degrees farenheit displayed as 21.1 degress celcius as opposed to 21.11111. Here is my code private void buttonConvert_Click( object sender, EventArgs e) { double degreesFarenheit; double degreesCelcius; if (textBoxDegreesCelcius.Text == "" ) { degreesFarenheit = double .Parse(textBoxDegreesFarenheit.Text); degreesCelcius = myConversions.FarenheitToCelcius(degreesFarenheit); textBoxDegreesCelcius.Text = degreesCelcius.ToString(); } else { degreesCelcius = double .Parse( ...Show All
Software Development for Windows Vista Custom Activity
So I tried to create a custom activity. So in the designer the string collection windows is there but is seems not to store my given Names. Can somebody tell me what's wrong some idea's Public Shared UserNameProperty As DependencyProperty = DependencyProperty.Register( "UserName" , GetType (Collection( Of String )), GetType (TaskActivity)) <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _ <ValidationOption(ValidationOption.Optional)> _ <BrowsableAttribute( True )> _ <DescriptionAttribute( "User name" )> _ Public Property UserName() As Collection( Of String ) Get Return CType ( MyBase .GetValue(UserNameProper ...Show All
Visual Studio Express Editions BindingManagerBase Position_Changed Problem
Hey Everyone, I have a program that has several textboxes bound to 1 dataset which contains only one table. When the form loads, the data is displayed in the textboxes allowing the user to add, edit, delete, etc., as well as navigate through previously entered records. However, when trying to navigate through the records, it doesn't do anything. The recordCountLabel, which keeps track of the record number that is displayed, changes, but the first record stays on the screen. Here is a little of my code. Protected Enum Record RecordNum DDate Shift ATO Vehicle End Enum Private Sub Form_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'Loads data into the 'TripSheetI ...Show All
SQL Server memory leaking?
Hi all, i am using windows xp sp2 and sqlserver 2002. i try to import dataset from excel with 300 000 rows data and excel file size is about (5MB). first I create a table in sql database. then i import data from excel to table in sql database by using following step. 1. I using Data Transformation Service import/export wizard from SQL Server Enterprise Manager to import data 2. During the wizard i choose data source = Microsoft Excel 97-2000, and choose the particular file. 3. choose the sql server and start import. Notice from Windows Task Manager sqlserver.exe 's mem Usage from 20M rinse to 43MB. after 1 hours check it again, found the mem usage by sqlserver is "NO DROP!!!" still 43MB. The ...Show All
SQL Server Reducing the PDF File Size
Hi all. I'm using MS SQL 2000's Reporting Services. Our output PDFs are usually composed of fifteen or more pages. Our file size typically exceeds 2 MB per report, I was testing the report on sample outputs and I was getting around 40kb per chart and each of our pages are typically composed of 2-3 charts. Is there a tweak that can be applied to reduce the file size of the output pdf Thanks, Edward An issue has been opened for this problem. Please add your vote. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=232211 ...Show All
Visual Basic Regarding helpcursor display in menu items.
Hi, i have developed a sample application in vb.net. It has menustrip control and some other controls. when i place the help cursor over menuitem in first level it shows it as help cursor. suppose if the menuitem has sub menu and if i move the help cursor over them it change it as normal cursor. following is the code i used to show the help cursor over menu items. item.DropDown.Cursor = Cursors.Help This is done for each menuitem. Thanks, Ganesh ...Show All
Visual Basic functions : does return end code path?
Simple little question, just curious if calling return inside a function will end the code path for example function test (byval testvar as string) if testvar = "a" then return("you selected 'a'") ElseIf testvar ="b" return("you selected 'b'") End If 'some more code Return("some stuff") End Function So if I pass this function "a" will the function return "you selected 'a'" or will the code continue to execute after the if statement and return "some stuff" instead When a return statement is hit, the method will start it's termination process. If there is no finally block wrapping the statement, the method will immediately return. If a finally block exi ...Show All
Visual C# .NET Framework and compatibility
Goodday, lately I've been programming an MMORPG in another programming language. Anyway, I'd like to learn a new and more adult programming language right now, and it seems Visual C# fits perfectly for this. But there's one question that still stops me from completely getting into C# learning; the .NET Framework. The disadvantage is that a person who wants to run my program will need to have the framework installed, and this is quite irritating for an MMORPG. I've been trying some out and untill now I didn't find anybody having .NET Framework 2.x on their PC yet (except me of course). It seems they don't receive it automatically using the automatic Windows update. It would be quite irritating to ask all my clients to download another 20mb ...Show All
Visual Basic Another class design issue
Hi, The interaction of related objects are kind of puzzling me. Here goes: I have the foll class Public Class Cusomer private _id as integer private _name as string Public Property ID as Integer Get Return _id as Integer End Get Set (ByVal value as Integer) _id = value End Set Public Property Name as String Get Return _name as String End Get Set (ByVal value as String) _name = value End Set End Property End Class My order class. I am not going in too many details as the orderline item Public Class Order Private _orderid as Integer Private _productid as integer Public Property OrderID as Integer Get Return _orderid as Integer End Get Set (ByVal valu ...Show All
Smart Device Development Sql Server CE 'SDF' invalid db version in VS 2005 !?
Hi.. I am trying to retrieve table structure from a Sql Server CE database file 'SDF' that I dont exactly know in which version has been developed. It is for a 'Intermec' hand held computer. The main application is developed in Visual basic (5 or 6). Now I am going to re-develope the application with some enhancements in VS 2005 using VB 2005. But I am unable to open the SDF file to see table structure, not from device or from VS 2005. Any help in this regard is greatly appreciated. Regards. Obviously that database is from an older version of SQL CE, so you can't open it unless it's converted to the new format. Please see SQL Mobile books online on how to use convert utility which comes with SQL Mobile. That conversio ...Show All
Visual Studio 2008 (Pre-release) How to prevent my Window to freeze ?
Hi, In my application, I’m using a Web Service and it take some time to respond. I would like to prevent my window to freeze during the call to the Web Service. I know this has something to do with the Dispatcher object but I’m unable to get it work. Here is what I’ve tried: private delegate void GetListItemsHandler (); private void StartPageLoaded( object sender, RoutedEventArgs e) { Dispatcher.BeginInvoke(System.Windows.Threading. DispatcherPriority .Send, new GetListItemsHandler (GetListItems)); } /// <summary> /// Get the list of all the products /// </summary> private void GetListItems() { ListsWSQueries QueryListsWS = ...Show All
Visual Studio Team System MSSCCI Provider 1.2 and the MSSCCPRJ.SCC file.
Does the MSSCI Provider for Visual Studio 2003 (version 1.2) utilize the MSSCCPRJ.SCC file I did not notice this file when I was working with version 1.1. Was this file necessary in order to solve the issue with branching in version 1.1 Todd Todd, MSSCCPRJ.SCC file is not related to specific SCC provider, it is part of SCC API used to hook up Visual Studio to Source Code Control provider conforming to SCC API specs. SCC provider (in your case TFS SCC provider) creates that file locally and stores there SCC-specific context information - mapping of your project local folder to TFS server, server path etc. In older versions of SCC (in Visual Studio 6.0 for example), that information was stored dir ...Show All
Visual Studio Team System Team System Checkin Not Working
I can't figure out why checkin is not working in Visual Studio 2005 with Team System Workgroup Edition. It works on other machines, but not on this one. I can get latest, but I can't checkin. I did a Team System repair from add remove programs. Nothing happens when I right click an edited file and click checkin. No popup and no change in status. Please help. Maybe some checkin policy configured which is not working , anyway I would activate tracing for Source Control operations, you can do this editing the Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe.config file before the closing </configuration> tag, and add the following: <appSettings> <add key="VersionControl ...Show All
Visual Basic RegEx.Replace isn't working
I have this: Imports System.Text.RegularExpressions.Regex Select Case True Case CBool(GetAsyncKeyState(116)) With Options.Items If .Item(0).ToString.Contains("OFF") Then MsgBox("check") Replace(.Item(0).ToString, "OFF", "ON") Else MsgBox("nocheck") Replace(.Item(0).ToString, "ON", "OFF") End If End With End Select Options is a listbox. Now, when I press F5 the msgbox says 'check' but the string does not change "OFF" to "ON". Am I missing something Hi, I tested this code, which worked perfectly as desired. Imports System.Text.Reg ...Show All
SQL Server COM objects under 64-bit?
Hi everyone, Primary platform is Framework 2.0 under 32-bit Production platform will be Framework 2.0 under 64-bit. I'm concerned about what object should I use in order to launch DTS 2000/7.0 from our .Net service. Currently it tested fine from a 32-bit environment (sql server 2005 as backend). Reference: "Microsoft DTSPackage Object Library" Physical file: dtspkg.dll My wonder, is there any limitation when it's gonna to work on 64-bit Generally speaking, any limitation/issue/drawback for COM objects under 64 bit In my project properties appears Any CPU, x86, x64. I've got now Any CPU. Thanks for your advices,   ...Show All
