E Hauck's Q&A profile
.NET Development Help with Windows Service and System.Threading.Timer object
I'm having no luck getting a simple timer event to occur in a windows service I'm writing. The service installs and runs with zero errors or problems, however simply does not call the timercallback function. I've been through multiple tutorials about using timers in windows services and none of them have worked. All the service is supposed to do, is create a file and/or create an event log entry to show that it called the timercall ...Show All
Visual Basic Memory usage
When creating global variable there seems to be 2 options. Option 1 Global myVariable as String Then as needed in the code put in lines such as myVariable = "LeftHanded" or myVariable = "RightHanded" Then when you retrieve these variable they have some meaning. Option 2 Global myVariable as Integer Then as needed in the code put in lines such as myVariable = 1 or myVariable = 2 Unfortunately, if there are a lot of choices besides 1 and 2 it ...Show All
Visual C++ Can't find MFC80ud.dll error
I once upgrade my 2002 project to 2005, and it worked without any problem. But after I change the charset from mbcs to Unicode, then when I run the debug version, Windows informs me that "cannot find MFC80ud.dll". After hours of research and compared with the default project created by 2005, I found that the problem was due to manifest file in ".rc" (It was auto-generated by 2002): ///////////////////////////////////////////////// ...Show All
SQL Server Problems Using Temporary Tables
I am declaring a temp table in control flow via Execute SQL task. I then want to use that table as a source in a data task, keep it alive going back to control flow and use it as a destination in another data task following. I am having trouble just getting the first data flow to access that temp table. In my Execute SQL task, I'm creating a simple temp table. After executing that task, I can head to the data task and change my OLE DB Source to ...Show All
Windows Forms Tabbed MDI Manager control
Is Whidbey going to ship or give a sample for a Tabbed MDI Manager control It would be good if I could use a control from Microsoft for controlling my layout of child windows forms in a MDI application. Thanks I was under the impression that tabbed mdi would just be a part of mdi in .NET 2 Eg if you set up your app to use mdi then check tabbed mdi in a property window somewhere then you'd get tabbed mdi... ...Show All
Windows Forms Datagrid column heading
In datagrid one of my column heading is big. I want to wrap it to the next row how should I do in VB.net Have you checked: http://www.syncfusion.com/FAQ/WinForms/default.asp#44 ...Show All
Smart Device Development Could not load type with framework 2.0
Hello, I have a problem with my .Net Web Application. I was developing with 2003, but I migrate my application to the 2005, and in my local machine I don't have any problem I can see my applivcation in the browser, but when I put my application on the server I have the next error: (With 2003 I got not problem,neither in the server neither in my local machine) Parser Error Description: An error occurred during the parsing of a re ...Show All
Visual Basic A Place To Host Oneclick Apps
Short of registering a domain, is there anyplace that would be good place to host a collection of small oneclick apps ClickOnce applications don't make any requirements of their host, in fact it doesn't have to be a web server. You can deploy a ClickOnce application from a share, a local directory, or a website ... as long as the website is configured to allow all of the application's files be do ...Show All
Visual Studio Express Editions Sharing files between threads - how?
Hi, I am trying to build an application where one thread samples values and writes them in a file, while another thread reads that same file, processes and displays the data. How can I manage the file is open to both threads and manage the file with streamwriter and streamreader More info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=217070&SiteID=1 Thanks all Jake I really liked ...Show All
Windows Forms Drawing row header cell borders in the cellpainting event
Hi, i have been working in c# 2.0. i wanted to place icons in the datagridview row header cells. I had overridden the cellpainting event and used the drawicon to place the icons. i want to now get back the default row header border style (Raised one) as a border for the row header cells. Any idea how i may achieve this void dataGridView1_CellPainting(object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e){ if (e.Colu ...Show All
Visual C# how to make an application that loads automatically when windows start??
i want to make a c# application that automatically loads when the windows starts how can i do that through the program Add the filename of your program to the registry at HKCU\Software\Microsoft\Windows\CurrentVersion\Run using Microsoft.Win32; RegistryKey key = Registry .CurrentUser.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run" , true ); key.SetValue( "MyAppName" , Application .Execu ...Show All
Visual Studio Express Editions serial port help for dummies!
is there any documentation on how to use the serialport component in visual basic express edition Hi Rick I have uploaded my application on the download page of my website at www.ampertronics.com.au if anyone would like to donload and try it out you are welcome. It is a simple program that is a cross between Notepad and Hyperterminal and sends thing out to the serial port. Any installation or other problems/sugg ...Show All
.NET Development App.config and saving the configurations...?
Hello, I've searched the internet but couldn't find what i need.I created a config file: App.config: < xml version="1.0" encoding="utf-8" > <configuration> <appSettings > <add key="Refresh" value="60" /> <add key="File" value ="einstein.jpg"/> </appSettings> </configuration> I created a winform to view and change the information. ...Show All
.NET Development What is the problem in my code(SaveFileDialog or OpenFileDialog)when I call a call within a function?
In a v c++ class(2003 version) whenever I use this statement, SaveFileDialog* m_pFileSaveDialog = new SaveFileDialog(); firewall (or security agent) says The process is attempting to invoke a system function from a buffer. do you wish to allow this How to fix it in code as I can not close the security agent. This is only happening for SaveFileDialog and OpenFileDialog functions As per my underst ...Show All
SQL Server SQL Configuration holding connections to DS
Hello All, I have about 160 packages in my system, all using about 20 shared datasources. When changing one of the datasource's connection (changing the server name), I need to open every one of my packages and press OK to allow the remapping to the new server. (this is something I don't understand: wasn't this the meaning of using a share datasource in the first place what's the advantages in that case ) So, I have heard about Package co ...Show All
