Software Development Network Logo
  • Visual J#
  • Windows Live
  • Windows Vista
  • Architecture
  • Visual Basic
  • Microsoft ISV
  • Visual C#
  • Game Technologies
  • VS Express Editions
  • Visual Studio
  • Visual FoxPro
  • Smart Device
  • SQL Server
  • VS Team System
  • Windows Forms

Software Development Network >> vaidas's Q&A profile

vaidas

Member List

David Carr
LJ G
Gabo
Pat.
RKRK
tylerl
ruggerz
raidersiowa
Fuzzcv
ACS001
jehan
Larry Mason
wingba
JRHudnutt
GlennAlanBerry
kaebischer
Jay Pierson
Vivek M
Holy
Jason M Archer
Only Title

vaidas's Q&A profile

  • Visual Studio 2008 (Pre-release) Treeview with contextmenu

    Hi Guys, Does anyone know how to display contextmenu per items in the treeview For example I have contextmenu1 and contextmenu2. I want to display contextmenu1 if the selected item in the treeview is parent and I want to display the contextmenu2 if the selected item is child . I've tried to include it in the styleselector but I'm getting an error and I also tried it in the HierarchicalDataTemplate but it's not working either. Did I overlook something Thanks in advance! Below is the code in the HierarchicalDataTemplate --- < HierarchicalDataTemplate x:Key = " Template " ItemsSource = " {Binding ...Show All

  • Windows Forms Form Refresh Question

    I've created a simple form (VB.net 2003) to process whole bunch of data from a database. The form asks for some basic information and has a button to start the process. As the program is running, I am updating a label control so that I can see that the program is actually processing records (I'm displaying customer name being worked on). Here is where I'm stuck... While the program is running (ie. not waiting for user input), if I minimize the form and then maximize it again, the form doesn't refresh properly. All I get is a blank form (just the form border). If I click anywhere on the form, a 'program not responding' message is ...Show All

  • .NET Development OleDb database

    Hi, there is a way to retrieve the counter field value of an MS Access database after inserted a record A general insert query like this: Insert Into SAMPLETABLE(Code, Description) VALUES('aaa', 'description aaa') After execute it, I need to known the value of the counter field. In SQL Server is: SELECT @@IDENTITY In MS Access Thanks There is one thing you have to take care of here. You need to take the value of the counter that the specific insert statement used, not any other one that another user might have invoked. Isolated transaction my be required if your db is accessed by many users, or you might end up relating your child re ...Show All

  • SQL Server Max value

    Hi, I have a question on how to write this code in a better way (the @result should get the highest value of the @variable1 and @variable2). DECLARE @result int DECLARE @variable1 int DECLARE @variable2 int SET @variable1 = 5 SET @variable2 = 3 IF (@variable1 > @variable2) BEGIN SET @result = @variable1 END ELSE BEGIN SET @result = @variable2 END I had planned on using the max function but that only takes one argument (the variables get their values from different select statements). If somebody knows hows how I could optimize this code, please tell me. Thank you in advance BR Mikael ...Show All

  • Visual Studio Team System Web Testing - When used in Load Test, nothing written to System

    Hi, Pretty beginner question, but unfortunitely I've run out of web-ex's to help me out. I am currently load testing a web site and have written a web test which retrieves data from the data source (10 rows) and inserts these rows into the web site. When run through Test Manager, this works and inserts records into the System. I have now included this test in a load test for 8 users, but I'm not quite sure how this is meant to add data to the site as nothing is actually written to the system. In addition I am having difficulty understanding how many requestes are made (as I can't see how many records are added to the system). Thu ...Show All

  • Windows Forms Datagrid selection

    Hallo, I am using Visual Studio.net 2003. When i press ctrl + A in the datagrid all rows get selected, which is the default behaviour. Which event gets  fired when i press ctrl+A In keydown event handler either "ctrl" gets captured or "A". Can anybody explain me how  the rows get selected Or which method gets called by this event thanks swingme I'm sorry, I've looked into this a bit more, and the code sample I gave you doesn't work (the method i was overriding isn't virtual! Oops).  I've looked into it a bit more, and can't seem to get work you need. Sorry. ...Show All

  • Visual Studio Team System Moving from one TFS to another

    I've been running TFS and VSTS for one very large project, and it's been great, except for the fact that our server was a free workstation that really wasn't up to the task.  So, we got a new server.  Now, I need to move the project from the old server to the new server.  It seems like there is no tool, which I'm OK with - if I need to do a lot of manual steps, that is fine.  I was just hoping someone had done this, and could offer any help.  Right now, it seems like the easiest solution is just have one person check out everything , and then add these projects to the new server - but we'll lose our history, and I re ...Show All

  • .NET Development VS 2005 + SQL Express 2005 - Database connection error - An error has occurred while establishing...

    I created a sample application that has a mdf file and tries to connect to the SQL server express with the following connection string. Data Source=.;database=sample;Integrated Security=true;AttachDBFilename=sample.mdf When I open the connection, I am getting the following error. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:40 - Could not open a connection to SQL Server). I also tried enabling Local and remote connections us ...Show All

  • SQL Server dynamic SQL

    I have a problem on dynamic SQL: ... set @SQLString = 'use @dym_commonDB select @dym_out_proj_name = proj_desc from proj_mstr where proj_code = @dym_proj_code' exec sp_executesql @SQLString, n'@dym_out_proj_name nvarchar(50) output, @dym_proj_code nchar(6), @dym_commonDB varchar(50)', @dym_out_proj_name = @out_proj_name output, @dym_proj_code = @as_proj_code, @dym_commonDB = @commonDBName ... the error is: Line 1: Incorrect syntax near ' @dym_commonDB ' . Any idea plz help! You can do the following: declare @execsp nvarchar(500) set @execsp  = quotename(@dym_commonDB) + '.sys.sp_executesq ...Show All

  • Visual C# Closing Dialog Box without ending exe

    At the moment I am trying to use a dialog box to put progress messages on the screen as a long process takes place beneath. The box has a close icon (that X at the top right of the title bar)  If the user clicks on the close icon this then closes the exe, but I would like to be able to keep the exe going and do some recovery routine to re-establish a known condition on the running exe. Any ideas would be very welcome. Thanks In your "Program.cs" file, your Main() function should look something like this: static void Main() {     Application.Enable ...Show All

  • Visual C# How to Play Sound in Windows Application?

    Hi everybody,   Is anybody knows how to play sound (*.wav) files in windows application I tried using Microsoft media Player it works but the DLLs are huge. Is there othe way to do this Thanks. denpsia Hi Guido,    Thanks for reply, in mycase only wav files. I don't knwo if possible for .mp3 files. den2005 ...Show All

  • Visual C++ Running a program?

    I have built a program on calculating the area of a rectangle as the user inputs the length and width. It works fine, however, my question is. If I want to send it to someone, what files from the whole folder do I need to send (.zip ). Also, how will they be able to run it, without a compiler. I can easily run it from: C:\Documents and Settings\Peter\My Documents\Visual Studio 2005\Projects\optut\debug however, as I've seen other programs, they usually have just a simple .exe file.   If it helps, here is the code:   using namespace std; int main() { int length; // this declares a variable ...Show All

  • Windows Forms Property Grid problem

    I am using a PropertyGrid in my windows forms project to display and modify the properties of my custom class.  Most of the properties are working fine, but one of the properties is another custom class, how do I determine which values appear in the property grid and how they relate to instances of my class Thanks in advance. To echo ...Show All

  • Visual Studio Query TFS

    How can one query the TFS to fetch the published data (e.g. test results, coverage results...) in TFS Is there an object exposed by TFS or does one need to query the TFS database directly . Its possible you may get an answer quicker on the VSTS specific forums, like http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=20 and http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=22 ...Show All

  • Windows Forms WebBrowser interaction help

    Used to be with the ActiveX web browser you can use - AxWebBrowser1.Document.All("username").value = "HackMax" to set a value of an element in an HTML document. How do you do it with the new WebBrowser control in .NET 2.0   What does "value" pertain to Would value be the name of a textBox or something on the webPage you are sending your string to ...Show All

©2008 Software Development Network