Michael Hewitt's Q&A profile
Windows Forms Two method in diffrend thread?? How?
hy, i have method how read informatin from serial ports, and in same method, function who put information to Listbox in Form. And now, when I execute (compile) this method , they me post Erorr "Cross-thread is not ok" . "SerialPort1.ReadExisting" and " listbox.Items.Add is not and sam thread....how can I put Ithem.Add in same thread with ReadExisting...How can I use BeginInvoke method for this Thank you my c ...Show All
Software Development for Windows Vista ASP.Net Designer example
Hello all, I am looking for an example on howto host the desingner inside of an ASP.Net application. I've seen the included designer hosting example that comes with the SDK, but this is a destktop app, thanks in advance for any help!!! Kevin Booth KevinBooth wrote: Hello all, I am looking for an example on howto host the desingner inside of an ASP.Net application. I've seen the included desig ...Show All
Visual Studio Express Editions Setting the start Action when debugging a DLL
In VS 2002 I was able to set the Start Action to start an external application. I can't seem to figure out how to set this up in VB.Net 2005 Express. I tried to follow the help but when I went to Tools>Options there was no topic for debugging, and when editing the debug properties of the project or solution I don't see this option. TIA Thanks. That is a lot of help. I didn't have an existing user.vbproj fi ...Show All
Windows Forms How to Disable a Tab in TabControl using .NET 2.0
Hello all, in my Win Applicaiton. i am using TabControl. In this I added 2 Tabs. I want to disable second tab. I am not finding the Enabled Property. How to do this any sounds will be appriciated tabControl1.TabPages[1].Enabled = false; Dont care about the intellisense. Just run it ;) ...Show All
Windows Forms app from website - not trusted?
Hello If I publish an app to my website, when I try to install it, I get an error saying "application has been blocked...high security risk". Is there any way around this Thanks Hopefully I can clear up the signing issue for anyone currently trying to mess around with Click Once. - Click Once apps require Authenticode digital certificates to be signed. - This is because under Windows SP2 all programs down ...Show All
Visual C# Close 'X' button problem on child form
Post smallest amount of code of a single Form that reproduces this. By default clicking the x will close the form. All of the child forms have a common factor and that is they all use while loops. I am collecting a ton of serial data and looping works best. Does the loop have something to do with it, I would expect the App.doevents() to handle the event correctly when it fires. Below you will find the constructor, MyForm_ ...Show All
SQL Server Potential Firewall Issues With Installation
I have had the same problems with fresh installs or SSRS as many on this forum. Tonight, I installed on a new PC (Win XP Pro) and SSRS installed correctly. What I noticed is that in the installation program, when installing SQL Server 2005 and SSRS, the installer had to go out to the Internet for something (the firewall that came with the PC reported this). I did nothing diffeent from previous unsuccessful installs except control (allow) Net acc ...Show All
SQL Server Whether SQL Server 2005 Express Edition can work with Visual Studio 2003 (Ver 1.1)
We are new to SQL Server 2005 Express Edition. We are going to develope a solution for one of our client and we have to decide on which database to use for the solution. Client wanted to have a low cost solution. Thus we were not in a position to push them for SQL Sever 2000. In the process, we also thought of having MySQL as one of the option. Another option we have is to use SQL Server 2005 Express Edition. We wanted to know if SQL Serve ...Show All
.NET Development different behavior of cmd file when started by a web Service
Hello, i'm facing a problem that's really driving me mad..... I fear I'm missing some fundamental step .... but I cannot imagine what ... I wrote down a basic WebService to start an executable file (using the shell command). The cmd file by itself works fine ... doing what it was projected for ... (unlock the ScreenSaver of the Server machine with the following instruction : ..... Keybd ...Show All
Visual C++ Fatal error c1083: cannont open included file 'eikenv.h'
Hello, I develope a symbian c++ program for a nokia 9300. I use VS .NET 2003 and when I compile my project i get: Fatal error c1083: Cannot open included file 'eikenv.h': No such file or directory Fatal error C1083: Cannot open include file: 'txtrich.h': No such file or directory Fatal error C1083: Cannot open include file: 'NokiaApplication.h': No such file or directory All this error comes from the first code line of each file. I have inc ...Show All
Windows Forms custom controls in C#
Hello someone can give me a good article for creating custom controls in .NET 2005 thanks i have used the same code in my windows application, like namespace Hostner { internal class MyComponentDesigner : System.Windows.Forms.Design. ControlDesigner { protected override void PreFilterProperties( System.Collections. IDictionary properties) { base .PreFilterPrope ...Show All
Visual Studio C# as macro language
I've heard that C# may be available as a language for writing macros in the future. It seems like that could be a relatively easy thing to do. Is there any ongoing work on this This is something that we are looking into doing for a future release, there are no immediate plans, but this could change. Craig ...Show All
SQL Server Can you create an Alias in a Data Source View?
Hi All. I'm building a report model for the first time (SQL Server 2005 June CTP). I created a data source view by adding the tables that I wish to have in the model. Now I want to use one of those tables more than once, but I don't see a way to create an Alias. I see that I can create a Named Query, so I could use that, but I'd rather have an Alias for performance reasons. For example: Let's say you have a Fa ...Show All
.NET Development Can not create users in asp.net 2.0 Framework and VS RC
I can not create a user no matter how complex I make the pasword. I have tried all forms of combination. I am testingthe club web site using sql express 2005, asp.net 2.00 visual studio RC 2005. Here is the error I get An error was encountered. Please return to the previous page and try again. The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodH ...Show All
Windows Forms Deny MessageBox in WebBrowser Control
Hi, I've been racking my brains & losing sleep getting a WebBrowser control (in a vb/c# vs2005 Windows App) deny MessageBoxs . I can do it really (really) messily, but would prefer having the following c++ code in a UserControl or something, anything //this Form contains WebBrowser Control public partial class WebBrowserForm : Form { protected override void WndProc(ref Message m) { if (m.Msg == 134 || m.Msg = ...Show All
