Perry Choy's Q&A profile
Visual Studio Express Editions How do i stop people entering text instead of numbers ?
I want to be sure that users only enter numbers into a particular textbox. Please keep answers simple, I've only been learning for 5 days. There are several ways to accomplish this here is a very simple means....However you would have to make exceptions for the backspace/delete/ or other control keys Private Sub TextBox1_KeyPress ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyPressEventArgs ) Handles TextBox1 . KeyPress If Not IsNumeric ( e . KeyChar ) Then e . Handled = True End If End Sub ...Show All
Visual Studio Express Editions graphics question
I have been asked to make a diagram out of information from a database. I dont know if this is possible but here goes: we have types of phone switches. that are connected via smaller ones BIG --> small --> and smaller Is there a way to have diagrams build via sql and VB Clueless Think of each switch as an object having properties. In actuality such an oject could be described in a structure which describes it including what else it is connected to. This would be easy represent graphically however the algorithms for the connections could be quite complex depending upon how much intelligence you want this to have. Where does one graphically place an object Would that be by size or in a location that minimi ...Show All
Visual Studio 2008 (Pre-release) Databind Child Object
Hi, I have an object called Product and that product as a property of type List<Photo>. Photo is an object with an URI and a few more properties. What I want to do is in the DataTemplate access the first Photo of each product. I have something like this for the other properties in the Product Object: <GridView x:Key="gridView" AllowsColumnReorder="True"> <GridViewColumn Header="Tipo de negocio" DisplayMemberBinding="{Binding Path=TypeOfBussiness}"/> <GridViewColumn Header="Tipo de imovel" DisplayMemberBinding="{Binding Path=TypeOfProduct}"/> <GridViewColumn Header="Tipologia" DisplayMemberBinding=& ...Show All
Windows Forms WebBrowser control shows HTML code
Hello, I've a project where i'm assigning a HTML string to the DocumentText property of the WebBrower. On most PCs there's no problem with it, but there are PCs which show the actual HTML code instead of the webpage. Any idea's what's the reason and a possible solution :) Regards, Aussie I just checked aswell, the PC that shows HTML instead of the webpage does not have SP2 installed, only SP1. if this is the reason, there must be a solution without installing SP2 ...Show All
SQL Server Windows Event Log Notification
I'm new to SSNS. How would I create an application that would watch the Windows Event Log for a particular Audit Event Source, Event ID (or range of IDs), etc. and send a notification to a subscriber app with that event's data I saw a SSNS filesystem watcher...is there a Windows Event Log watcher too Can I use the built-in .NET one Thanks, Mark More generically, I have a "master/slave" setup, where I need to send messages (less than 1KB each) from one master to N slaves. These messages must arrive in-order, and must always be delivered. It is my understanding that MSMQ does not guarantee in-order delivery. So, what alternatives are there to SSNS I f I did use MSMQ, and the ordering problem w ...Show All
SQL Server Lookup Task Datatype issue
Hello: I'm attempting to use the lookup task and i'm running into an issue about incompatible datatypes. The table that i'm referencing in the lookup has a field named DateCreated, and it's DataType is DateTime. But when I hook it up to the Lookup Task, the lookup task thinks it's a DB_Timestamp, so i get an incompatible data type error. What can i do Duane: Thanks for your reply. My problem is not with the dataflow, but with the Lookup Task misinterpreting the Data Type of one of the columns in my lookup table. Instead of being DateTime as the column is set to, the the Lookup task thinks the column is a DB_Timestamp. ...Show All
Windows Forms convert label1.text to the value of datetimepicker
I have label1.text = "5/11/2006 2:15:01 AM" and datetimepicker1 with format of dd/MM/yyyy HH:mm:ss when i try datetimepicker1.value = Convert.toDateTime(label1.text ); system threw error saying that the string is not in a correct format plz help thats correct since it will be of an invalid format. generally the format should be everything except the AM part. why don't you just do something like..... DateTime result = DateTime.Now; if (DateTime.TryParse(this.label1.Text, out result)) { this.dateTimePicker.Value = result; } this will try to parse the DateTime value and if it works then it will set the value to the datetimepicker value property. You can also maybe use the DateTime.TryParseExa ...Show All
Visual C++ Profiling C++ .Net app in Visual Studio .Net 2003 enterprise version
Hi, Does anyone know how to profile a C++ .Net application in VS .NET 2003. With VS 6, you can do it by enabling the "profile" in project property link page. But in VS .NET 2003, I couldn't find this setting. Has it moved to some other places DevPartner Performance Analysis Community Edition http://www.compuware.com/products/devpartner/profiler Be warned - you will get a phone call from their sales before you are finished downloading the file :-) ...Show All
Windows Forms Buffering Images HELP
Im not sure if this is the right place for this post, if not I apologize in advance this is my first time on the forum. My question is - I am trying to write an Image Viewer program that reads the file paths from the file system and stores them in a list. Then it loads the first 25 images into an Image list(the 25 can be set to whatever I want.). That all works fine. The problem is when you get to the end of the 25 and its time to add more images. It works but is EXTREMELY slow. I cant seem to figure this out and have been playing with it for a while now. Any insight would be appriciated. Heres my code for adding to the buffer - public void vScrollBar1_Scroll( object sender, ScrollEventArgs e) { Thread addThread; i ...Show All
Visual Basic insert the excel data into sql server databases
I would like to import the excel in to the sql server using vb.net. how can i do it Another question is how can i execute the DTS using vb.net THats a good idea too. I have another question. if im using DTS i have to hard code the path name so the DTS can locate the excel file, but do remember now the DTS is running on the server and there is no way i can pass the whole excel file to the server with a correct path that DTS configure. If i still cannot solve it i think the better way is stick back to your choice. Thanks ...Show All
Visual Studio Express Editions Textbox Change Enter to Tab
In Textbox1_KeyDown event I tried If e.KeyCode = Keys.Enter Then e.KeyCode = Keys.Tab But e.KeyCode is read only. How do I change the enter key to tab key On pressing the enter key in one textbox I want to tab to the next textbox in the tab order. Thanks, Private Sub TextBox1_2_3_4_KeyDown( ByVal sender As Object , _ ByVal e As System.Windows.Forms.KeyEventArgs) _ Handles TextBox1.KeyDown, TextBox2.KeyDown, TextBox3.KeyDown _ , TextBox4.KeyDown If e.KeyCode = Keys.Enter Then SendKeys.Send( "{TAB}" ) End If End Sub ...Show All
Visual C++ Office 2003 like look not supported in VC.NET
Hie , I just got Visual Studio 2005 .NET recently .. and i was wondering why the new office 2003 like look is not supported in Visual C++ .NET....... ...the blue toolbar and menus show up in VB.NET , C# and J# but not in VC is it a seperate activeX or something Also i need to know how to do this via win32 API and C (i dont knw C++ and MFC =S) Thanx Gideon um .. i'm not sure wat u mean but... Here .. i BUILT this in C#.. .it still has the look!! and hey wat about this thread's reply wat does it mean ...Show All
Connected Services Framework Catching unexpected Soap Faults
Hi, As per the documentation and a previous post, the following route is supposed to catch all faults: <Route> <Criteria> MESSAGE EQ 'Fault' AND MESSAGENS EQ 'http://www.w3.org/2003/05/soap-envelope' OR MESSAGE EQ 'Fault' AND MESSAGENS EQ 'http://schemas.xmlsoap.org/soap/envelope'</Criteria> <Destination>IWSSoapSevice[http://schemas.xmlsoap.org/ws/2004/08/addressing/fault]</Destination> </Route> However, this does not happen and exceptions (as thrown by participant services)are never routed by CSF Session. But by using the following route, I am able to catch unexpected exceptions (as thrown by participant services): <Route> <Criteria>(ACTION EQ 'http ...Show All
Software Development for Windows Vista AddBranch does not work
I have a custom activity derived from CompositeActivity that behaves similar to an IfElseActivity. I have written the following code to add a new branch to my composite activity (as a new branch can be added to an IfElseActivity): ISelectionService selectionService = GetService( typeof ( ISelectionService )) as ISelectionService ; if (selectionService != null ) { if (selectionService.PrimarySelection is ActivityLibrary. OrActivity ) { OrActivity orActivity = ( OrActivity ) selectionService.PrimarySelection; orActivity.Activities.Add( new OrBranchActivity ()); } } In this co ...Show All
Visual Studio Team System Error while connecting to team server.
Hi, I am using both visual studio 2003 and 2005. I installed Team explorer and MSSCCI provider to work with team system. I can use source control with visual studio 2003 but I can't use the source control in visual studio 2005 and is disabled after displaying the following errors. "This plugin is intended for older version of Visual Studio. Please use Team Explorer." "There was a failure while initializing the Team Foundation Server MSSCCI Provider source control provider. You cannot use this provider to perform source control operations" Thanks in advance . Check to see that you are using the correct plugin in VS2005. From the VS2005 main menu go to Tools>Options When the Options dialog opens navigate to ...Show All
