Software Development Network Logo
  • .NET Development
  • SQL Server
  • Windows Live
  • Visual Studio
  • Visual C#
  • Visual FoxPro
  • Microsoft ISV
  • VS Express Editions
  • Visual Basic
  • Architecture
  • VS Team System
  • Smart Device
  • Windows Forms
  • Visual J#
  • Windows Vista

Software Development Network >> mahesh kuhikar's Q&A profile

mahesh kuhikar

Member List

kp6453
jvervoorn
M Kamal
nimbusism
cptscottie
coachdunlop
Venkata Veeraraghavan
zekia
big bang
R. Green - MSFT
franjorge
kakho
Nilesh Gambhava
Dhaval Heruwala
nagesh555
Masoud_TB
Harmomelodic
IP
Lierni
rldonnell
Only Title

mahesh kuhikar's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Calculate "slope"

    Okay, here's my problem. The game I'm making is a 2D platformer, where you use the keyboard to move the guy around. When you click somewhere on the screen, your shot is supposed to make a beeline for the coordinate you just clicked. Somehow, I need to calculate the projectile's "slope". Assume that (0,0) is the top-left coordinate of the screen, and (3,3) is the bottom-right. If my player is at (0,3), and I click at (1,1), then my shot should move at a rate of 1 unit horinzontally, and -2 units vertically, right That's easy to calculate, because you just subtract the player's coordinates from the click coordinates. If I click at ...Show All

  • Microsoft ISV Community Center Forums Icons In ListBox

    Hi dears I want to add icon to the items of VB.NET 2005 ListBox , Could i do ... Hi all, Thank you very much Derek Smyth. ...Show All

  • .NET Development DataTable Add Column

    Assuming there is a dataset wit ha table. I can create a new dataset and assign it to the previous one which has a table in it. So Why would you add columns to a datatable in the new dataset Thanks   Hi, You can add columns to a datatable and you can do it also directly using a dataset if your dataset contains a datatable. You can add a datacolumn dinamically on a datatable. It depends on how you purposely doing it. thnx, Michael Castillones ...Show All

  • Visual Studio Team System Do Not Catch General Exception Types

    I have a question about the fxCop rule on "Do Not Catch General Exception Types"...I started some discussion on this in another thread but I didn't get a full answer to my question and I thought this topic was worth starting a new thread. I think I'm using the recommended Microsoft approach for Exception Management: I'm using the Enterprise Library Exception Management Application Block to handle exceptions At the "top of the food chain" I have defined some policies for handling exceptions and use the EM application block to determine how to handle, report, and log the error. In all cases at the moment, it simply ...Show All

  • Visual Studio Team System Is it possible to create and execute my own SQL-queries against TFS-databases from within VSTS?

    I would like to create a Team Query that is more complex than the wizard inside Visual Studio is able to let me do (I would like to sum the remaining work and the completed work field and group it by users). I've managed to execute such a query against the database directly but I would like this query to be available to the public as a Team Query. Is this posible Regards, Kristofer You can create a report based on your query and deploy it to the team project's Reporting Services folder. The report will show up in the Team Explorer under the Reports folder. ...Show All

  • Visual Studio Team System Exceptions in unit tests in secondary threads kills vstesthost

    Hi, I was told at the PDC to log this issue here. I have some asynchronous APIs like BeginWork(). I am writing some unit tests for these APIs. These APIs create threads to do the work and fire events to signify that work is complete. If there are uncaught exceptions in these secondary threads, VsTestHost dies without performing any further unit tests in the list which have not been executed yet. I wanted to know if this is a bug. If it is not, is there a workaround Thanks Pawan Pawan, Yes, as a workaround you can enable legacy unhandled exception exception handling by doing the following in vstesthost.exe.co ...Show All

  • Visual Basic Counting Letters in a string

    Hello,  I am trying to get VB to count how many A's B's C's D's E's etc... that are in a  declared string, can someone tell me how to do this. thanks Ray RFeather[AT][NOSPAM]chstaffing.com Dim aCount As Integer =  0 Dim bCount As Integer =  0 Dim cCount As Integer =  0   Dim myString As String =  "aabbccc" Dim i As Integer For  i = 0 To  myString.Lengt- 1  Step  i + 1      Dim charAsLower As String =  myString(i).ToString().ToLower()      Select Case  charAsLower  & ...Show All

  • SQL Server creating a user with dbo access

    Hi, I need to create a user with dbo access to a specific database using sql . I created a login and added a user to the login. How do i grant dbo privilege to this user (using sql) Is there any system stored procedure for this Please help. Thanks in advance Hi. Try sp_changeowner [@loginame=]'login' Changes the owner of the current database. ...Show All

  • Software Development for Windows Vista How to use C# to cut and remove part of video out of the whole video ?

    Dear everyone, I have a problem about C# and hope to get your help. I want to use C# to cut and remove part of video out of the whole video. The video may be mpeg, avi ... How could I achieve that Thank you. Regards, David I would have a look at the directShow system inside the platform SDK. Here is a link to the forums . Hereis a link that might also help... http://www.elecard.com/products/products-pc/sdk/ ...Show All

  • Visual Basic Programmatically load User Control

    I try to load a User Control from a program - but id does not work! I can load the same user control when declaring it on a page. But I would like to load a choice of controls dynamically.   Here is the Code:   Try   Dim MyPath As String = "~/n/UC/login1.ascx"   Dim MyLoginUC As New UserControl   MyLoginUC.LoadControl(MyPath)   Me.LabContent1.Controls.Add(MyLoginUC) Catch ex As Exception   Trace.IsEnabled = True   Trace.Warn("", "Error loading Login-Control " & ex.ToString) End Try   It produces an Error:   Err ...Show All

  • SQL Server how to create Extended procdure to invoke a webservice with C#

    Hi,    Can anyone help me in creating an Extended procdure that can invoke a webservice with C#. So, I don't know if you want to create an extended proc in C# calling a web-service or if you want to create an extebded proc calling a C# web service. Anyway, if the former - you can't. Extended stored procs can only be created using C/C++. If the latter, then Books On Line have some documentation of how to do it. However, if you use SQL 2005 you should not have to use extended stored procedures, you can write your code using C# (or any .NET language) and create the code as "normal" stored pr ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Namespaces Microsoft.DirectX not found

    I've installed the DirectX 9.0 SDK and the runtime and can run the sample executables, but when I try to run the code in the edit or debug mode (using vb.net ver.2003) it can't find Microsoft.DirectX and Microsoft.DirectX.DirectInput namespaces.  I verified it as having 9.0c using dxdiags.exe. It does find DirectX 7 & 8 type libraries in the COM references section... I expect to find the missing namespaces in the .NET reference sections. Help please. Ah, ok.  When I was rummaging around the folders inside the October SDK folder, the first couple managed sample folders I opened were V ...Show All

  • Visual FoxPro Vfp9 page footer report

    Vfp9 Report paper size: US Letter Save printer data environment=not checked Print Area=Whole page Width=8.500 inches Left margin=0.000 inches Page footer Height=1.040 inches I've create a 9 detail band report..works just fine..but. Why my info can't be printed until the page footer report ..there's about 4 inches of  "blank spaces" between my last detail band and the page footer in every page..and some info "fits" in that 4 inches of "blank spaces" Thank's in advance I realize you posted a while ago, but since Ken drudged this to the top, I have a few questions. Are you referring to a VFP 9 banded report or nin ...Show All

  • .NET Development DataTable.WriteXML() gives incorrect XML output

    Hi, Simple situation: A DataTable with some columns and rows added. But when using the WriteXML method to create an XML file from this table it gives me the following output: < xml version="1.0" encoding="utf-8" > <DocumentElement> <Batch_Table> <Height>18</Height> <Width>75</Width> <Program>1</Program> <Length1Min>18</Length1Min> <Length1Max>60</Length1Max> <Price1>1000</Price1> </Batch_Table> <Batch_Table> <Height>25</Height> <Width>125</Width> < ...Show All

  • Windows Forms Card Stack (think Hypercard)

    Howdy. Is there some Forms class (or classes) that behaves like a card stack I'm needing to make a conceptually simple application that displays a simple form, and depending upon which of a small few buttons is pressed, the appropriate next form is displayed. Rather than having to manually close/hide one form, open another, and store my state in another controller&n ...Show All

©2008 Software Development Network