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

Software Development Network >> Joginder Nahil's Q&A profile

Joginder Nahil

Member List

BRCEWANE
Jamie Clayton
AhV Sharky
WinFormsUser13232
J Noble
Leonid Niraev
Nilesh Ingale
Paul Diston
tiberious
Marie-Thérèse
imdqa
TheViewMaster
haydendo
Acanthus
naguaramipana
JFoushee
genius13
Deza
Caleb T
christian bitter
Only Title

Joginder Nahil's Q&A profile

  • .NET Development how to save file to xmlserializer?

    Hi, I've been working on my project using C# windows application. I'd like to know how can I save information to disk. In this case, I want to save when user clicks save button; private void m_SaveButton_Click(object sender, EventArgs e) { XmlSerializer serializer = new XmlSerializer(typeof(Person)); using (FileStream fs = new FileStream("C:\\Documents and Settings\\Ken\\My Documents\\Visual Studio 2005\\Projects\\ListView2\\ListView2\\list1.lvx", FileMode.OpenOrCreate)) { serializer.Serialize(fs, persons); } } If I do that, I get exception. I'd like to know how should I save information using xmlSerializer. Thanks for help. I made d ...Show All

  • Visual Studio Team System Auto Build and deploy ASP.net application

    Hi, I have the auto build running as a schedule executing a batch file which drops the build onto a different server (i had some playing to do with the file structure to get this to work). How do i then deploy the site to IIS on the drop server I can see how to do this with a web deployment project to work on the same machine as the build is run (which is the TFS server) but not on a seperate server. Thanks Steve If I understand correctly, you effectively want to run an application (the setup exe from your web deployment project) on a different computer. You might try using psexec: http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx . Buck ...Show All

  • .NET Development inheritable singleton pattern for windows forms

    Hello! I'm rather new to C# and developing my first commercial application in that language. It contains some forms, and only one instance of each form can exist in the running application. So, each form implements the Singleton pattern is such way: public class Report: Form { private static Report _instance; protected Report() { InitializeComponent(); ... } public static Form instance { get { if (_instance == null) _instance = new Report() ; return _instance; } } ... } So, this code is duplicated in every single form in my application and the only difference between forms is shown in bold in the example. I want to get rid of that duplication, for example, by defining a base clase which inherits ...Show All

  • SQL Server Simple Sum

    I did this before, but for the life of me, cannot remember the actually way to go about it. Im tryin to divide the value in a table by the total (Sum) of the row. Here is what i had in mind. =(Fields!Crash_Count.Value) \ Sum(Fields!Crash_Count.Value) I put this in, and it works: =SUM(Fields!Crash_Count.Value) \(Fields!Crash_Count.Value) but the first one keeps giving me 0.00 %...obviously thats not the answer. Can anyone help. Im just tryin to get the percentage of crashcounts. IT should be simple. Hi Tenchyz You can use the following to get the total for a certain field that would be displayed in the Page Footer: =Sum(Fields!Net_Doc.Value, "testsource" ) Using this you can ...Show All

  • Community Chat .NET Micro Framwork

    Can anyone provide me with more informations about the .NET Micro Framework The official site of the framework (http://www.aboutnetmf.com/entry.asp) is rather laconic and nobody seems to respond at the questions sent using the form from that website. I'd like to know when a public beta of the framework will be available and I'd appreciate any link where I could find projects using that technology or examples involving it. Thanks! Here have a link to Microsoft Connect where you can test some applications from Microsoft, and guess what, the Micro Framework is there : Have a look : https://connect.microsoft.com/programdetails.aspx ProgramDetailsID=759 ...Show All

  • Visual C# new and shiny

    Yep I'm new and shiny to C# - coming from a C and Java background. Been looking for something that lists the base class's apis (preferably HTML - kinda like java's api if at all possible) to get a general idea of what classes are available and what they can do. Have 2 books ordered but would like to get a head start if possible. I have quickly looked at the specification doc provided in the visual studio - not exactly what I am looking for (or maybe just the format of it through me off) as well as a couple quick googles (maybe I am using the wrong search phrases) and a very quick search on these forums (base class api and a few variations). Links, google search phrases, or a spoon/clue would be appreciated. ...Show All

  • SQL Server FullText Results from what column

    I am running SQL 2000 - upgrading to 2005 hopefully Q1-2007 I have a table that has 12 columns fulltext indexed for searching. Is there a way to tell what column has the search string If it is not possible in 2000 what about 2005 Thanks If you do a query like select * from t1 where contains(*,'term') you cannot tell which column the hit was in. You could do a set of queries with each column in turn if you wanted to tell where the term was found: select * from t1 where contains(col1, 'term') select * from t1 where contains(col2, 'term') etc.. In SQL 2005 you can specify a column list in the query (rather than just a single column or *) so you could do queries like: select * fro ...Show All

  • .NET Development Read image data from SQL and use it on web app

    Hi I'm developping an intranet and I wan't to view the images from a database, i allready save the files on a directory and read them from a datalist, what I want to do now is to get the images from SQL, I have done this in windows app but I have no idea how to do it from the web (no problem saving or shrinking the image, the problem is to retrive them to an image on asp net 2.0) thank's Pedro R. David and how can I something like a photo galery (small pics and when click a popup with it's original size) Thank you for the original post ...Show All

  • Visual Studio How to implement codebehind-like behaviour in Visual Studio 2003?

    I'm about to implement a VsPackage in VS2003 that defines a new file type (basically an XML application) which in addition will require some custom code associated with it, in the language of the current project. I couldn't find a good sample or documentation for how this is done in VS; perhaps someone here can help The code behind the XML file should normally not be visible, kind of like the way *.resx files are hidden behind *.cs files, but should appear when "show all files" appears. I realize I was vague when I posted my question; it consisted of two parts, one of which I've managed to solve myself. To create a "nested" codebehind file in the Solution (i.e. a file that is hidden, b ...Show All

  • Visual Studio Express Editions Error of Installation Visual C++ 2005 Express using .IMG image

    Hello, When I tried to install Visual C++ 2005 Express using the .IMG image file, there was always an error message box popup to terminate the installation. The error message is "Error 1335.The cabinet file 'vcsetup1.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package.". However I found that file "vcsetup1.cab" was OK. Also I had tried to install it by internet, but the same problem was happened. What shall I do Could any body tell me the solution. Thanks very much. Jeffrey Thanks for your help. But I have installed the software successfully. Yeah~~~ ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XBox 360: Detect widescreen vs 4:3?

    Right now it looks like our games pretty much dictate their size and whether they're windows or full-screen. But, obviously, once we get to the 360 the choice of windows vs full-screen will be gone. And I get the impression that if we code for 720p that the 360 will automatically downscale if needed. But I still don't know how we're going to detect whether the output is headed for widescreen or 4:3. If we make the choice to program for widescreen only will the 360 letterbox for us, or will it just get squished or truncated While it might downscale to 480 or upscale to 1080, I don't think it'll do any auto magic to translate aspect ratio. "4:3" isn't a resolution... I can run my widescreen TV at e ...Show All

  • Visual Studio 2008 (Pre-release) DataType specific DataTemplates for XML data

    Hi everybody. I am trying to bind data from a XML file to a control using custom DataTemplates for various different XML elements (different tags). The problem is, that the DataTemplates are not applied to the the XML elements of the tag name specified in the DataType attribute. Below you will find some XAML code. Most of it is from the CompositeCollection SDK sample. I mimimalized and changed it to illustrate only the problem of interest. Desired behaviour: Jason , Hercules , Bellerophon (Hero tag) should be displayed in cyan Theseus , Odysseus , Perseus (Hero2 tag) should be displayed in blue However, it simply doesn't work. (I am using the latest September 2006 CTP.) You can reproduce the problem simply by star ...Show All

  • Windows Forms Querying Errorprovider

    Hi all, Does anybody know if I can query errorprovider / control to check if it has an error So, if I set error on myControl like so: _errorProvider.SetError(myControl, errorMessage); Can I programmatically determine if myControl has an error associated with it Hi you can use the ErrorProvider.GetError method :) http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformserrorproviderclassgeterrortopic.asp Hope this helps you out, please close the thread if it does ...Show All

  • Visual Studio Express Editions Graphical operations

    I am looking for some application notes or code samples for graphical operations such as drawing on a form (in VC++ Express). I do see that there is a .NET library namespace called "System::Drawing", so I suspect there is some built-in support for drawing... Also, how easy is to implement graphical operations in a Windows Forms application vs. an MFC application Do I need to migrate to the Standard/Professional editions (and develop an MFC application) to get good graphics support Just to give you an idea, here is roughly what my application needs to do: Allow users to draw a "schematic" (on a Form) consisting of an arbitrary number of rectangles connected by lines (preferably using some predefined shapes) ...Show All

  • Windows Forms Datagriview generated columns uncomplete...

    This is my scenary.... I have a model abstract class A...and i inherit it from an external assembly(let's name it B). I have in the first assembly a ACollection as List(Of T) which holds A collections.   When i try to bind a ACollection to a datagridview it doesn't create columns linked to B declared properties, but only those ines got from base class.   It's funny that calling .Getproperty method on class type doesn't let me obtain these properties, but using getproperties and iterating, this collection contains desired members...   What's happening What am i doing wrong (Moderator: Thread moved to this forum for better responses) ...Show All

©2008 Software Development Network