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

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

MohanAR

Member List

Fahad349
alex.tabac
rsri
uzs1
E. Palmer
Peer Larsen
simon burgess
learning_new
Christian_B
RAB36
sangminny
incendy
OptikDev
NitinAgarwal
Christian Mol
winstonSmith
Bastiaan Molsbeck
MikeBzz
Anu Viswan
Bill Menees
Only Title

MohanAR's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Is there an easy way to generate a random color?

    I was trying to generate a random color to be passed into the Sprite Batch Draw function to put a tint on the sprite being drawn. mSpriteBatch.Draw(mBackground, new Rectangle (0, 0, 1024, 768), mRandomColor); However, there doesn't appear to be any way to create a new color from RGB values for the XNA frameworks Color object. I had thought that I would be able to do something similar to how you would create a new color when using the System.Drawing dll. Color mRandomColor= Color.FromArgb ( ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) ) ; Is there an easy way that I'm just overlooking to achieve that same effect BTW, I believe you're going to want to use r.Next( ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. hey can some one help?

    hey guys im new at at all this code stuff what code does it use to make a game on xna and can u make a first person type of game on the xna ... and could i do this if i can         Thanks to all.. Also check out some of the tutorials on this forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=690814&SiteID=1 ...Show All

  • Visual Studio Team System Team Edition _ViewState problems

    I am currently in the process of evaluating different testing tools which would be used by my company as the lead web testing tool for web and load tests. I am interested in the the MS Team edition however there are some bugs which makes the tool virtually impossible to use. Please see the posting on your MSDN website below ********************************************** In the meantime, you can manually correct this sort of error in your web tests. The following section is from my whitepaper about web test authoring and debugging techniques ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs When a hidden field is modified by Javascript in an OnClick event handler, it is possible that automatic hidden ...Show All

  • .NET Development Command.Cancel - What is going on?

    Hi all, I have this strange problem. I am trying to implement query cancel support within my application. I have a typical 3-tier architecture with a client, an application server and a db server (SQL 2005). The application server responds to client requests for queries (we use .NET remoting and pass DataSets to the client). My server is Singleton and each client request is served by a different thread. In my client I issue a rather large query to the database server (via the application server) in a new thread, thus allowing for cancellation through a Cancel button (my UI thread is not blocked). If the user hits cancel I call the .Cancel() function of the SqlCommand (I obviously do this on the server). The query cancels and I am very h ...Show All

  • SQL Server choosing a collation in SQL 2005

    I have been searching for advice on the 'right' collation to choose in SQL 2005. I am US based and can assume any language required not supported by Latin1_General will be in unicode. I have SQL 2000 servers using SQL_Latin1_General_CP1_CI_AS and SQL_Latin1_General_CP850_CI_AS. The ones using CP850 will be converted to whatever collation is chosen in SQL 2005. I do not know the implications of choosing the default SQL collation as opposed to choosing Latin1_General_CI_AS. I have seen warning messages when installing analysis services if the SQL_Latin1_General_CP1_CI_AS is chosen saying that analysis services will use the colaltion Latin1_General_... . I also use non-updating subscribers in transactional replication currently in teh SQL 2 ...Show All

  • Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file

    I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Try to open the service in the browser ...Show All

  • .NET Development Making a delegate for serialport

    Hi, I got a device attached to my serial port which takes a few commands like "get version". But some commands return big strings which the serial port is not passing all through at once. So i want to make a delegate with an event handler which listens if anything has arrived yet and append it to a rich text box. I've tried a few things, but i keep getting all kinds of errors in runtime. So i undo those changes. This is my code: FIELDS: public SerialPort serialPort; public delegate void GetData(string getDataFromBuffer); public event ReadDataInBuffer dataRead; private string buffer. private void SerialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { this.buffer += this.serialPort.ReadExisting(); } S ...Show All

  • Visual C++ Populate Combo Box with physical Drives

    Hello Everybody, I'm working on a windows forms project that includes a combo box which I need to populate with the list of physical drives present in the system at that point. The purpose is to allow the user to select a physical drive to run some tests. Any ideas Thanks!! Sure, unfortunately no idea why there is no example in VC++ http://msdn2.microsoft.com/en-us/library/system.io.driveinfo.getdrives.aspx   ill move the thread to the appropriate forum now to the VC++ however I hope that the example I gave helps you in some way, at least logically   the GetDrives() returns back an array of DriveInfo objects, then simply iterate through each DriveInfo object in the co ...Show All

  • SQL Server Adding expression in Data Flow Task

    Hi I am trying to develop a data flow task in C#. I need to add an expression tab in the task where i can write expressions on the input columns and map it to outputs. Please let me know how to go about it. I am new to SSIS coding so dnt have much idea abt it. Thanks in advance, Vipul Can you give an example of what you are trying to do. When I first started out I thought I would need a script task or a custom control for everything... Now I find that the stock components can meet most of my needs! ...Show All

  • Visual Studio Working folder changes after moving the code to other location

    Trying to explain the problem by an example: 1. I set working folder folder as C:\Sourcecode 2. Now, idea is to have a copy of the source code as backup in different folder. So I copy the code from C:\Sourcecode to C:\Sourcecode_BAK 3. Now I go to C:\Sourcecode_BAK and open the solution. Unbind the solution from VSS and try to edit some code. 4. Now open VSS, you will find that working folder changes from C:\Sourcecode to C:\Sourcecode_BAK. As this is not consistent, you might not be able to reproduce. so try 2-3 times. I want to prevent this. though there are manual ways. I mean once copy is done remove all vss related files from the root folder and subfolders. Remove readonly attribute on rootfolder. Remove vss related entry from .sln ...Show All

  • Windows Live Developer Forums findnearby results

    Hi again. Hopefully this is just a dumb question. FindNearby does not appear to reliably tell me when it doesn't find what I'm looking for on a map.  I was hoping that I could use the VEFindResults object that FindNearby is supposed to return to tell if it found something or not, but I can't get FindNearby to take anything other than the single "what" option.  How do I access the VEFindResults from FindNearby without being able to specify a callback function Thanks.  Use the Find() method, passing in only the "what" option and the callback. This will behave exactly like calling FindNearby(), but also gives you the callback function you need. Ch ...Show All

  • Windows Forms "System.Data.DataRowView" shows as Display member

    I have a combobox that is bound to a select adaptor When an item was selected, when selecting other item, it shows "System.Data.DataRowView" instead of the value from the DB. Any Idea what the problem is ...Show All

  • Architecture Thin client vs smart client

    We are moving from a VB6 to a .net world. We are about to finish our business components and now its time to start thinking about the UI. Well, there it comes the doubt: should we choose a smart client path or a thin client one We develop backoffice financial apps; they are used in several ways (users that operate it to process information, board of directors that access it just to analyse information, end customers that access it to get information on balance account etc). The chance to have someone using a non windows OS (accessing the system as client) is remote, but exists. If we choose a webbrowser client, then we would have to buy some good components (specially grid component and menus) that could "replicate" desktop exper ...Show All

  • .NET Development How do i keep Instance of current dataset???

    I have a Datagrid.DataSource = mydataset.....when i add new rows to it and close out the form and then i try to open that form back up...the form is blank...why is that My child form will work as a dialog, like in your case. It will have two buttons Ok and Cancel. Both of them with defined DialogResult property. Calling form will be like: instance the dataset in parent form: DataSet dsRatesOnOrder = new DataSet(); //fill dataset in parent form using ( frmOrderTotal frm = new frmOrderTotal(_order, dsRatesOnOrder))   // frmOrderTotal will have a constructor property of type Order with already started order, and already used dataset {    if (DialogResult.OK == frm.ShowDialog())    {    &nbs ...Show All

  • .NET Development Help with Raw Socket

    Are there any example of how to construct a raw icmp packet Here is the format of ICMP Packet: Type 1 byte Byte Code 1 byte Byte Checksum 2 bytes Unsigned 16-bit integer Message multibyte Byte array So seeing this you can write something like this: class ICMPPacket {           private byte type;           privtae byte code;           privtae UInt16 checkSum;           private int messageSize;           pr ...Show All

©2008 Software Development Network