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

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

abhishek_6023

Member List

r3n
h1
Ather.
cobain81
kenniejaydavis
Speedbird186
Azaz
Arda Cetinkaya
cryptonik
Christian Sparre
David Ghikas
ChillyWilly
Ather.
Keith Henkel
Vegar Imsland
Mark J.
Stephen Turner
Anand Raman - MSFT
Husk60
srinivt
Only Title

abhishek_6023's Q&A profile

  • Visual Studio 2008 (Pre-release) Xaml : Binding Two Controls to one data source

    Hello All, I'm running into a problem and I was wondering if anyone could help me out. I'm trying to data bind two combo boxes to one data table. I've got it to work, however when I change the selection of one combo box, the other one changes as well. I've seen a lot of documentation on how to solve this problem in the 2.0 framework, however, I've not seen any help on this topic so far. I would like it so that the changes between the combo boxes are independant of each other (i.e. combobox1 can select item 1, and combobox2 can select item 2) Here is my code... C#=================================================== ...In the my Page object's .xaml.cs file... DataTable table = new DataTable("table1"); DataCo ...Show All

  • Visual Studio 2008 (Pre-release) Replacing contents part of a view

    I want to create a "main view" that has toolbars and underneath it will be the "contents" area. The contents area will be filled with the view based on the toolbar button that was selected. Is there a way to pop another WPF view into the contents area of another view ie. in WinForms you could have a Panel and then create multiple UserControl views, and then put the UserControl onto the Panel based on the toolbar item selected. How can I do this in WPF Thanks. ...Show All

  • Windows Search Technologies WDS 3 beta 2 quick results problem

    If you search for a contact using the deskbar and the contact does not have a first or last name (as is common for something like an airline). The record will still be listed in the popup list, but it will be blank. The search results should show the company name if there is no first or last name. It would also be really nice to implement tool tips on this entries so that you could mouse over a name and see the phone number. tcrussell, Thanks for reporting this issue. I'll provide the feedback to the team to see if we can get the extra features into the next or a future release. Thanks again, Paul Nystrom - MSFT ...Show All

  • Windows Forms ConfigurationManager

    I'm trying to teach myself about ConfigurationManager. I am using VS2005 Standard Edition & C# & .NET v 2.0.50727 I have added to the op of my unit: using System.Configuration; using System.Configuration.Assemblies; My Problem " ConfigurationManager " is not listed in intellisense. When I try to use it as a Type, I get the error "The name 'ConfigurationManager' does not exist in the current context" I am totally puzzeled! Anyne know why I can't use Configuration Manager. Is it supported by the StandardEdition Thanks ...Show All

  • .NET Development Using .config file

    Hi there, I have a standard c# class project (ie it's not a win forms project) which includes an application.config file. I have code which seeks to read some configurations from the file using the standard code - ConfigurationSettings.AppSettings["KEY_NAME"]. However, the code doesn't return a value. But the same code seems to work when I'm using it within a winforms project. Surely I'm missing something simple here PS My code is using the System.Configuration namespace - using System.Configuration; Cheers. :) I just wanted to say that different classes should use different keys. For example by including the class name in the key. Class A would have A_setting and class B ...Show All

  • Windows Forms How to hide controls using a loop

    Hi, I'm trying to hide all the buttons and textboxes on my form using a loop, I used to do this is visual basic and i remember de code was something like this: For each(control in me.controls) If Typeof Control is Button Then Control.visible=false End if Next I'm trying to do the same using C# but it doesnt work, could someone help me please. Thank you in advance. The is operator is used to check whether two objects have compatible types. This operator is not available in VB. When you have TextBox/Button controls in a container, you need to check them too. Therefor, it is best to make a function that can be called recursively. private void HideControls( Control parent) {    ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Questions

    Hello, I have been trying to learn game programming for about a month now. I need some help. I have not found a lot of free sources on the internet to learn directx 9.0c in C#. I find plenty in C++. Is C++ a better language for game programming. Someone told me C++ gives the game a little more speed but I don't mind it being a little bit slower. Also, I just saw on a website that when DirectX 10 comes out DirectX 9 will be nothing.... They said they rebuilded it from ground up..... Does this mean I should wait a couple months for DirectX 10 to come out before I learn to program games Or should I learn OpenGL. I heard it is easyier to learn but I also run into the same problem, I can not find any tutorials that will show me how to do it ...Show All

  • SQL Server data conversion - numeric to string loosing precision

    Hi All, i'm using a "data conversion" object to convert a numeric field to a string just before i save the record set to the database. the problem is when this numeric field is > 0 it looses the precision on its decimal value. example, if numeric value is 0.32 after converting this to a string, the new value will be : .32 it's lost the 0 infront of it. i can't do this converion in the query level because it's a derived field, so i need to convert it to a string before stroing it. when converting to string i'm using the code page 1252 (ANSI - Latin I). i also tried with unicode string both looses this 0 infront. can any one help on this You might find it easier to use string formatting in the scri ...Show All

  • .NET Development Static method in an Interface?

    Is there a good reason why static method cannot be defined for an interface A static method must be implemented in the type that defines it. An interface has no implementation. Therefore a static method in an interface is a contradiction. An interface represents a contract of what will be implemented. You never create an instance of an interface. Instead you create instances of types that implement the interface. Michael Taylor - 2/7/07 http://p3net.mvps.org ...Show All

  • Windows Forms Value of databound text box can't be set programitcally

    I have a text box on a tabbed panel which is data bound to a SQL table.When the user clicks on a tab the corresponding databindingsource creates a new record through addnew() and then the value of a text box is set to a variable set in a previous event. I know the value of the variable is fine but I was wonder if there was any update or refresh command that I need to run to display the updated text. To make it little clearer here is a sample of the application : private void tbPayments_Selected(object sender, TabControlEventArgs e) { switch (e.TabPage.Text) { case "Cash Payment": cashBindingSource.AddNew(); receiptNoTextBox2.Text = MyData.GetReceiptNumber().ToString(); bre ...Show All

  • Visual Studio 2008 (Pre-release) Bind Image to single xmlelement

    I'd like to bind an Image's datasource to a single element in an XmlDataProvider. Each element in the Xml has a unique ID and the image knows the ID it needs to bind to. Is there a way to set the binding of my image so it searches for the appropriate element Brian Here are the controls from Window down to the CaptionImage: Window->DockPanel->ScrollViewer->Grid->ViewBox->Canvas->CaptionImage ...Show All

  • Visual Basic String$ versus String

    A fellow developer uses "string$" but has no idea why he uses it. So I pose this question to the pros because I've always used "string". What is the difference between using "string$" and "string" " uses "string$"" Uses string$ as what $ is not a valid character in a C# identifier so I don't see how he can use it. Are you sure it's C# and not VB ...Show All

  • .NET Development More on Multithreading and Sychronization

    Since Threads of a higher priority will normally preempt lower priority threads, Is there a means of guaranteeing that a section of code executes from beginning to end without preemption What if the higher priority thread wants to access the section of code which it preempted. You will have a deadlock situation. The higher priority thread will simply block, giving the lower priority thread enough CPU time to finish its job and release the synchronization object. The Windows thread scheduler uses temporary priority boosts to solve priority inversion problems that can occur when multiple threads interact with each other, you'll find it described in this KB article . ...Show All

  • Visual C++ WindowProc: cannot convert from 'LRESULT (__stdcall *)(HWND,UINT,LPARAM,WPARAM)' to 'WNDPROC'

    Hello, I am having a problem setting up a generic Win32 application . Specifically, when I'm filling out the WNDCLASSEX structure, the compiler shows an error when I try to assign the window procedure function to the lpfnWndProc member variable. Here is the relevant code : WNDCLASSEX wcl; wcl.cbSize = sizeof( WNDCLASSEX ); wcl.lpszClassName = g_szWinName; wcl.hInstance = hInstance; wcl.lpfnWndProc = WndProc;     // Error here wcl.style = 0; wcl.hIcon = LoadIcon( NULL, IDI_APPLICATION ); wcl.hIconSm = LoadIcon( NULL, IDI_WINLOGO ); wcl.hCursor = LoadCursor( NULL, IDC_ARROW ); wcl.hbrBackground = (HBRUSH)GetStockObject( WHITE_BRUSH ); wcl.lpszMenuName = NULL; wcl.cbClsExtra = 0; wcl.cbW ...Show All

  • .NET Development Formatting XML - Passing XmlReader to an XmlWriter

    What is the best way to format and Xml string fragment I have an Xml string fragment that is un-formated, i.e. no carriage returns or indents, etc.. I need to display the Xml on a form with indenting, in a normal beautified fassion. What would be the best way to do that I thought I might be able to pass an XmlReader to and XmlWriter with the appropriate 2.0 XmlWriterSettings but this does not seem to work. Can someone tell me how best to accomplish this Code example below: public static String GetFormatedMessageForDisplay(String xmlFragment ) { XmlWriterSettings xmlWriterSettings = new XmlWriterSettings (); xmlWriterSettings.ConformanceLevel = ConformanceLevel .Fragment; xmlWriterSettings.Encoding = Encod ...Show All

©2008 Software Development Network