Steve98796's Q&A profile
Visual Studio 2008 (Pre-release) Automation & ToggleButton
I have an custom ToogleButton and I want to have an Invoke interface " IInvokeProvider" How I can implement this interface into my control. I use System.Windows.Controls. Thanks I found finaly the correct aswer thant a lot for your response. using System; using System.Collections.Generic; using System.Text; using System.Windows.Controls.Primitives; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Automation; using System.Windows.Input; using System.Windows.Automation.Peers; namespace Test { public class MyButton : ToggleButton { public MyButton() { Click += new RoutedEventHandler(MyButton_Click); } void MyButton_C ...Show All
SQL Server IE7 script error when opening Infopath forms
Hi, I installed IE7 recently and it is giving me problems when I open Infopath forms to edit documents. I have a sharepoint website which contain links to these forms, when I click on the link it opens the infopath form. It was working absolutely fine when I used IE6. But now when I open the infopath form it gives me an error saying that A Runtime error has occured Line: 38 Error: Object Expected When I open it in the debugger it shows me an error at <body onLoad="onLoad()">. Could someone please advice! I appreciate a quick response. Thanks ...Show All
.NET Development timestamp
Hello, I was hopeing if someone might be able to tell me what the datatype should be if I want to set hold the value of "timestamp" from a data record from a SQL Server 2005 database. I'm using VB.net. I want to use the field in a "update .. where timestamp = <old timestamp>" type of update statement. Thank you Binary type is an array of bytes: Dim timestamp(7) As Byte ...gives you a variable, containing 8 bytes Andrej ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Images
Would using directx help in the speed for rendering images from data arrays I have large images, sometimes 20 megapixels or more, and right now I simply create the bitmaps from double or integer data arrays, using lockbits and setting the bits manually because it is fast. I do use openMP to multithread that though and that helps. Thanks for input! Joe ...Show All
Visual Studio Express Editions problem with comboBox1 and the Enter key
Hello. I am on my second project, a web browser, and I have aproblem with ComboBox1 and the enter key. Here's the code: Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If e.KeyCode = Keys.Enter Then WebBrowser1.Navigate(ComboBox1.Text) End If End Sub It works fine, when I press the Enter key WebBrowser1 navigates to the url in the i type in the comboBox. The problem is (anoying) every time I press the enter key the Windows Error Event Sound sounds. any ideas Your help will be very much apreciated. Thank you. I was wrong. KeyDown (and KeyUp) will not stop the beep. But ...Show All
.NET Development IIS, Service Unavailable
Hi, My problem is like this. 1. There's a machine with Windows Server 2003 SP1. And i check there is no IIS installed, So i installed the IIS separately with some issues because when I install using the OS cds, it prompt me message like "Please insert Win 2003 CD SP1" which i dont have it. But i manage to solve it and install the IIS. When i try to open the local host, it says "Service Unavaible". How should i resolve this Thanks and Regards Hi, Sorry I dont get it. What do u mean by configure it I thought by default when i install IIS it should work already During the installation, i didn't have the Windows Server 2003 SP 1 CD, so i use the stardard installation Win Server 200 ...Show All
.NET Development How come Console.WriteLine() does not work any more
Hi all, I have a C# winform application. If users run it from the command lines and pass a /Help or / to it, it does not invoke the winform, but instead uses the Console.WriteLine to display the help and then exit. I know for sure this works before, at least prior to my upgrading the VS2005 with SP1. Now suddenly, the WriteLine() does not work any more. If I enter /Help or / , the WriteLine() basically executed but does not write any thing on the console. And then the program exits ...peacefully. Note that I debug the code and indeed the WriteLine()s are executed. Within the VS IDE, it does write the messages to the output panel. But from the DOS command, nothing is displayed. Here is the code: static int Main( string ...Show All
.NET Development Application using WebService
Hi Have developed an application that is deployed using ClickOnce. Using WebService to access data on the server. All users tested running on the same machine, different logins and access rights, XP. When running from a user with administrator right everything works nicely. When running on a user with 'Limited account' right I get an exception: WebExceptionStatus.NameResolutionFailure. I have tried to change the users rights to 1) administrator and 2)added him to the group 'Power users' and my application runs fine. Setting the right back to 'Limited access' and the exception NameResolutinfailed is back. Is this problem due to some settings not properly set in ClickOnce Or, cannot users with 'Limited account' use Appl ...Show All
Visual Studio Tools for Office Purpose on signing assembly
Hi, What's the purpose of signing my assembly Does it help security to trust my assembly For info: my VSTO solution is a 'code behind' solution (for Word 2003) Thanks, Claudia Douglas H. Troy wrote: Well darn-it, Cindy, ya beat me to the punch again. I know the feeling <g> It sometimes feels as if the forums should have a "check-out" system... ...Show All
Visual Studio Express Editions Error "The string binding is invalid" on application exit
Hello again, I am getting an error when my application exits. It happens after the last object of the main function is destroyed. I guess it happens during the destruction of the static objects, but I can’t find which one because the debugger says there is no source code available for the location of the error. These are the messages sent to the output window at the application exit: The thread 'Win32 Thread' (0xb00) has exited with code 0 (0x0). The thread 'DebuggerRCThread::ThreadProcStatic' (0xf7c) has exited with code 0 (0x0). First-chance exception at 0x7c812a5b (kernel32.dll) in padol.exe: 0xC0020001: The string binding is invalid. Unhandled exception at 0x7c812a5b (kernel32.dll) in padol.exe: 0xC0020001: The string bind ...Show All
SQL Server Backing Up and Restoring Transactional Replication
From Help Transactional replication includes the sync with backup option, which can be set on the distribution database and the publication database: It is recommended to set this option on the distribution database in all cases. Setting this option on the distribution database ensures that transactions in the log of the publication database will not be truncated until they have been backed up at the distribution database. The distribution database can be restored to the last backup, and any missing transactions are delivered from the publication database to the distribution database; replication continues unaffected. Does database will not be truncated until they have been backed up at the distribution database mean that the d ...Show All
Visual C++ msvcr80.dll not found
I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny I'm getting this error on XP64 with Express 2005 beta 2. I tried to create a Win32 test app using this set of instructions: http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx When I attempt to run it I get the missing DLL. Copying the DLL into the Debug directory allows me to run it. The IDE tells me it can't open an EXE. Without the DLL, I get a DLL load exception attempting it. With ...Show All
Software Development for Windows Vista Can't find GetIpInterfaceEntry
Hey Everyone, This is probably a very simple thing, but I want to use the new GetIpInterfaceEntry function in the IP helper library, but it does not seem to be there. When I try to compile, I get all kinds of errors: NETIOAPI_API is an undeclared identifier, as is PMIB_INTERFACE_ROW and, of course, GetIpInterfaceEntry as well. The documentation says this function is defined in Netiopapi.h, which is supposed to be included from iphlpapi.h. However, my iphlpapi.h doesn't include netiopapi.h, and it's not anywhere I can find it. I'm using Visual Studio 2005 version 8.0.50727.42 on Windows Vista Ultimate. I assume I'm using the wrong version of something, but I don't know what. Could someone point me in the right direction Thanks, ...Show All
Visual Basic How to commit data to SQL database
Could someone help me understand why this code doesn't make the changes in the external file The datarow is added virtually, but is not written to the disk. tia DataSet1.Tickers.AddTickersRow( "SN" , "FN" , 100, "STK" , "SMART" , "" , "USD" , "" , "" , "" , "" ) Me .DataSet1.Tickers.AcceptChanges() Me .TickersTableAdapter.Update(DataSet1) Don't call accept changes before the update...and see this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=427451&SiteID=1 ...Show All
.NET Development VC 8 <-> VC 7.1 compatability, System.TypeLoadException: Method XXX does not have an implementation
I have a case where I am getting a System.TypeLoadException with a message such as: "Method 'xxx' in type 'yyy' from assembly zzz does not have an implementation". The scenario involves a .NET 1.1 mixed assembly written in MEC++ that defines some value types and some managed interfaces. Then there is a mixed .NET 2.0 assembly (also written in MEC++) that does early binding with the .NET 1.1 assembly and which contains a class that implements the interfaces defined in the .NET 1.1 assembly. When the .NET 2 program attempts to call a method on its own class that implements a .NET 1.1 interface, that is when the System.TypeLoadException occurs. Is this a bug in the CLR, VC 7.1 or VC 8 If so, is there a workaround If it is work ...Show All
