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

Software Development Network >> Lars E.Nes's Q&A profile

Lars E.Nes

Member List

Mark Benningfield
Miao1106
BobH
Lars Roith
jamba8
wings9697
MillBear
Nagarajan Murugan
Kimmers
ThBeer
Foolios
AnthonyOstrem
a_wuestefeld
DavidThi808
Level255
Doug DeBug
turczytj
wormbyte
SJENSEN
turnbui
Only Title

Lars E.Nes's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Shooting help

    Can anyone post a website, code, or a project they have on making something shoot. I have tried, and it doesn't draw the bullet right, and some other ppl's code meses up I have shooting in my game Missile CommandeEr , but the code is probably too sloppy to follow.  If you're looking for a quick and simple (but good) illustration of bullet firing, check out Jim Perry's bullet manager . ...Show All

  • Windows Forms datagrid columns details in new window

    i have a datagrid carDatagridView where i show 2 tables from my car database table. Now i want that when the user double click on a cell there appears a new window with al the details of my car. How can i make this pass the parameters to the new window It's better to use datagridview (.NET 2.0) instead of datagrid control which has more events to catch and it's good.  in CellContentClick event of Datagrid view do the fallowing private void dgvMap_CellContentClick( object sender, DataGridViewCellEventArgs e) { if (DgView.Columns[e.ColumnIndex].Name== "itemNo" ) { string strItem= ( string )DgView.CurrentRow.Cells[1].Value; //Pass the strItem as argument to other fo ...Show All

  • Windows Forms Conditional file replacement during setup

    Hi, We have a VSTO project. We have a special file which needs to be placed during setup. But it's true only for the first time user who is installing our application for the first time. Then onwards the deployment project shouldn't replace the original file. Can we give condition in setup script to find out whether to copy the file or not. If YES pls tell me how. Thanks in advance. Hi Manash, This is a general setup project question. Thus I am moving your post to that forum where you'll get a better chance of a response. Thanks and regards Darryn Lavery [MSFT] ...Show All

  • Windows Forms Newbie needs help

    Hi i am very new to programming windows forms. I have asked this question before, but i don't think i explained it very well. I know some stuff about console programming. I have some questions. 1) When i create a windows forms app is the default "Form1" a class 2) When i create a pointer in the class test to any other class apart from form1 it works, i ca access their data members and everything. When i create a pointer to Form1 it doesn't work. WHY this is driving me mad. This is my main question 3) When i try to declaire a pointer to Form1 from a class to update a component of it why does it ont work: The project is called tst and the class is called test: tst.cpp: // tst.cpp : main project file. #include "stdafx.h" #include "Form1.h" u ...Show All

  • SQL Server SQLGetDiagField() crashing with access violation

    After an error trying to connect to a database, I am trying to query the number of status records using SQLGetDiagField() and am getting an access violation I am trying to open a connection to data in an Excel file using the Excel ODBC driver. Any hints ...Show All

  • Visual Studio Express Editions How to make a picture box a move bar

    i'm wanting to substitute the title/move bar at the top of a form, with a picture box, could someone help me with that please i cant make it move the form when you click+drag it. Josef Stalin Try this on a borderless form with a picturebox in it. Public Class Form1 Private mouseOffset As Point Private isMouseDown As Boolean = False Private Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim xOffset As Integer Dim yOffset As Integer If e.Button = Windows.Forms.MouseButtons.Left Then xOffset = e.X - PictureBox1.Right ...Show All

  • Visual Studio Express Editions How to limit decimal places after a double?

    Hi, everyone E.g. double op, Q = 0.112233445566778899, H = 100.0, k = 20000.0; op = Q * H * k; Can the decimal places of "op" be limited to ..... let say 6 decimal places OMG. Tried your code and it didn't work. Thanks for the tip. Maybe because its a console application This works: double d1 = 0.10999300000001; d1 = Math .Round(d1, 6); Console .WriteLine( "{0:N20} rounds to {0}" , d1); Anyway, my line of code above works fine in my application. I would not need to assign d2 to a rounded off d1. I only need to control the decimal place after my calculation. Furthermore, I could even store it into my database. ...Show All

  • Visual Basic Converting a dll to a windows exe that will accept command line parameters

    I have a dll in vb 2005 winforms, that has a gui interface, and accepts command line parameters. I need to convert the dll to an windows exe file, and still accept command line parameters. Any advice how to achieve this Thanks Module M1 public sub Main(args() as string) end sub end Module The array args will contain the command line parameters. ...Show All

  • SQL Server Upgrade from SQL 2000 to SQL 2005 - Any known issues?

    Hello, First off, thanks to all for taking the time to read and respond to this question of mine. Greatly appreciated. Let me explain my current scenario followed with the question. We currently have our VB application written and working at various client sites on SQL 2000. We did received a number of request on upgrading to SQL 2005. We did some preliminary testing in-house on SQL 2005 (backed up the 2000 database and restored on 2005 which worked just great). It is also my hope that technically, everything should work just fine since 2005 is backward compatible to 2000. Is anybody aware of any issues with taking a 2000 database and getting it to work on SQL 2005 without any mods Thanks. The ...Show All

  • .NET Development How do I get a user's domain name?

    I need to provide a UI to get the information to add a windows login to a SqlServer database. The CREATE LOGIN Sql statment requires the user name as "DomainName\UserName". I can get a list of users in XML using the following code: public static XmlDocument GetAllADDomainUsers(string DomainPath) { string domain; XmlDocument doc = new XmlDocument(); doc.LoadXml("<users/>"); XmlElement elem; DirectoryEntry searchRoot; ArrayList allUsers = new ArrayList(); if (DomainPath.Length == 0) { DirectoryEntry entryRoot = new DirectoryEntry(" LDAP://RootDSE "); domain = entryRoot.Properties["defaultNamingContext"][0].ToString(); } else domain = DomainPath; searchRoot = new ...Show All

  • .NET Development Publishform just shows up and can't be closed

    Has anyone else had this problem a form called Publishform just suddenly shows up on the screen and in the taskbar and it can't be closed. It usually shows after using "copy web site". This last time I had used "copy web site" an hour ago and suddenly now it shows up. Any idea how to deal with this besides restarting vs Thanks Simmy The Visual Studio fourms here: http://forums.asp.net/138/ShowForum.aspx will be better able to answer this question. Thanks. ...Show All

  • Visual Studio Tools for Office Infopath Addin CustomTaskPane

    I have created an Infopath Addin and have the following code in the addin : private void ThisApplication_Startup(object sender, System.EventArgs e) { CustomTaskPane ctp = this.CustomTaskPanes.Add(new UserControl1 (), "My UserControl1"); ctp.Visible = true; } Now I want to have in my Infopath Formcode, access the control in the addin I am told to use Globals.ThisApplication.CustomTaskPanes[index].Control But, can not see Globals in myformcode, so was told to use the following reference : Microsoft.Office.InfoPath.Application.ComAddIns ...Show All

  • Visual Studio 2008 (Pre-release) Weird Error -> Underlying connection closed

    I have a WCF windows service and client and their end points are configured as shown below. The really weird thing is the service works only if I DO NOT set these 2 properties on the concrete return object. this .Response.Result = RequestResult.Failure; this .Response.Errors.AddException(ex); Now when I debug, the above 2 lines do not produce an error and it steps out of the function without any problems. However, just as it is about to exit the main function, it throws an error given futher below: Other properties on the Response object can be set without any probs. I have also managed to write unit tests to serialize and de-serialize the Response objects successfully as well. Any Help Will Be Greatly Appreciated Sha ...Show All

  • .NET Development Is there any method to assign encoding in mailaddress?

    Hello. I have faced the problem about automatically sending email in my system. My website is allowed people type in chinese character and two of them are: 1. Seller Name 2. Seller Email Address After people type in all their information , a email will be sent for them for reference. Firstly, I found that while user type in chinese character in Seller Name Textbox, that email will become unrecognised code like this " P q C L " . My coding is shown below: MailMessage mailMessage = new MailMessage(); mailMessage.To.Add(new MailAddress(seller.Email, seller.Name)); It seems that I can't use chinese character as a displayName in MailAddress. Is there any method As I know, I can give encodi ...Show All

  • SQL Server Long running stored proc in CLR

    How does one prevent a long running procedure form crapping out in CLR I am trying to do a pull from a distant data source and it works, except I have to break down my stored procedure call into several smaller calls. I would like to do everything in one shot, but I get the thread abort exception when I try to get a lot of data. Any ideas Thanks. It's not the time that's causing the issue, but more likely the memory utilization.  There is a hard cap on the amount of memory you can use, after which you'll receive a ThreadAbortException if some of the objects can't be garbage collected.  Did your ThreadAbortException include a message along the lines of:   ...Show All

©2008 Software Development Network