JL3's Q&A profile
Windows Forms properties
hi can u tell me how to write a property that take one decimal parameter and retuer a string in C# I don't know why you shouldf make this a property, it's part of the <strong>ToString(string)</string> capabilities: decimal d; string text = d.ToString("d") ; checkout NumberFomatInfo class. ...Show All
Software Development for Windows Vista Correlation between two diferent workflows
Is it possible to use correlation between two diferent workflows Let's say we have this local service [ExternalDataExchange] [CorrelationParameter("instanceChildId")] public interface IMasterChildLocalService { [CorrelationInitializer] void RaiseChildInitiated(Guid instanceChildId); [CorrelationAlias("instanceChildId","e.InstanceId")] event EventHandler<ExternalDataEventArgs> ChildInitiated; } The master workflow invoke a new workflow using the InvokeWorkflow, then it gets the child WorkflowInstanceId and calls the RaiseChildInitiated, which i ...Show All
SQL Server Attachement generated by xp_sendmail
Hello folks, I am sending a email from sql server that consists of results of a query and that's working perfect. When I open the text file generated by xp_sendmail in notepad it's OK, but when I open it in MS Word or WordPad, I see garbage characters in form of squares added to the content. Those sqare are unicode spaces equivalent to Nchar(140) or Nchar(0020) in SQL. I tried to replace them using the replace function : declare @foo varchar(8000) set @foo='select top 4 Replace(priMarykey,Nchar(0020),'') as primarykey, Replace(Sitename,Nchar(0020),'') as Sitename, Replace(REgNumber,Nchar(0020),'') as REgNumber, Replace(ContactEmpFirstNames, ...Show All
Smart Device Development Deployment Errors in PDA
Hi, We are gettiing the following Deployment Errors when we are running a PDA application : =================================================== ------ Deploy started: Project: PDA-RSMS, Configuration: Debug Pocket PC ------ Deploying to Pocket PC Device using TCP Connect Transport Error: Cannot establish a connection. Be sure the device is physically connected to the development computer. ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped Deploy: 0 succeeded, 1 failed, 0 skipped ==== ...Show All
Visual Basic Cint method problem
hi, note even and odd number get different result . Cint(2.5) = 2 Cint(3.5) = 4 Cint(4.5) = 4 Cint(5.5) = 6 ........ why this happen CInt is documented as using Bankers Rounding : Fractional Parts. When you convert a nonintegral value to an integral type, the integer conversion functions ( CByte , CInt , CLng , CSByte , CShort , CUInt , CULng , and CUShort ) remove the fractional part and round the value to the closest integer. If the fractional part is exactly 0.5, the integer conversion functions round it to the nearest even integer. For example, 0.5 rounds to 0, and 1.5 and 2.5 both round to 2. This is ...Show All
Visual Studio Tools for Office Excel Data Binding Performance
I just updated my Excel VSTO code to use data binding (via ListObject) to a DataSet. Prior to this, I was putting data into a 2-dimensional array and setting it to a range. Now the screen update is significantly slower. We often times will have large DataSets. In one example, I had a DataSet with 10,000 rows, and 20 columns (with floating point data). With data binding, it took close to 1.5 minutes (90 seconds) for the screen to refresh. When I set the range directly with a 2-dimensional array, it took less than 5 seconds. While I fully expect it to take longer with data binding, I really didn't expect it to be that much worse. Am I force ...Show All
Visual Basic PLEASE HELP - Can't Deploy Interop.Excel.DLL
PLEASE HELP. I've developed a vb.net app which works great on my dev machine, both within the IDE and as a compiled executable. But when I deploy it to a user workstation, I receive the following: Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Could not load file or assembly ‘Microsoft Office Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannon find the file specified. NOTE that I have included the COM re ...Show All
Windows Live Developer Forums Pushpin Onclick Event?
Hi has anyone managed to handle the on click event of a push pin yet because i cant find any events for such a thing You can tell something happens because (in IE at least) you can hear the normal "tick" noise just like when you click a link, when you click on a pushpin, I need to be able to handle this even so I can action the users click on the pushpin Just in case any one else has had this problem or anyone can give me a better method than the one I have used. To catch when my users click on a pin (and i no this is not perfect) i have combined two other events that are available t ...Show All
Visual C# Add HTML to C# Form
Hi guys, I would like to know how I can add some html code into my Windows application in C# To be more specific an <iframe> . What I would like to do is add my XBOX 360 Gamertag to the front of my Form. <iframe src=" http://gamercard.xbox.com/insertgamertaghere.card " scrolling="no" frameBorder="0" height="140" width="204"></iframe> Any advise would be great. Many thanks. Sten Thanks so much. Works great! Just what I need. http://img132.imageshack.us/my.php image=xboxgamertag6mh.jpg ...Show All
Visual Basic Startup object - Sub Main or Form
Hi all, I would like to know the differences between using Form vs Sub Main as startup object. Which is best way to start the application What are the pros and cons of using these methods. Thanks. Nitin. if you use sub main then you cannot enable the application framework, which enables you to app splash screens with minimal effort amogst other things. This requires the startup object to be a form. ...Show All
Windows Forms An item with the same key has already been added
Hi All, I added a toolstrip control into my application main form. And then I added a toolstripbutton to the toolstrip. Right clicked on the toolstripbutton and clicked on the properties to display the properties for the button. I clicked on the dropdown button of the Image property (so that I can change the image property from the system.drawing.bitmap to a toolbar icon that I already loaded into the resource file) and immediately, I got the following error message popup on the VS2005 IDE desktop: An item with the same key has already been added. What is wrong with the VS2006 IDE I thought this is a bug that already f ...Show All
Visual Basic Setting up a database connection?
I'm building a webform that's connected to an Access Database. I'm using VB.Net 2003. What are the steps needed in order to show data from tables in my textboxes How do I build a query to have only those records show that are corresponding to a date selected from a calendar object Also I'm intending to have a simple login. How would I pass and compare login information included a table in a database to data entered in login text boxes First, you need to create an Access Connection String. You can store this connection string on your web config, similar as below. <appSettings> <ad ...Show All
Visual Studio Express Editions [newbie question] How to get value from textbox?
Hi, Example: int a,b,c. c = a + b . label shows c value, and i want a and b to be putted by user, but have no idea how to do that, textbox is a 'string' and i cant assing value from that. Help. Try this: int a, b, c; a = int .Parse(TextBoxA.Text); b = int .Parse(TextBoxB.Text); TextBoxC.Text = (a + b).ToString(); ...Show All
SQL Server An error has occurred while establishing a connection to the server.
I recently re-formated my personal server and installed SQL Server 2005 on it instead of 2000 which I previously used. Now, I have imported the databases to the new SQL Server 2005, but I seem to get the following error when trying to access the database (from my asp.net page) I've googled and searched the forum, without any luck. Now I was hoping for someone to answer this question, or perhaps guide me in the right direction. Note: I've tried 5-6 different solutions that I found on the net, in vain. Server Error in '/ph' Application. ---------------------------------------------- ...Show All
Visual Basic Crystal Report in VB 2005 Express
I just upgraded to test new features of Microsoft Visual Basic Express. The new features are really very useful and had made using VB even more easier and a powerful RAD tool. I've almost completed my semester project (expect the reporting part). All I got at the end a shock — "Where is the crystal report" Could anybody help how to design reports in Visual Basic 2005 Express It's urgent! Crystal reports is not included with the VB Express products Its is only included in the Pro or above versions. The following details what is in and out of the various products. http:// ...Show All
