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

Software Development Network >> Ģ&#174&#59;€ğ&#167&#59;QĻ's Q&A profile

Ģ&#174&#59;€ğ&#167&#59;QĻ

Member List

Damien fromOZ
mastermind1429
Michael Hecht
GeorgeBH
LouisPeter
montaquehou
codetale
TerriM
marco.beninca
thanasis_b
2162
madenci
sshaju
Dan Waters [MSFT]
JWhite
robertpnl
miniuko
mike11d11
Rups11
Balamurali Krishnan
Only Title

Ģ&#174&#59;€ğ&#167&#59;QĻ's Q&A profile

  • Visual Studio Show WinFrom Add-in for windows.

    Hello There, I have created an add-in for MS-Word application. I have written program using C# 2.0. In that application I want to show a 'From' on some command bar button click. The problem I am facing is that at first time that form is coming properly but on subsequent click that button's click event is not get fire. I have written Code Like this. cmdData = ( CommandBarPopup )oStandardBar.Controls.Add( MsoControlType .msoControlPopup, omissing, omissing, 3, true ); menuCommand1 = ( CommandBarButton )cmdData.Controls.Add( MsoControlType .msoControlButton, omissing, omissing, omissing, true ); menuCommand1.Caption = "Button1" ; menuCommand1.Click += new _CommandBarButtonEvents_ClickEventHandler ...Show All

  • Visual Basic ListBox.Items.Add() doesn't work for me

    Hey everyone, I'm trying to add data to a listbox, but I get a object reference error. Here is a exmaple of my code: The listbox is already on the form: listbox1.Items.Add("Test") listbox1.Items.add("test1") When I run this code, I get a object reference is set to null(System.NullReferenceException) Can anyone help thanks, Brandon M. Hunter Me .lstBxSC = Nothing Dim x As Integer For x = 1 To 50 Me .lstBxSC.Items.Add("Item " & x.ToString()) Next x Here is my code. lstBxSC is a listbox control that I drag onto the windows form. I'm kind of suprise why this doesn't work. Can anyone help. Thank you ...Show All

  • Visual Studio 2008 (Pre-release) How to crop an Image using Stretch="UniformToFill" using center of image

      I have a ListBoxItem which is basically an <Image Source="{Binding }> of specific size and aspect ratio - I need to smartly scale and crop the source images to fit the <Image> element. The Stretch="UniformToFill" does exactly this, however, it seems that the cropping is a top or left aligned, and not a "centered" crop. uhgggg.... Is there a way to get UniformToFill do a centered crop I have assumed not, and gone down the path of doing the cropping myself as such" class ObservableCollectio<BitmapImage> foreach (FileInfo f in _directory.GetFiles("*.jpg")) {     bm = new BitmapImage(new Uri(f.FullName, UriKind.RelativeOrAbsolute));     if (bm.Height > bm.Width)  &nbs ...Show All

  • .NET Development Application freezes frequently

    Hi there My problem is that my Win32 Service freezes frequently (currently every 2-4 hours) and I hope anyone has an idea why it does... The application is structured as follows: 1. .NET 2.0 Win32 Service hosting Microsoft WF Runtime 2. WebServices accessing Win32-Service via Remoting (SAO, Singleton-Objects) 3. Client-Application accessing WebServices When a client is accessing one of the WebServices, the WebService calls a Util class from it's constructor that does the remoting configuration if not already done and returns a proxy object of the gateway for the current webservice (e.g. security.asmx --> SecurityManagerGateway) by using Activator.GetObject(type, uri). This seems to be done on every call to the webservice.. ...Show All

  • Visual C++ Displaying MessageBox in OnInitDialog handler

    When i try to put a messagebox in the OnInitDialog Handler using VS2005 the dialogs modal property is removed. BOOL CDlg::OnInitDialog() { CDialog::OnInitDialog(); AfxMessageBox("hi"); //This message box removes the dialog's modal property and it default properties. return TRUE; } CMyView::OnShowDialog() { CDlg dlg; dlg.DoModal(); } Is this a bug or am i wrong somewhere 1. The dialogs modal property is missing it became modeless. 2. The default location of the dialog was set to centerparent but after displaying the messagebox dialog's location is defaulted to windows default location ...Show All

  • SQL Server Excel Connection Manager and expressions

    Hello, I have a question regarding which expressions need to be set to have the excel connection manager be able to create/update a file dynamically. I'm reading a path in from a database and storing it in a variable. The path is just the location of an excel file. What I would like to have happen is that the excel connection manager be dynamic so that if I wanted to change where this file went or the name I could simply change the value in the database. I've tried setting the expressions, in the Excel connection Manager: ConnectionString,ExcelFilePath, and Servername to the variable \\path\folder\file.xls with no luck. The ConnectionString seems to be a little funny because it contains Provider=Microsoft.Jet.OLEDB.4.0;Data sourc ...Show All

  • Visual Studio 2008 (Pre-release) Binding XPath=namespace:name

    Hello. I need to databind to an attribute that has a namespace, for example <tagname abc:att="123"/> I tried everything, including XPath="@abc:att" but it doesn't work. how can I do that Thanks! you should add XmlNamespaceManager from the sdk <XmlNamespaceMappingCollection x:Key="mapping"> <XmlNamespaceMapping Uri="http://purl.org/dc/elements/1.1/" Prefix="dc" /> </XmlNamespaceMappingCollection> <XmlDataProvider Source="http://msdn.microsoft.com/subscriptions/rss.xml" XmlNamespaceManager="{StaticResource mapping}" XPath="rss/channel" x:Key="provider"/> ...Show All

  • SQL Server Multiple reports to multiple tabs

    No, this is not a single big report that needs to go into different Excel tabs but different reports that need to go into separate tabs. Chris, What if I want to have a *single* report that exports to an excel workbook with several worksheets - example ... one report that runs for 10 clients and when exported to excel it should be a single workbook with each worksheet named with the client's name rather than Sheet 1 , Sheet 2 , Sheet 3 etc ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Detecting a double click

    I've tried writing some of my own code and I've also tried the "Input Component" tutorial on XNA Spot, but I can't seem to recognize the second click in a double click. My application just reacts as if there was a single click. I'm looking for either a way to recognize it as 2 clicks, or have some flag that tells me it was a double click. Either one would be fine. Any help would be greatly appreciated. Besides this little issue, I have been very impressed with XNA so far. Bill Jeff, Yes I think you answered the real question, it looks like you agree that there is a bug in the click processing. And I agree it looks like it has something to do with the windows double click interval. I really don't care if it's a ...Show All

  • SQL Server Five new SQL Server Express Absolute Beginners Videos now available!

    In our continuous effort help new developers get better acquainted with SQL Server Express, we’ve released five new learning videos to bring the total number of videos to thirteen – that’s almost nine hours of video-based instruction! The Absolute Beginner video series is designed for new users interested in learning the basics of how to create, manage and connect to SQL Server Express databases through self-paced and on-demand learning resources. The new videos include: § Using SQL Server Management Studio Express § Getting Started with Reporting Services § Embedding, Packaging and Deploying SQL Server Express Reporting Services § Creating and Using Stored Procedures § Enabling Full-Text S ...Show All

  • Visual Studio 2008 (Pre-release) How to measure control using particular template without applying it?

    Hi all. I have control instance with some template applied. Then I need to measure this control with other template _without_ applying it. I need something like "predict" control's size with other template without changing current visual appearance of the control. Is it possible SerialSeb, Sorry for my messy explanations :) Now I dont have problems with contol copying anymore because I found the solution. All you need to measure control with alternate template is to save current template, then set a new one, and then measure control; after all you should set old template back. During this process the control doesnt change its visual appearance. So it's happened to be very simple. The code look ...Show All

  • Visual Studio To make blank spaces of columns to zero

    my sql query returns some null values which are displayed as blank spaces in the report viewer table,i would like the balnk space to be replaced by 0 ...if perfom the following in the expression =iif((IsNothing(Fields!ID__NA__.Value)), "0" ,Fields!ID__NA__.Value.ToString()) which essentially has to set the field value as zero but which is throwing error...i have also tried with other comparison expressions ,like,= etc with " " ...pls tell me how to proceed with this ...Show All

  • SQL Server Msg 3710, Level 16, State 1, Line 1

    Hello Folks, I am moving the model & Msdb databases to a different location and I have this error. Thanks Msg 3710, Level 16, State 1, Line 1 Cannot detach an opened database when the server is in minimally configured mode. What command are you using...the Alter DB stmt only works with TEMPDB...I thought I am getting " Cannot detach an opened database when the server is in minimally configured mode." as well. I set the trace flag -T3608 and I get the message when I exec sp_detach_db 'msdb' ...Show All

  • Software Development for Windows Vista No Net Send on Vista?

    I have deployed Vista on 2 machines 64 Bit AMD machine and a pentium D processor 32 Bit machine. I wanted to use the Net Send Feature of Windows But unfortunately I am not able to cofigure it through the My Computer -> Mange-> Services Screen... There is no "Messgenger Service" to start of stop. Is this service still supported or it has been made obsolete or does it run under any other name or anything else needs to be done to get it working Please help... Chanakya! Gwhunter07 wrote: i keep getting the message that 'msg' is not recognized as an internal or external coimmand. i just want to know how to send a message through vista. but everybody keeps telling m ...Show All

  • .NET Development DataTable.Merge() method help, not persisting changes

    vb2005 hi, im implementing a sort of AutoBackup feature for a bound form in my app. every 5 minutes i save the datatable's changes to a XML file. if my app crashes, next time i load the form i get the recover screen, which loads the XML file back in, merges it with the current working datatable (last saved one from database). problem is when i update the datatable back to the database. the columns that i merged back are not being persisted to the database. the only way to get them to persist is to go to the TextBox bound to the column, make any change there, and then update the datatable. something is wrong here, let me show a bit of the code: '''' THE CODE THAT SAVES EVERY 5 MINUTES TO XML STORAGE: If MySQLDataset.HasChanges() T ...Show All

©2008 Software Development Network