Hemant Kumar's Q&A profile
Windows Forms music/sound program, playlists and browse button..
Hey again! i'm building this "adio player" thing.. in visual basic express. i dont wan't anything big fancy with fancy libraries and skins and stuff like that. i need to know some things: 1: how du i make a browse button so i can search for files 2: how do i make a volume control 3: is it possible yo make playlist's that the program can save or can i use the same format as microsoft's playlist's 4:the sound controls, like "stop""Start""reverse""pause" etc etc. please answer me ...Show All
Windows Forms Explanation about "Active control change event?"
Moayad Mardini: You dont understand what I mean. What I need is to "trap" (if is possible) the event when focus change from one control to another in "global" way in WINFORMS. I need to refresh / enable / disable formatting controls when the current control is an RTF one. I talk about Delphi's TAction component because I think that may be someone known what I mean. You ask about my language and I tell you in what I considerme as expert. Now I'm transitioning to .NET because I will no further invest on Delphi. Did you have some usefull about the subject Or this will be canceled because missundestanding Regards. ...Show All
Visual Studio Team System I have 2 Q
1. I have a problem creating a New Team Project "Unable to connect to the Windows SharePoint Services at SQL2005DEV " why See the log below. 2. if I want to backup the project and restore it on another server with a different name is it a problem , I saw the I need to back up the DB and the share print server and and and .... is there a single simple on command line way or a batch file that can do it in a more simple way ---begin Exception entry--- Time: 1/4/2006 6:04:30 PM Module: Engine Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFounda ...Show All
Windows Forms binding COmbo Box to database
Hi, I am having trouble populating the Combo Box with the data returned from the Query. Here is my code Can any one please help and tell me what iam doing Wrong: OleDbCommand myCommand = new OleDbCommand("SELECT Name FROM myTable",myConnection); myCommand.CommandType = CommandType.Text; OleDbDataAdapter ad = new OleDbDataAdapter("SELECT Name FROM myTable",myConnection); DataSet&nbs ...Show All
Windows Forms Center form?
Hi. I want to know how I can programmatically set my form back to the center of the screen in .NET 2.0 (C#) I would have modified the form size etc.. during a user selection but then wish to return the form back to the original size (which is done) and then also center the form back to the center of the screen. Would this be the best way this .Left = ( Screen .PrimaryScreen.Bounds.Width - this .Width) / 2; this .Top = ( Screen .PrimaryScreen.Bounds.Height - this .Height) / 2; Thanks! Hi, You should use method CenterToScreen like: private void Form1_Load(object sender, ...Show All
SQL Server It seems SQL editor do not support "Format" function. Is it right?
When I write SQL command in the editor, I can not find a menu to format my command. Also the "Format Document" function in VS2005 Beta2 seems do not delete blank rows. I found a good Format tool here. I realy hope MSSQL 2005 has build-in function like that. http://www.sqlinform.com/ ...Show All
Windows Forms How activate a ChildForm, with a menuItem?
Hi! I have a MDI application. With a menuItemA open the FormA, with a menuItemB open the FormB,..... 1. I open FormA 2. I Open FormB 3. I Open FormC 4. How I can, return FormA in Code Hi Serghio, Take a look at the following article for more information (see "Interaction Between Forms" and also "MDI Interfaces"): http://www.windowsitlibrary.com/Conten ...Show All
.NET Development How to recognise different paths refer to same file?
Two different paths may refer to the same file, e.g. C:\Temp\MyFile.txt, \\MyPC\C$\Temp\MyFile.txt . Is there a way of comparing such paths, and determining whether they actually do refer to the same file (in VB.NET) There's no API (.NET or Win32) that returns true when comparing a UNC to a local physical path. You would have to get the physical path from the sharename and compare the two. You can PInvoke Netapi32.dll:NetShareGetInfo to get the physical path from a server/sharename. See http://www.pinvoke.net/default.aspx/netapi32/NetShareGetInfo.html for examples of PInvoking NetShareGetInfo. ...Show All
Visual Studio Express Editions Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this This is shorter Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim intLetter As Integer Dim arrNumber(0 To 25) As Integer Dim Number As Integer Dim i, y As Integer 'Clear(Label) Label1.Text = "" '------------------------------------------------ Randomize() For Number = 0 To 25 Start: intLetter = CInt(Int((90 - 65 + 1) * Rnd() + 6 ...Show All
Visual Studio Tools for Office Do I have VSTO?
Hi, This is probably a silly question, but I've searched around and haven't been able to find an answer. I have both Visual Studio 2003 standard and Visual Studio 2005 pro (on separate computers). Does that mean that I already have VSTO (I haven't been able to find any evidence of it), or is it something I need to get separately If so, how do I get it (and would there be any discounts available since I already have Visual Studio as well as Office 2003 Pro) Any resources that anyone can recommend would be greatly appreciated. Thanks, Dave Visual Studio 2005 Pro does not include VSTO 2005 as standar ...Show All
Visual Studio Team System Problem with SharePoint when creating a project in TFS beta3
Hi, After installation of TFS beta3 and Sharepoint 2.0SP1 I have problems with accessing Sharepoint. During installation there were no problems, as I have reinstalled twice, I especially looked at the sharepoint part. At the end of sharepoint installation the "Configure Administrative..." opens at it should. After installation of TFS, I try to access the Sharepoint Central Administration from Administrative tools. I'm logged in as TFSSETUP (with administrator privileges). I get a log in window where I write TFSSETUP as user and password. I get the same log in window three times. Then the following appear: Server Error in '/' Application. ...Show All
Visual Studio Team System Source control and Sql2005
Hi I would know if it's possible to use the team foundation source control with Sql 2005 to store project on it. Thanks I don't know if i'm on the good topics .. If by that you mean that you want to use the TFS version control system to store your stored procedures and schema definitions along with the rest of your source code, the answer is yes. You will need to save the stored procedures and schema definitions to files on your disk and add those to the version control system. Buck ...Show All
Windows Forms Raising a (keyboard) event programatically
I'd like to be able to raise a keyboard event from within my code. That is, when a user presses 'a' in a textbox, it triggers a series of events (KeyDown, KeyPress etc) and I'd like to be able to do the same thing from my code. It seems like a pretty common thing to do and I thought I'd found the right function when I found the Control.RaiseKeyEvent() function. Unfortunately, not only can I not get it to work, but there doesn't seem to be any real mention of it on the web (appart from the online MSDN). And the MSDN help itself is ... fairly incomplete. Any help gratefully appreciated. Jero The function you're looking for ...Show All
Visual Studio Team System How to customize a manual test case's format
Hi all, I want to customize a manual test case's format, and which is availabe to all the users of a project when the user creates a new test case in Solution of the project. How could I manage to do it Thanks a lot! Leon Hi Leon Visual Studio Team System provides two kinds of manual tests: word-based manual tests, and text-based manual tests. If you want to customize their format, you will have to replace the actual Manual test at its installation location (with the one that fits the format that you want): ..\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\CSharp\1033\ManualTestWordFormat.zip (for word-based ...Show All
Visual Studio Team System Project creation failing with error "The identity [Project Name]\Project Administrators is not a recognized identity. "
Error The identity [Test]\Project Administrators is not a recognized identity. Explanation The identity [Test]\Project Administrators is not a recognized identity. User Action Warning TF30144: The New Team Project Wizard attempted to roll back all of the steps taken to this point but was unsuccessful. Contact your Team Foundation Server administrator for further instructions. Here is what Team Project Creation log file says.... 10/20/2005 1:56:17 PM | Module: ELeadServiceMediator | Team Foundation Server proxy retrieved | Completion time: 0 seconds 10/20/2005 1:56:17 PM | Module: Wizard | Retrieved IAuthorizationSer ...Show All
