Software Development Network Logo
  • IE Development
  • Microsoft ISV
  • Visual Basic
  • Visual C++
  • Game Technologies
  • VS Team System
  • Visual Studio
  • Windows Forms
  • Visual C#
  • SharePoint Products
  • .NET Development
  • SQL Server
  • Audio and Video
  • Windows Vista
  • Visual FoxPro

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

zkhan

Member List

mh1hep
Pete_M
weeks61
dhenry
Eigil
ranwel
John Paul Cook
Badhris
Joel Triemstra
Castrum
Sransom_au
Wout
Alex1st
Martin Knotek
yonelay
slippyC
BiBi MeiMei
Escimo
acf
gmedia
Only Title

zkhan's Q&A profile

  • Visual Studio Team System Team Queries in Custom project template referencing iteration path.

    I have edited the default team queries for my project template, to exclude an iteration called 'Deleted'. The classification file is imported successfully when creating a project, but the team queries fail with: TF51011: The node specified is not found in the classification hierarchy. The error is caused by 'Deleted' . Is there a way to edit the default team queries after the project is created ++Alan Hello Alan, You can edit the query from Team Explorer. Expand the project you just created in Team Explorer Expland "Team Queries" folder Select the query you are interested in, Right click and select "View Query" Now you can edit the query and save it. Hope this helps, ...Show All

  • Visual Studio 2008 (Pre-release) TextRange

    Hi I am having trouble saving Images from a flowdocument into an RTF document. I use the TextRange object to get my data which I build up using paragraphs and inlines. I use Avalon Image objects to add Image Inlines to my document. Then I just use the TextRange.Save method to save my data, using the RTF format. The problem is that only my text gets saved (including its formatting), but all my images are gone. Is is possible to save images along with the text Thanks! bbg I use this approach: Image image = new Image (); image.Stretch = Stretch .None; image.Source = new BitmapImage ( new Uri (fileName)); new InlineUIContainer (image, this .richTextBox1.CaretPosition.GetInsertionPosi ...Show All

  • Visual Basic nextinstance

    hi, i wrote a single instance application - a pic viewer. if i double click on an picture file it opens up my app with that file. now if my program is runnin and i open up one more pic i'd like my program change the shown pic to the new - i know i have to write this in the application events, the StartupNextInstance event but don't know how to get the path of the second pic. any idea thnx What does the URI show when you've selected single instance app, and the user re-clicks the application Try with a timer or something to see if it changes. If it doesn't, it likely you will have to make it a deployed application, or live with the fact you can't do what you want because 'this is the way it must be done' (not sure why ...Show All

  • Windows Forms working with 2 forms

    Hi all Im like this topic much and I have a same problem with 2 forms For example I have 2 form I open form1 first, and i have label1.text="first"; then I open form 2 , it has a textbox and a button OK when I write sometng in this textbox llike" change label1" and click Ok and close form2 then i see from1 it was automatically change the lable1.text --"chang label1" Could I do it Thank you very much If you want instant feedback to label1.text. You will need to create an event delegate for the textbox TextChanged event in form 2 that form1 has to catch. Works for both modal and modeless. If the form 2 is modal(ShowDialog), then you can just assign form.label1.text = form2.textb ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Matrix Interpolation and gameTime

    I made a simple cube and created two translation matrices: start = Matrix .CreateTranslation(-20, 0, 0); finish = Matrix .CreateTranslation(20, 0, 0); Then, I figured I could create this simple animation using linear interpolation and the game time, by using the general formula inside a game component: effect.World = Matrix .Lerp(start, finish,     (currentTime - startTime) / (endTime - startTime)); I tried all four permutations of updating the time (ElapsedGameTime in update/draw and ElapsedRealTime in update/draw), although I would think that updating in the draw method with ElapsedRealTime would provide the smoothest interpolation. The problem is that the animation is not completely smooth.  It has some ...Show All

  • .NET Development Reading file size and then store the name, date and size in database

    I'm trying to make a program that basically say that every morning run this directory and scan through all the files. Then record the name, size and the date and then compare with the one that already existed in the database. If everything is match then pop up message say GOOD. If something has been changed then pop up a message say NOT GOOD. But aslo if i know that there was an update on the file so the date has been changed, that program should also have an update function to update the database. For instance File1 800kb 7/18/2006 File 2 1mb 7/17/2006 because this is the first time i run this program so i have to insert this into the data base. so after inserting, the database will have a list of file 2 and 1 with ...Show All

  • Visual Studio 2008 (Pre-release) Code expression in XAML

    Hello friends. How could I put an expression in XAML format to do this (for example): C# would be: myControl.Height = otherControl.Height + 1; Thanks. Check this out: http://blogs.msdn.com/llobo/archive/2006/11/13/Arithmetic-operations-in-Xaml.aspx ...Show All

  • Visual Studio 2008 (Pre-release) Customizing WPF DataTemplates....

    I have defined a dataTemplate as follows: <DataTemplate x:Key="photoTemplate_Small"> <Grid Width="Auto" Height="Auto" x:Name="Grid" Margin="10,10,10,10"> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Margin="0,0,0,0" Width="Auto" Background="sc#1, 1, 1, 1" x:Name="Border" BorderThickness="0,0,0,0" CornerRadius="8,8,8,8"> <Image Source="{Binding Path=ThumbNailPhoto}" Width="100" Margin="5,5,5,5" x:Name= ...Show All

  • SharePoint Products and Technologies Reorting Services and MOSS 2007

    Hello Can someone point me to an article on how to hook up MOSS 2007 to reporting services installed on another box Thanks Hi Ray, I think you need to install SQL 2005 SP2 and the associated sharepoint addin. (Trying to get this working myself.) http://download.microsoft.com/download/f/2/5/f250ed72-c102-4216-8653-63189e24fa02/readme_rsaddin.htm#_rsshare_installation_3 Martin ...Show All

  • Visual C# Collection Differences

    I want a collection for dynamically adding/removing/sorting lists of strings. From what I can tell, the best options are List and StringCollection, but what I can't tell is what exactly the difference would be. They both seem to have many of the same methods, and in the documentation they are both used as examples of Collections that are not prone to performance hits (at least, for my usage). If anyone could explain to me what the difference is, and why I might prefer one to the other, that would be greatly appreciated, as right now I'm very confused, and don't want to start using the wrong one only to have to find that out a while into the programming! Thanks very much! There not a lot of differen ...Show All

  • Visual Studio Express Editions launching an exe from application menu

    how do I launch an external program from my application menustrip If I understand correctly this is what you need: Process::Start(Path::Combine(Application::StartupPath, "subfolder\\myapp.exe" )); Application::StartupPath gets the folder where your executable is, Path::Combine combines this path with the subfolder/exe file that you want to start. ...Show All

  • SQL Server How to insert records into two tables that references each other?

    I have two tables , A1 and B1 . B1 has a reference key pointing to A1.ID which is a primary key. Now I want to INSERT a record into both table. CREATE TABLE a1 (   T_ID INTEGER IDENTITY(1,1) PRIMARY KEY,   T_Test INTEGER NOT NULL, ); CREATE TABLE B1 (   B_ID INTEGER IDENTITY(1,1) PRIMARY KEY,   T_SID INTEGER NOT NULL REFERENCES a1(T_ID), ); -- A function to get the next primary key value -- Get the next unique key from A1 CREATE FUNCTION [dbo].[getTicketNo] ( ) RETURNS INT AS BEGIN               RETURN (SELECT Max(T_ID) from A1) END I can only insert a record into a table at a time.  and I rely on dbo.getTicketNo() to get the lastest T_ ...Show All

  • SQL Server Linked servers and Windows Authentication

    I have seen similar questions, but none of the answers have solved my problem. I have several SQL2000 servers running under Win2003. In the past, we have been using SQL logins, but I have been trying to transition to using Windows Authentication. It has been working great except that sometimes queries using linked servers fail. The linked servers are set up for the connection to use the login's current security context. For testing this problem, I have limited myself to two servers to do this between. My Windows account is defined with sa rights on both servers. I have tried explicitly to impersonate my account, I have told it to explicitly use the same account and password on the other server. I have tried not listing my account ...Show All

  • Visual Studio Team System Problem with adding web reference

    I am gettting eror when I try to add a data generation plan. The error message is; Error HRESULT E_FAIL has been returned from a call to a COM component. Can anyone tell me what this error message means How do I fix it thanks Jennifer This forum is not going to be able to help you with this question; please redirect your question to http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=46&SiteID=1 " ASP.NET Web Services and XML Serialization" -GertD ...Show All

  • Windows Forms Display ListViewItem ToolTip for Entire Row

    Hi, I'm having trouble getting a ToolTip to display for my list view. It's likely that the list view will be too narrow to display all of the columns so I want to pop up a tool tip displaying the item when you hover over it's row. The problem is I have fullrowselect = true so it only shows the ToolTip when hovering over the item, not the subitems. I've tried this: private void lvPeople_MouseMove( object sender, MouseEventArgs e) { ListViewItem it = lvPeople.GetItemAt(e.Location.X, e.Location.Y); if (it != null ) { toolTip1.SetToolTip(lvPeople, it.ToolTipText); } } and I get no tooltips at all. That worked, the problem I was having was that the ListView's ShowToolTips property was still ...Show All

©2008 Software Development Network