gafferuk's Q&A profile
Visual Basic Program fine tuning: Skinning & Startup a windows forms app with only one instance like media player
I have several programs that are done in VB.NET. i want to fine tune in the following ways, i don't know how it's done. I want to be the only allowed instance of the proccess running. (ini file that just says it's running ) and exits, or is there a parameter for this is it in the registry That would contradict the following thing i want to add. How do you have your program open like when media player is open, and you double click a file it doesn't open a new instance it opens it in meida player. And i want to add a link to the quicklaunch, how do you do this, it's not hidden in the my namespace is it 1. open a file in an instance already running by double clicking the file like media player does with mp3's instead of opening anothe ...Show All
Windows Forms component inside controls
i'm having a problem with components that i place inside control. i get a object reference not .... when i try access the properties of the component. so i have a custom dgv placed on a custom usercontrol that i place on a form. when i set columns it says object ref. . . why ...Show All
.NET Development typeloadexception when using a function from DLL-file
Hi, I use some functions from a DLL-file but I keep getting this error when I use one of these functions. Could not load type 'WindowsApplication1.k8062' from assembly 'WindowsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because the method 'SetData' has no implementation (no RVA). The code I use to load functions from the DLL-file: using System.Runtime.InteropServices; namespace WindowsApplication1 { class k8062 { [ DllImport ( "K8062D.dll" )] public static extern void StartDevice(); public static extern void SetData( long Channel, long Data); public static extern void SetChannelCount( long Count); public static extern void S ...Show All
Visual C# Sync Sql Server and Outlook contacts
Hi, I am trying to figure out a solution, as how and where to start for the problem i have in front of me. I need to develop an application where i would have to sync between which exists in the database and would have to export it to Outlook contact which actually sit on an exchange server. If the contact doesnt exists on the exhange then i would have to add it to the exchange contact. Please give me some directions Thanks, A... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. loading textures on array
Hi i am making a simple pool game and have my balls in an array (each ball runs through a class to set the properties. i have a Texture2D property to set the texture so i can set the white ball colour and yellow and red ball colour. however i have set up the array and try to draw but it will not accept the array property as a texture it keeps saying it is of null value even though i have set each of the balls here is the code below as you may understand a little more. //ball class for each ball public class balls { public Texture2D tex; public float x; public float y; public Vector2 v = new Vector2 (); public float r = 12.5f; public float m = 10; } //array of ball ...Show All
Windows Forms Merging of cells in datagridview control
I want to design custom datagridview control which will have facility for merging of cells. Is it possible to do Possible Anything is possible when enough code! This will be a lot of work though and so you'll need to do alot of experimenting. You should be able to paint what you want by either using the CellPainting event or by handling the RowPostPaint event. You'll need to properly check all the states so you know when the cell is the current cell (focus) and selection. In addition, you will need to implement custom keyboard handling so that pressing the right arrow key moves to the next proper cell. For example, if a two cells are "merged" then the grid still thinks that they are two cells, b ...Show All
Visual Studio Team System check out script after build with tfsbuild.proj postbuild
Dear all i am prity new with the tfs and i will appreciate you kind help i whish to write a little script in the tfsbuild.proj file that after a specific build which i created, tfs checks out a file that located somewhere in the server i used the <exec> and the <target name="..."> and didnt succeeded in can someone help me pls!!!! Ron OK - thanks for the reply where can i get this Extesibility Kit i tried to locate it via the net and didnt succeeded in. can i have link clue or something Thnks alot Ron ...Show All
.NET Development .NET 1.1 Process class - peculiar/problematic behavior
Hi, I am executing a console application using Process class using .NET 1.1 with SP1. It has been working fine until we encountered a particular Windows XP SP2 machine - let's call it machine X. On this machine, the newly spawn process simply returns with return code -1 (i.e., it's an error), and it does not generate any output to standard error or standard output - most likely it couldn't even have gotten started properly. The console application being spawn is a third-party application for which I do not have the source nor extensive documentation so I can't tell what exactly about this machine X that it doesn't like. Without the source, attaching a debugger and stepping through is not an opt ...Show All
Visual Basic I want to Move Cursor to Next Row
When the user presses enter in a cell for a certain column I want to sent the next cell to the next column, like doing a <tab> instead of going to the next row. I have used the keypress event, but this is not fired if the user is in edit mode and presses enter. Anyother action to set currentcell changes the column, but the process still moves to the next row. Does anyone have any ideas. Hi Suresh Try moving the "e.handle" statement into the if statement so it only occurs if the enter key has been pressed. Where it is now, it will occur for all key press events Regards David Jordan ...Show All
Visual Basic Problem using the contains function
What am I doing wrong, the code below keeps giving me an error when I'm debugging, stating "Conversion from string "personslastname" to type 'Integer' is not valid.", but I never defined an integer...... If CCPD.Main.MainUC1.Child_Information_DatabaseDataSet.Child_Information.Rows.Contains( "LastName" (TextBox2.Text)) = True Then MessageBox.Show( "this message indicates an attempt to save data to an existing datarow." ) The yellow highlighted area is what is highlighted by the debugger. Usning the information that I previously gave you ..... Dim cnxn As New OleDb . OleDbConnection ( "ConnectionString" ) Dim cmdTxt As String = "Select FirstName, LastName Fro ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct X10 and Vista - Compatibility
Simple question, will Direct X10 only be compatible with Vista Just because you might not be able to run DX10 on XP doesn't mean that you can't play games. I'm not sure why people seem to think that any coporation "owes" them to take new technology and put it out for cheap or free so that everyone can have it. Including these technologies as part of a business plan to make money is what allows them to invest in making them better. When something better does then come out it makes initially pricy tech to be cheaper to buy. There are plenty of free alternatives for gaming and operating systems alike. But as with any aspect of life including outside the OS,console, computer world, if you want the best and newest, it will invol ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Racing Game Tutorial
Hi. A little time is past since the beta of XNA is been released. So, can someone write me a little 3D or 2D racing game tutorial Please! I think that all of us want to know how to build a racing game with XNA don't you The ZMan wrote: ... like super sprint ... lol ... I remember that game ... lot of fun. ...Show All
Smart Device Development Hide textbox cursor
Hi! I have an application in which I use a textbox merely to display data so I have no need for the cursor. Does anyone know a way of hiding it Thanks Why don't you use a Label control instead of a text box If it's because you like the look of a text box, just set the lables BorderStyle to Fixed3D and change the background to White ...Show All
Visual Studio Team System Hoe to create an hyperlink column
Hi, This is a very simple question: I want to create a table report with the report builder in which one of the columns is an hyperlink. I see a lot of posts that relates to the hyperlink as granted but i can't find any option in the report builder that will allow me such a thing. Any clues Thank you, Ken I am not a Report Builder expert (the SQL Server Reporting Services forum has them - http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&SiteID=1 ) but from what I know if your column is in the format of a URL it is automatically created as a hyperlink. So if your column has the value http://www.microsoft.com it is created as a hyperlink... otherwise it is not. If you create your r ...Show All
SQL Server Index granularity
Hi, I was looking at the new index locking granularity option available in 2005. I did not understand in what case can this be a performance enhancement. Has anybody looked into this Are you talking about sp_indexoption It is an advanced tuning option and useful in cases where you understand your query pattern / data completely. You do not need to use it normally. ...Show All
