Jon Stroh's Q&A profile
.NET Development Failed to access IIS metabase, VS2005 RC
I am developing a webservice in Visual Studio RC. I have just got a new pc and my problem is that I am not able to access this webservice. I have created a virtual directory in IIS, but if I try to browse there, I get a "Failed to acces IIS metabase" error message. Does anybody know how I can resolve this problem 1) Is IIS installed on the machine (From a command prompt NET START - Is IIS Admin service present in the list) 2) Is ASP.NET installed - Run aspnet_iisreg.exe /lv from the VS command line prompt 3) For 2) is the default install for ASP.NET v2.0 as opposed to v1.1 ( the running version is marked with ...Show All
Visual Basic Threading not working as expected (using a COM class in a BackgroundWorker)
Hi, I've written a COM server class (KCAMSERVERLib.Camera) to remotelly control digital cameras from the computer through a USB cable. I'm now in the process of writing a simple GUI for it, and I've chosen VB2005 for that purpose. Some actions, like "Shoot()"ing a picture, take some time so I added a BackgroundWorker object to my VB project to run them in a separate thread. The problem is that the GUI still freezes during shooting, like it all was run in the same thread. I post here a simple test that shows this behaviour: Public Class Form1 Dim Camera As New KCAMSERVERLib.Camera Private Sub Form1_Load(ByVal sender As Sy ...Show All
SQL Server Deployment
Hello, I was reading some article which said, the reporting service (sql server 2005)does not have many capabilities and so, after initial development of reports you can deploy it to a custom website or an application and then use .net to enhance report functionalities... How to do this..Please help me.! Thanks, I have tried to create a script in MS SQL Server Management Studio that uploads Excel to SRS. (I shortened the numbers that represent the excel file for brevity) Public Overridable Sub Main() CreateResource End Sub Private Sub CreateResource() Dim Resource As String = "CARDAPPTS" Dim ...Show All
Visual Studio Gatteing a Service from within an Addin
Is there a way to access the GetService method on a service provider from within an AddIn. ----------------------------- Jack Stephenson Hi, Yes, see for example my article: HOWTO: Getting IDesignerHost and IHTMLDocument of WebForms from a Visual Studio .NET add-in http://www.mztools.com/articles/2005/MZ004.htm ...Show All
Visual Studio Express Editions c# pointers
A need help and hope someone here can help me!! A long time ago I used c++ and used pointer but now moved over to c# and havent programmed for a while! my problem is: I have a picturebox that contains a number of rich text boxes (dont ask why!! :D ) what I want to do is enable bold on all of the richtextboxes with only using reference to the picture box (called pbxContainer ) this is all the code I have written before a blank: private void bold( PictureBox pbx) { int count = 0; while (pbx.Controls.Count > count) { //need code here count++ } } what I wish the while loop to do is go th ...Show All
Windows Forms Keeping connection open: Good Idea?
Making the transition from ASP.Net to windows forms. While I would never do this in ASP.Net, it seems that it may not be a bad idea in windows forms: I have a pretty straightforward little application where I have a main form that remains open as long as the application is running. Various other forms are opened from this main form an ...Show All
Visual Studio 2008 (Pre-release) C# 3.0 Feature Suggestion - symbols
I was playing around with ruby the other day and was reminded of the ":" symbol as in "abc".send(:length), although ruby doesn't care if the :length symbol actually exists on the target, it gave me the idea that we could really use a language feature that would have compile time checking for class members to be used as an alternative to passing around field/property names as strings that are later used in reflection apis, O/R mappers, rule engines, WPF, etc. Reflection can be useful way to remove clutter from the domain model and make the code simpler it can also introduce hard to find bugs (if your tests aren't good enou ...Show All
Windows Forms BUG: Focus for a MessageBox
I'm pretty sure this is a bug of some sort, but if this is by design, then my suggestion would be to change it! :p If I have one TextBox on a form and have a method that handles the KeyUp Event. In the event, I have code to check for if the user hit enter. When they hit enter, it goes out to a table and& ...Show All
Windows Forms DataGrid Sort Selections
Greetings, I would like to add a “no sort” selection to the sort options for a DataGrid. I’ve noticed on several 3rd party datagrids that when the column header is selected consecutive times the sort goes from ascending, descending, original order. The DataGrid only goes from ascending, descending. I want to capture the header column click event and add a ...Show All
Visual Basic AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
.NET Development Graphics in component forms for multi thread applications
I want to use a component form in a thread to process graphics in the backgroung. But the component module doesn't recognize the graphics code that a regular form does. For instance the component form gives me an error with this code: Public Sub getPic() Me .SetDesktopLocation(0, 0) Dim g1 As Graphics = Me .CreateGraphics() Dim MyImage = New Bitmap(Wid, Hgt, g1) Dim g2 As Graphics = Graphics.FromImage(MyImage) Dim dc1 As IntPtr = g1.GetHdc() Dim dc2 As IntPtr = g2.GetHdc() BitBlt(dc2, 0, 0, Wid, Hgt, dc1, XPos, YPos, 13369376) g1.ReleaseHdc(dc1) g2.ReleaseHdc(dc2) MyImage.Save(dest) bmp1 = ...Show All
SQL Server Dynamic Connections
I have read the posts on dynamic connections and still am not able to get it to work. Sorry, but I need specific instructions. I know it has something to do with the For Each Loop container, and something with the package variable, but I need more instruction. What I am trying to do is transfer data from several (86) servers to a central server (all SQL Servers). The many servers will have the same code run against them to gather data and transfer it to the central server. I have written a package with those two objects for each server, but I know that there has to be a way to create just those two objects with the connection of the first ...Show All
Software Development for Windows Vista OS crashes with registry APIs calls
Hi, Im excercising some registry functions for my automation. I am not too sure which function, but my OS crahses on reboot. (refuses to start). I am using the following API's RegReplaceKey, RegUnloadKey, CreateProcessAsUSer and CreateProcessAsToken. Any help would be appriciated. I have logged in as Administrator. I am also adding the code snippet here: INT TestRegReplaceKeyA( VOID ) { LONG ReturnVal = 0; HKEY KeyHandle = NULL; CHAR filePath[STD_BUFFER_SIZE] = {0}; CHAR fullFilePath[STD_BUFFER_SIZE] = {0}; CHAR oldfilePath[STD_BUFFER_SIZE] = {0}; CHAR fullOldFilePath[STD_BUFFER_SIZE] = {0}; HRESULT Result = E_FAIL; HANDLE handle = NULL; pr ...Show All
Visual Studio Express Editions 'Exclude From Project' in Solution Explorer
Hi All, Visual Studio .NET 2003 and Visual Web Developer both have a 'Exclude From Project' menu command when right-clicking a file in the Solution Explorer. I can't find this command in Visual Basic Express. How can I remove a file from my project, while in the IDE, without deleting it Thanks, Gordon Bell So, there is no way to remove a file from a solution, without Deleting it ...Show All
Windows Forms ClickOnce updates all assemblys!
Hi, I am now trying to deploy with Click Once, and have run into 2 problems/questions. I have 6 projects 1 win and 5 class libs. I seem to think that with Click Once I should be able to make a change to library X and redeploy, in turn the user would only need to download that one assembly. The problem I am having is, a change to 1 library forces the user to download the entire application again. I must just be missing something, what is the way around this Thanks Are you sure it download the whole app ClickOnce is designed to only download changed files. When the user gets an update, the new file ...Show All
