CharlesLing's Q&A profile
Windows Forms pressing arrow keys as hot-keys changes control focus
I want to define the Left and Right arrow keys as "hot keys" in my form. I've handled KeyDown, and I set the Handled property of the event, but if the current focus is on a button, radio, check box, etc, then the arrow keys& ...Show All
.NET Development access dBase files
I am attempting to use an OleDBConnection to access dBase files. However I am getting the following error message when attempting to open the connection: "'c:\zzz\test.dbf' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides." From what I understand from the documentation the following should be a valid connection string: Provider=Microsoft.Jet.O ...Show All
Visual Basic MDI Forms versus Usercontrols
I am building a Windows Forms application. It will use several forms, all starting from a 'home' form that provides summary info on the data elsewhere in the app. Basically, I don't want to make the thing an MDI Form, but I want it to behave like Outlook, for instance - where it appears that the same main form is being re-filled with relevant data/controls depending on what you want to achieve. Is there a best practice way of going about that ...Show All
Windows Forms UserControl with other controls inside (URGENT)
Hi all i just have a question!! i’m doing my own usercontrol, and i have set a few controls inside it (a few buttons and some textboxes ) and i place my user controls inside a form. but my problem is in the code i can access the controls inside of my usercontrol using the UserControl1.Controls Property, is there anyway to no have access to those controls inside if yes How anysample !!! thks JSB ...Show All
Visual Studio 2008 (Pre-release) System.Windows.Window Display issue.
I recently installed the Novermber CTP of WinFX distributed as part of Windows SDK. I created a very simple application using the System.Windows.Window class however, the frame comes up completely black, including the controls added to the frame. Has anyone else experienced this Here is the code I ran (With an Application class instanciating the window on startup) using System; using System.Windows; using System.Windows.Controls; namespace WP ...Show All
SQL Server URGENT! - - Unable to connect to SQL 2005 Server
Hello, I have a SQL 2005 Developer edition server, its freshly installed. I am unable to connect up to the server using the server IP. I just get a error message, when I do a port scan on the machine, it shows port 1433 is closed. I have gone into the SQL server configuration manager, and the TCP/IP port is enabled. I dont have firewall enabled on my windows XP pro SP2 machine , nor do I have any anti virus programs on this machine. ...Show All
.NET Development Open DataReader associated with this Command
SqlConnection conn = new SqlConnection("Data Source=server;Initial Catalog=db;Persist Security Info=True;User ID=xxx;Password=xxx"); public Form1() { InitializeComponent(); this .conn.Open(); &n ...Show All
Visual FoxPro checking RTF control for EMPTY ()
I have trouble checking programmatically that RTF.textRTF is empty. If it is visually empty to the viewer the function EMPTY (RTF.textRTF) returns .F. If I use an assignment m.memVar = RTF.textRTF I can print it out as a set of strings (about 3) of formatting characters. It is after the control was filled with some text and subsequently that text was deleted (manually) in the control window. How can a test be done to verify that the control i ...Show All
.NET Development Regarding creation of web service
Hi, I am new in web service. I am creating a sample web service which will have windows authentication and anonymous access disabled in IIS 6.0 when I try to add reference for this web service from other machine its give me proxy settings error. can any body help me regarding this problem It will be great for me if any one can provide me online help using msn messenger my msn alias is ...Show All
.NET Development Search for COM Server.
How to get typelib from com object and then found it's destination (file, that containes registered com object) use Type.GetTypeFromProgID(progid) to get typelib and location noted in InProcServer32/LocalServer32 hive of your component's CLSID in registry ...Show All
Windows Forms how to add column from datatable to datagrid view n vb 2005
i add 2 combocolumns and 3 text columns by smart tag of datagrid view . then i fill dt ( datatable) from table adapter td (select * from transport) now i want to add 5 columns of dt(datatable) to to datagridview.. -------------------------------------------------------------------------------------------- tnx ...Show All
Windows Forms Does WebBrowser control in .net 2.0 support blocking pop-up windows?
If yes, how to accomplish this Thanks in advance. Yes, i think so. the rtm version of .NET 2.0 has been released. and i don't find any method to block the pop-ups either. what a pity!!! ...Show All
Visual Basic capturing an dumping video streaming via http
Hi all. I'm new to Visual Basic .net 2005 beta 2 so excuse me if my question is too simple for you. I need to create an application that connects via http to a local video server (it has a local private IP address) and then shows a live video stream coming from the server. Moreover I want to let the user save the video stream he is seeing in that moment, to see it again later (with any media player). In other words I need to dump (or grab, o ...Show All
Visual C# Properties of class
Is there a way to get all the properties of a class Like a propertycollection or something It's called Reflection, and it all works off the Type class that you can get using typeof() and myObj.GetType(). Once you've got that Type class have a look at the GetProperty and GetProperties methods on it. ...Show All
Windows Forms Modifing The Order of The Column Heads When Binding An Object
have an object with two properties ("Proof" and "Queue") that I am binding to a datagrid. When I bind the data "Queue" is bound to column one and "Proof" is bound to column two. I would like the first column to be bound to "Proof" and the second column to be bound to "Queue". Is there a method or a property that would allow me to accomplish this other then using styles Than ...Show All
