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

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

Jegant

Member List

Glenn Haworth
SamuraiJack
tylerdn
Soup01
R.Papa
JRQ
.NETBloake
Lawrence Parker
PhilAJ
Rafael Mores
愛青蛙
can_thing_beat_hulk
R.Tutus
Tammt
SpamT
Stéphane Turcotte
eldiener
mfischer4
Ghanshyam Singh
arkiboys
Only Title

Jegant's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Creating/Destroying an object.

    So, I was working on a new update to my game, when I realized that I have no idea how to create or destroy an object outside of the beggining of the game. I've been looking through tutorials, but so far I haven't found anything useful. Can anyone tell me how to do this, or link me to a tutorial on the subject I'd be most grateful. :D What you are going to want to do is store a list per object type of relevant game objects (like powerups, bullets, enemies, etc) instead of hard-coding references to an explicit number of objects in your initialization code. Adjust your update and drawing code to work with the items in these lists, and at that point "creating" and object simply consists of initializin ...Show All

  • Visual C# question marks in parameter list

    I have a Fill Method and when i mouse over it the parameter list reads int, bool, string....this means nullable right How do i pass values to nullable types....when i pass it 12, false "hello"....It tells me that the arguments i have specified are are invalid for this method any help with this..... Two observations (which may not be of much use). One, in C# the question mark trails the type name for nullable types i.e., it's int not int. Two, you can't use 'string' as the type parameter T for System.Nullable<T> (or T ) because string is a reference type not a value type so your third parameter can't be a string nullable type. The following code fragments compile and run okay for me public stati ...Show All

  • Visual C# check All in CheckedListBox

    Hi i have CheckedListBox with much items i want when i press on CTRL key down then i click on checked item from this CheckedListBox i want to checked all items in this CheckedListBox else if i press on CTRL key down then i click on unchecked item from this CheckedListBox i want to unchecked all items in this CheckedListBox thank you very much I would suggest putting something like this in an event handler that handles the CheckedListBox’s ItemCheck event:             //If (just) Control key isn't pressed then allow things to go normally by returning.             if ...Show All

  • .NET Development returning an array of classes from Web Service

    Hi there I am following a web services code example from the book ASP.NET Unleashed (chapter 22, page 972 "XML Web Services and Classes"). Basically a web page is supposed to call a web service that returns news items in the form of an array of classes. Firstly the web service references the following separate class which defines the NewsItem object : using System; namespace MyComponents { public class NewsItem { public string Headline; public DateTime Posted; public string URL; } } The web service code that returns an array of NewsItem classes: using System; using System.ComponentModel; using System.Web.Services; using MyComponents; namespace BetterNewsServ ...Show All

  • Visual Studio Team System Automatic email notification when Work Item is assigned?

    Is there any way to get vsts to send email notification to person when there is a new work item assigned to him/her There is no built in mechanism for this, but you can subscribe to the WorkItemChanged event using the bissubscribe tool. Here is a post that should help get you started. It sends out an email regardless of who they get assigned to. http://blogs.msdn.com/psheill/archive/2006/02/01/522386.aspx -paul ...Show All

  • Visual Studio Express Editions Failed to create .NET frameworks Propertygrid component

    Hello, I get the error above when attempting to open the properties of my Visual Express project. I work with Visual Express on this project for more than 1 year, and got this error after a crash of Visual Express. I never install a beta version on my computer and tried to uninstall VisualExpress, following all the Aaron stebner instructions I found in its blog page. : After being sure that no more VisualStudio, VisualExpress, MSDN, GAC, files (in the %windir%\assembly, in the registry, in the "program file" and the "documents & settings" folder, ...) remain in my computer, I donwload and install VisualExpress Edition But without sucess ! Always the same error when I open the property page of my projects. I u ...Show All

  • Visual C++ ASSERT error on Visual Studio .NET 2003

    I have a dialog mfc application with a main dialog. With a button in the main dialog I launch a second dialog. All the controls in this second dialog worked fine. But for some reason everything went wrong. I placed a list box for example on the dialog and I added a control variable for it and I called it NameList. Then I have a piece of code in the dialog NameList.ResetContent(); It compiles fine with no problem, then when I run my application and launch the second dialog it works great. But as soon as the NameList.ResetContent(); code executes I get the assertion error. Here is some details about the error: afxwin2.inl line 698 (The code on line 698 are given below) _AFXWIN_INLINE void CListBox::ResetContent() { ASSERT(::Is ...Show All

  • Software Development for Windows Vista Bound Dynamic properties not retained after save - Using Vihang Dalal's Designer Rehosting

    I am using Designer Rehosting code posted by Vihang Dalal. I am also using DynamicPropertiesActivity from Ghenadie's blog. I create a workflow with DynamicPropertyActivity as one of the activities. Added 'strTest' to DynamicProperties collection. In order to be able to use this attribute in the rest of the workflow to bing to other activities, I believe I have to bind 'strTest' to a new member. So created a new Property member say dynProp_strTest. I can now use dynProp_strTest to bind to other activities. So far so good. The issue comes up when I try to save this workflow and then reopen it again in Designer. I can no longer see the new member 'dynProp_strTest' that I created. I understand it is getting lost during Save, but do not exactly ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Trouble with color with 3D lines

    I just learned how to plot 3D lines - I mean actual 3D lines. The problem I hit is with their colors. I cannot quite control it - need advice what to read or in case I am missing an "obvious" declaration or something. I declare the line like: Verts = new CustomVertex . PositionColored [2]; Verts[0] = new CustomVertex . PositionColored (0, 0, -100, Color .Red.ToArgb()); Verts[1] = new CustomVertex . PositionColored (0, 0, +100, Color .Red.ToArgb()); Then I draw it like: device.DrawUserPrimitives( PrimitiveType .LineList, 1, Verts); I noticed that its color - you see up I set it to RED - varies depending on things I do not yet understand - like for example If I had defined a material for a ...Show All

  • .NET Development Trace.Refresh() does not refresh filter of listener

    I wrote a simple console application with following code in the Main() function: Trace.TraceError("Error output"); Trace.TraceInformation("Information output"); while (Console.ReadLine() != "n") ; Trace.Refresh(); Trace.TraceError("Error output"); Trace.TraceInformation("Information output"); The app.config file has following lines: < xml version="1.0" encoding="utf-8" > <configuration> <system.diagnostics> <trace autoflush="true"> <listeners> <add name="FileTracer" type="System.Diagnostics.TextWriterTraceListener" initializeData="logfile.log"> &l ...Show All

  • Visual C++ Problem about format marks

    When I type in the text editor of Visual Studio(C++) IDE, everytime I press space, or a tab, there is a dot or an arrow marking it. I cannot figure out what I turned on or how to get this off. Could anyone tell me how to turn it off Thanks! I would recommend this answer: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1095029&SiteID=1 . ...Show All

  • Software Development for Windows Vista Verifying user's password

    During my install I prompt the user for their username and password. I then try to verify this, but it requires elevated priviledges. The documentation says to add the msidbCustomActionTypeNoImpersonate flag to custom actions, but this flag only works on deferred actions. Does anyone know of another way that I can verify the users password Thanks, Anthony The could potentially work, but I will have to do some testing with the QA group. Thanks, Anthony ...Show All

  • Windows Forms Embedding other controls inside a cell / inheriting DataGridViewCell

    The datagridview is excellent, and it's obvious your team put a large amount of work into this. I've read the samples and FAQ, and although you haven't specifically addressed this, I am curious for your thoughts. It appears that most of the provided cell types "display-ability" are based ultimately upon text and images, including the button cells. You also provided a nice sample for the datetime picker. But when it comes to controls with more than one edit option or a user control, it would be nice to find a way to embed such a control. I want to embed a datagridview inside a cell, and as the grid is heterogenous, I do not believe I need a column for this as other cells in that column may be simple text. I might fathom h ...Show All

  • Microsoft ISV Community Center Forums What language to learn?

    Hello all! Not sure if this is the spot to ask this. I'm looking at learning a new language. I have t-sql, vb.net and asp.net under my belt. I know I should learn java for the web side. But as far as making myself more marketable in the workforce, should work on C++.net or C#.net Thanks! Rudy ...Show All

  • Visual Studio 2008 (Pre-release) Custom Username and password for authentication

    Hi I'm trying to have a service authenticate over the internet (HTTP or HTTPS) to a custom username and password list. I understand that I can use a MembershipProvider and link that in using the WCF config file. My question is what kind of transport do I need to use (basicHttpBinding or wsHttpBinding) and what kind of security do I need to define on the client and the server (Transport Security Message Security ) Also, on a related but further note, I need to be able to see which logged in user is calling the service so I can get their account details etc. Is this found somewhere in the OperationContext object Hope that's enough detail for what I'm trying to achieve! In my security samples here: http://w ...Show All

©2008 Software Development Network