Will Merydith's Q&A profile
Visual Basic KeyDown event problem
I am currently using the KeyDown event to make a picturebox named "bar" move left and right with the arrow keys but my problem is that when I press left or right the bar moves once, then is followed by about half a second of not moving, then continues to move. How can I modify my code to get rid of the delay Private Sub Form1_KeyPress( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown If e.KeyCode() = Keys.Left And pad.Left > 0 Then pad.Left = pad.Left - 10 End If If e.KeyCode = Keys.Right And pad.Left + pad.Width + 16 <= Me .Width Then pad.Left = pad.Left + 10 End If End Sub ...Show All
Windows Forms create and display form using C++
hi this should be easy for most of u here but not for me... I'm using Visual Studio 2005. here's what I did: File>New Project>Visual C++>Win32>Win32Project At the solution explorer, I right click on my project's name, then Add>New Item>UI>Windows Form. I named it testForm. Then i put all the neccessary things on the testForm (buttons, labels etc).... Now I want to execute the project. How can I make the testForm displayed first hope you all understand my question. Thanks a lot. i see... yup, i really want to use C#, but i need to use openssl library..can c# support it if yes, how can u please direct me thanks a lot ...Show All
SQL Server Replication error 0x8007000
Hi All ... I am attempting to replicate tables between SQL Server 2005 and a SQL Server CE database that will be loaded on a Symbol Handheld device. I have successfully created the Publication using SQL Server Management Studio. I am attempting to follow the directions in several MS on-line articles to configure IIS. I load the "Configure Web Synchronization Wizard" as directed and step through the prompts. I have attempted both Anonymous access and Integrated Windows authentication (using Administrator and custom built users as the authenticated users). I have the system utilize a virtual directory off of the default web site - I have validated the permissions of this directory to ensure that the assigned user as full rig ...Show All
.NET Development Can't see Debug output from native-coce sub-component
We have a .NET application that interops to a native code component. Unfortunately, the debug output from the Native component is not displayed in the output window. We are already hampered by not having mixed-mode debugging on x64, not being able to see debug output makes it near impossible to debug. The x64 debugging story for mixed-mode (real-world) applications is really very bad. I'm hoping there is some flag I can set or some hacking I can do in the native component to fix this. Please advise. Thanks Unfortunately, debug output from OutputDebugString() goes to native debuggers but not managed debuggers. When you are doing mixed-mode debugging in VS, it is attached to the debuggee as both the manage ...Show All
SQL Server @@IDENTITY vs. SCOPE_IDENTITY() on CLR Context Connection
Dear all, I am trying to use SCOPE_IDENTITY() on the CLR Context Connection since it is limited to insertions in a more narrow scope than @@IDENTITY . The connection string in the .NET Assembly is: Using connection As New SqlConnection("context connection=true;"), Onwards, I insert a new row to a table with an int(4) identity column, but the following returns zero (0): Using command2 As New SqlCommand(" SCOPE_IDENTITY() ", connection) Try NewTagID = CInt(command2.ExecuteScalar().ToString) However, the following code returns the actual identity value : Using command2 As New SqlCommand(" SELECT @@IDENTITY ", connection) Try NewTagID = CInt(command2.ExecuteScalar().ToString) Why doesn't ...Show All
SQL Server Autoformat a table?
Hi. I created an SSRS report awhile back and it had a very nice design to it. I vaguely remember choosing an autoformat style for it, so that it would have blue headers and grid lines, etc. For the life of me, I can't find that feature. Where do you do you select one of the predesigned styles to apply to a report Thanks. Thanks for the response. Can you change a template after a report has been created; in other words, can the template be changed after running the wizard Our users might want to go for a different look after they see a demo. Do we have to run the wizard again to use a different template I've looked everywhere in SSRS but can't see any place where the template can be changed -- other than to ...Show All
Visual Studio Express Editions Save project as
Is there any way to save a whole project as a new name (new project) - not just Form1 I miss a file menu point like "Save project as". A VB project consist of an awful lot of files in nested libraries so if you want to test a modification it would be very nice to be able to save the entire project under a new name. Ask and you shall receive.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1135620&SiteID=1&mode=1 ...Show All
Smart Device Development Drive mapping across WiFi in Windows Mobile 5 ?
Has anybody successfully mapped a network drive to a Windows server across WiFi with a Windows Mobile 5 device Please enlighten me on what you did to accomplish this as I'm getting the error message "The network path was not found" followed by "The network resource was not found, or you don't have permission to connect to the network." no matter what I've tried and I've even configured my Windows XP Home edition to share drives and still the same problem. I'd write HP an email. Do they have a developer site that the public can access If they do, and you haven't already looked there, look there first. ...Show All
SQL Server Order which mirroring database get up
Hi I have 3 server configured with mirroring. When the automatic failover occur, I use alter event generate by Sql Agent to rebuild user account (problem witch orphan user). My application use multiple database and I set up mirroring to multiple database. A question is the order which database get up after automatic failover. When event occur all database are ready to use, or maybe one database get up and sql agent send me event , secound database get up and sql agent send me event. What is the order There isn't any specific order. The first one to detect a failure will be the first one to failover and should theorectically be the first one online. Use the WMI events to trigger the alerts on state chang ...Show All
Visual C# Problem with dataset designer
Hi. Our team have been having a few problems with the designers in VS2005 Team Edition for Developers. Most recently, the new dataset designer disappears. The IDE appears to use the XML schema editor instead. The dataset editor is no longer listed in the "open with" dialog. Table adapters are no longer available, and it is not possible to add the partial class for custom code. This problem has spread from machine to machine over the last month, but we have not been able to identify a pattern. Our best fix so far is to uninstall and reinstall VS. Also, many designers seem to leak, and when we do designer intensive work, the IDE degrades to such an extent that restarting it every hour provides significant benefits. I could ...Show All
Windows Forms On tabpage enter focus textbox...?
I have two tab pages.In the first tabpage I have some textboxes also in the second tabpage. I wont to get focus on Textbox3 (in tabpage2) when I enter the tabpage2 but it wont do that. This is my code: Private Sub TabPage2_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabPage2.Enter TextBox3.Focus() End Sub What is the problem Thank you! Handle the tab selectedIndexChanged event instead of TabPage Enter event, because the selectedIndexChanged event is fired after the TabPage Enter event,it would overlaid your codes write in the enter event. ...Show All
Visual Studio Express Editions Graphical operations
I am looking for some application notes or code samples for graphical operations such as drawing on a form (in VC++ Express). I do see that there is a .NET library namespace called "System::Drawing", so I suspect there is some built-in support for drawing... Also, how easy is to implement graphical operations in a Windows Forms application vs. an MFC application Do I need to migrate to the Standard/Professional editions (and develop an MFC application) to get good graphics support Just to give you an idea, here is roughly what my application needs to do: Allow users to draw a "schematic" (on a Form) consisting of an arbitrary number of rectangles connected by lines (preferably using some predefined shapes) ...Show All
Windows Forms EULAs, Passwords, QuckLaunch and MSIs
Hi, I'd like to know, is it possible to: a) Password Protect MSI Applications b)Can you add EULAs & information before/after the installation c)Can you allow the user to dictate whether the installer can or can't put a Quick Launch/Desktop shortcut and a Start Menu folder Thanks, Eragon. Hi, Thanks, most of that worked, I got all the dialogues to appear, but the CD Key page only had the UserName and Organisation. How do I get a textbox to ask for the CD-Key and a valid name Thanks, Eragon. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Threads
Does the XNA framework utilize threads automatically I know the update and draw methods are called automatically, but do they run on different threads The xbox 360 has multiple cores, so it'd be stupid not to utilize those. How does threading work in XNA How things will run on the xbox is not released, and has not been talked about very much at all. So don't be surprised if there is no information yet. Only someone from the XNA team can answer this anyway as any external people will be under NDA and can't talk about it if its not public. We've already added a request in the documentation thread for this based on this thread ...Show All
Visual C# Passing Exception Details from a Windows Service
Hi all, When I throw an exception from my OnStart() method in a Windows Service, the exception message pops up, but the text is garbled. Its like: "Could not start the Test service on Local Computer Error 0xffffffff: 0xffffffff " How can I make it show the string message I pass while constructing the exception, instead of 0xffffffff Here's how I throw the exception currently: protected override void OnStart( string [] args) { if (initializeService()) { // Do some work } else { this .ExitCode = -1; Exception startupException = new Exception ( "Error happened during initialization!" ); startupException.Source = "initializeService" ; startupExc ...Show All
