Mike Batton's Q&A profile
Software Development for Windows Vista AutomationElements with no supported patterns
I'm attempting to automate one of our company's products, and I've run into a snag: I can get an automation element for all of the controls in the product, but many of the controls have no supported control patterns. IE: the menu bar and tool bar of the product have no control patterns supported, and no children. The product is built on .Net 2.0 windows forms, and uses primarily standard controls. Automation code will have to be done on the client side, as there are currently no plans to add server side support at this time. I've looked into the possibility of using client-side proxies for automation, but I'm not sure if that's what I need. (Especially since many of the controls in the product do have supported control patterns, and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Splash Screen Processing
Hi again all :-) Am still writing my little app to get my head around using c# + XNA and just wanted to check i was doing something in a effective manner. It all relates to the splash screen section which effectivily just fades in a company logo, fades it out, the fades in the application title and fades it out. The way i do this at the moment is that i have a class called SplashScreen which has 3 functions init. which loads n e images, sets up n e variables etc. that are to be used. Draw. which as it says draws approriate image and updates alpha to create fading of images, then delete. which nulls out n e thing that may be takin up memory to free it up a little (not sure if needed really) in the games main initialization function ...Show All
SQL Server Howto retrieve Access HyperlinkBase property from ADO?
I'm inserting records into an Access database using ADO. One of the fields is defined as a hyperlink. I figured out the #displayname#path#subpath# formatting, but at issue is how to describe a relative path (to a filename) - I'd like to programmatically retrieve the database property 'HyperlinkBase' so I can properly specify the relative path. Is there some provider-specific schema that I can use to get this info for the Access file the Connection object references I find example code for getting hyperlink base and other builtin document properties for Word, PowerPoint, Visio, but can't seem to find this for Access. Access 2003/Microsoft.Jet.OLEDB.4.0 Thanks, Dave ...Show All
SQL Server How to determine date/time message was placed onto Queue?
I need to determine the actual date/time that a message was placed on the queue. In my "activated" procedure I want to log this information and pass it along to further processing routines. From what I can tell, the Queue table itself does not have this information captured. Ideally, both. I was looking for something out-of-the-box... not something where I craft my own message. The messages I will be receiving are based on a pre-defined schema and I did not want to go back to the design table with adding new elements. You would think that the "queue" table would have an additional column for "created date/time" basically. If anything else, I think that should be a c ...Show All
Smart Device Development Porting existing application on Win CE
I am porting an application developed in C++ calling namespace "Sysyem" to achive some task. It seems its a Managed C++ application , becuase it is creating object by specifying __gc ( I am not sure). As shown in code snippnet sing namespace System; public __gc class TestEventArgs : public System::EventArgs, public IDisposable { private : System::Drawing::Graphics* m_graphics; System::Drawing::Font* m_font ; This application compiling smoothly on VS 2005 on windows XP. I am porting this application on Windows CE environement. These are the steps I followed here. 1. Create a new project of type MFC Smart Device DLL ( under VC++-> Smart Device) with default settings. 2. Included a ...Show All
Visual Studio 2008 (Pre-release) Mouse buttons states, anytime, anywhere ?
Hi, I'd simply like to check the mouse buttons state ( not in the case of an event ). my scenario involve specific mouse manipulation in a designer app. i use System.Windows.Forms.Cursor ( this make me sad ) and a DispaterTimer to get a mouseMove that can still perform outside the main window. the timer start on a UIelement mouseDown but when in the timer loop i check for Mouse.LeftButton, i get a MouseButtonState.Released when the mouse go outside the window even if it is still pressed. is there a very simple answer to this very simple question I started by using those, but unlike their equivalent in Forms their state is 'Released' when the mous ...Show All
Visual Studio Tools for Office Outlook Plug-in Auto Update
HI, I am developing msoutlook plug-in with the advance automatic update feature which is provided by VSTO 2005. if deployment server is online than my addin work fine and take all effect from server. But when the deployement server is offline than outlook plugin is not loaded. so any facility is available to load outlook plugin when deployment server is offline . the manifist file is as: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0"> <assemblyIdentity name="myaddin.dll" version="1.0.0.2" /> <asmv2:entryPoint name="Startup" dependencyName="dependency0"> <asmv2 ...Show All
Visual Basic Refill a datatable?
I have this code in my vb.net program. Me.TickersTableAdapter.Fill(Me.DataSet1.Tickers) It fills the data from the external file fine. However, I'd like to be able to refill the data after it has been changed by an external program. Calling the line a second time doesn't work because I get "datareader already active on this command" error. How can I refill the data from the external file tia The only code in my form is this one: Me.TickersTableAdapter.Fill(Me.DataSet1.Tickers) I think there may be code somewhere else but I don't know how to find it in my project. thanks ...Show All
Smart Device Development GPRS Disconnection
I have a small app that switches between 2 gprs connections. The call to ConnMgrReleaseConnection does not stop the current connection as stated in the docs, does anyone know a fix for this. thanks Thanks for the help Anthony, I have tried to use the Ras stuff but get a consistant error message 632 which says the structure is an invalid size, and i cannot find a fix for it. The Structure is and code are as follows [ StructLayout ( LayoutKind .Sequential, CharSet = CharSet .Auto)] public struct RASCONN { public Int32 dwSize; public IntPtr hRasConn; [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = 255)] public string szEntryName; } // create ...Show All
.NET Development Question about BinaryReader?
when I call a function, say ReadSingle(), will BinaryReader read just 4 bytes from the file or it will read a large chunk of data from the file at a time and cache it and only return what I am asking I am trying to read/write a large file (50-->100MB) from/to a network drive. I am trying to find an optimal way to do it. Any suggestions would be appreciated. Thanks, hdp. Poking around with Reflector, I see BinaryReader use a 16 byte buffer. That's not a lot. I assume it is relying on Windows buffering the data... ...Show All
Visual Studio 2008 (Pre-release) Using the "Windows" key on the keyboard to minimize WPF windows ...
Whenever I use the "Windows" and "D" key combination (which brings the Windows desktop into view), my WPF application's windows all get minimized. But I do not receive a window state change notification, and the WindowState property does not change either. Is there something I'm missing I tried the above code (with some modifications to make it compile) and this didn't repro for me. Zhou, are you sure something else in your code is not affecting the main window ...Show All
Visual Studio 2008 (Pre-release) MSDN Managed Newsgroups for WPF?
Are there any plans to provide Managed Newsgroup support for WPF and the rest of .Net 3.0 It seems strange that there are some 230 managed newsgroups, including WinForms, but nothing for Microsofts new flagship UI. -- Just feeling a little disgruntled here because more often than not, when I ask a question nobody has an answer. Michael As far as I know, this is the best location to get answers for WPF questions. Not only are there a number of community members with extensive WPF experience lurking here, but also the WPF team members will answer questions here. The problem is that questions sometimes get buried quickly because of the volume. If you can post links to your questions here, I can look th ...Show All
Windows Forms error occuring in sqlserver sql statement in vb.net
hi, I wrote a small program to retrieve the record between two dates from sql server data base but the application giving a system error while i'm using # symbol to delimit the dates. my sql statement is ; "select * from table name where date_field between #" & date1 & " #,#" & date2 & "#" i tried the above with @ symbol also but the same error occuring. when i use this sql statement with the single quotes as the delimiter then it is giving the entire records in the table. the date format i changed to "DD/MM/YYYY" in the regional settings of Indian standard. Hope i conveyed the question correctly. looking forward for the solution.\ regards GRK SQL Server do ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Im realy new
I just started workin on this cause i thought it was cool, but i have no idea on how to get started, it all look so difficult, is there someone who will guide me in the right direction. Try looking here for details of the built in tutorials etc. ...Show All
Windows Forms Selecting new value from ComboBox in edit mode doesn't work
Hi I'm using C# VS 2005. I've got a combobbox that is populated with display and value data. When I try and edit the data record and make a new selection from the combo box, the new selection is not saved. What do I need to do to save the new selection when I update the record I've populated the combobox by using: private void GetFishSpeciesList() { FishSpeciesDALC fishDALC = new FishSpeciesDALC (); DataSet mydataset = new DataSet (); mydataset = fishDALC.GetAllFishSpecies(); fishSpecComboBox.DataSource = mydataset.Tables[ "FishSpecies" ]; fishSpecComboBox.DisplayMember = "Fish Species" ; fishSpecComboBox.ValueMember = "FishSpeciesCode" ; } Updating the record is done t ...Show All
