Dave Malcolm's Q&A profile
Windows Forms EndEdit: leaving edit mode in a datagridview
Hi all, i'm using a DataGridView containing a ComboBoxColumn. The DataGridView is not bound to any data source and it gets populated through an ArrayList "manually". The VirtualMode is not activated and the EditMode is set to EditOnEnter. I'd like to end or leave the edit-mode of a cell in the ComboBoxColumn programmatically after selection-changes in the ComboBox has been committed. Therefore i handle the EditingControlShowing-Event of the DataGridView and the SelectionChangeCommitted-Event of the Combobox. As you can see below i call EndEdit() in the ComboBox_SelectionChangeCommitted-Methode. private void dgView_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { ...Show All
Smart Device Development C++ in PDA development
Hi all What is the advantages using C++ language for PDA development instead of vb.net and c#. Faster code, real time possibility, no need to deploy framework/smaller total size. But... Longer time to market, more complex development, more error prone, bigger application size. You know, usual C++ vs. RAD tools pro and cons. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. directX with windows form
I actually created 3D graphics with Maya and manage to export it into X-file. is it possible to display the non animated 3d graphic in the windows form Please help! Thank you. David, but using c++ Because this samples are in C# (for Forms), C++ the windows aren’t create using windows forms..... How do I using forms (c++) with directx 9. How do I create a window, what inside her display a animations (using directx), and include this window in groupbox Samples in C++ is better!! Thanks. ...Show All
Visual Basic Form object resizing
Hi there everyone, Something is baffling me here. I'm trying to code a resize event to ensure correct placement of my controls whenever the form is resized. I have a picturebox control that I wish to fill the screen but leaving a gap, of around 3, either side. At the bottom of the form I have a textbox control (txtCallsign) that I intend to keep fixed to the bottom of the form. I've tried the following code: Private Sub frmMain_Resize( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Resize ' Resize the picture box control as the form ' resizes. PictureBox1.Left = 3 PictureBox1.Top = MenuStrip.Height + 1 PictureBox1.Width = Me .Width - 6 PictureBox1.Height ...Show All
SQL Server Put select statement in SSIS variable
Is it possible to add a variable in SSIS like name of variable: myVar Scope: Data Flow Task Data Type: String Value:SELECT hello FROM blah WHERE (azerty = @[User::pda]) AND (qwerty = @[User::phone]) @[User::pda] and @[User::phone] are also variables in SSIS just like the myVar I made I know I'm doing something wrong with the data type because it's stores the whole select statement as a string Help Worf Worf, Are you using an expression in myvar variable to get the query I guess you are trying to build the query dynamically; if so then few things: OLE db command and OLE DB source only accepts SQL syntax; so +@[user::pda ] + won’t work there. But they accept 'SQL Command from variabl ...Show All
Software Development for Windows Vista Button style in VS 2005
Hi I have noticed when creating Windows forms applications (using C#), the default setting for the flatStyle of a button is Standard. It is only when I change the style to System will Vista make my default button glow on a form. Is this normal Is there any way of changing the default FlatStyle VS gives to a button Regards Grahm ...Show All
SQL Server SessionTrace during XMLA execution?
Hi all! I wrote a command line tool that processes a SSAS cube/dimension. At the moment the tool starts processing similar to: using Microsoft.AnalysisServices; olapsrv = new Server(); olapsrv.Connect(@"SERVER/DATABASE"); Database mydb = olapsrv.Databases["NAME"]; Cube mycube = mydb.Cubes.FindByName("CUBENAME"); mycube.Process(ProcessType.ProcessFull); it is possible to trace the server output with: olapsrv.SessionTrace.OnEvent += new TraceEventHandler(DefaultTrace_OnEvent); olapsrv.SessionTrace.Stopped += new TraceStoppedEventHandler(DefaultTrace_Stopped); olapsrv.SessionTrace.Start(); the two functions can write the "feedback" to a ...Show All
SQL Server Your upgrade is blocked because of cross-language compatibility rules
I am getting this error when I am installing sql server 2005 express. My pc has net framework 2.0 installed. XP SP2. Jose. We don't support ugrading from one language installation to a different language, so I'd guess that's what you're trying to do based on the error. Be sure that the upgrade you are applying is the same language as the installation you're upgrading. Mike ...Show All
Visual Studio 2008 (Pre-release) System.InvalidOperationException: The SqlCommand is currently busy Open, Fetching
Hi i have problem with accessing the third party component(for data access) in case of multi-user one user can gets values and the second one gets an exception of System.InvalidOperationException: The SqlCommand is currently busy Open, Fetching. Now this is thrown from the component cause i have no access to the database directly. Is there a different way to access the components from webservice thats running under IIS ...Show All
.NET Development Namespace confusion
Hi, If I create a new hello-world webservice or similar declared like this: [System.Xml.Serialization. XmlRootAttribute (Namespace = "http://HelloTest/2007/01" , IsNullable = false , ElementName = "HelloResponse" )] - and serializes the response - in the service - theres a nice namespace on the root node like this: < xml version="1.0" encoding="utf-8" > <Hello Response xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd =" http://www.w3.org/2001/XMLSchema " xmlns = http://HelloTest/2007/01 > This is also present when invoked from a browser. But if I add a webservice reference in Visual Studio and call this method, the "xmlns" attribute is gone ex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. space wars jerky?
Hello, When I run space wars it seams to jerk alot when I move the ship around. It just doesnt run smooth at all. Can the game be played in full screen it runs windowed on my pc. I thought it would run smooth. My pc is: AMD A64 3200+ 2 gb ram 7600GT All drivers are up to date. Also when I try and publish spacewars, when installing it, it comes with an error. Anyone else have this problem thanks This issue isn't just specific to space war. One of my development pcs has this issue with every application I've tried that's written with the framework. ...Show All
Visual Studio Express Editions Disabling the vertical scrollbar from a listbox
Any suggestions on how to would be greatly appreciated! This worked for me: Public Class MyListBox Inherits ListBox Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Dim cp As CreateParams = MyBase.CreateParams cp.Style = cp.Style And Not &H200000 ' Turn off WS_VSCROLL style Return cp End Get End Property End Class ...Show All
Visual Studio Team System AssemblyInfoTask default Versioning Flawed?
Is it just me, or isn't the notion of versioning defaulted to by the AssemblyInfoTask http://www.gotdotnet.com/codegallery/releases/viewuploads.aspx id=93d23e13-c653-4815-9e79-16107919f93e fundamentally flawed. Assuming major.max.build.revision. Everyone using this task, including Microsoft, seems to be using the strategy that the build number is specified to be DateString with a format of yymmdd, you get something like 061117 on the day of this post or the following if we accept the defaults: 1.0.061117.00 First of all, the actual number (since it gets converted to an integer) becomes 1.0.61117.0 when it gets compiled. Most importantly, if this was next year (2007) at this time, you get assemblyinfo files u ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with Forms App
I'm looking for guidelines as to how to use XNA/GSE Beta 2 in a Forms app. Specifically: 1. Is it possible to use the Game class and render to a form or a window instead of fullscreen, and if so, HOW 2. Assuming that you can't use the Game class for this, what happened to GraphicDevice.BeginScene and GraphicDevice.EndScene How can I render outside of the Game class 3. Still assuming that you can't use the Game class for rendering to a form, if I don't use the Windows Game starter app, when I Add An Existing .x file to my project, the file type "Content Pipeline Files" is not showing up as an option, and if I use All Files, none of the Content Pipeline file properties show up for the file. Why is this How can I get this ...Show All
Windows Forms Center label on maximized form and wordwrap text
Should be fairly simple but because today is Monday I can't seem to see it.... My form is borderless and maximized. I have a single label that I would like to be horiz and vertically centered on the form. I'd like the text in the label to wordwrap and not go off the screen. Can someone please help me with this Thanks ! Set the label's AutoSize property to False. To get its text vertically centered in the form, independent of the amount of text it displays, you'll need to measure the vertical size of the displayed text. Check this thread for code. ...Show All
