Answer Questions
XDJ Using my.log.WriteEntry or WriteException in a web service.
I’m trying to use the my.log.writeExcption method to write exceptions to the event log on a web server. I’m having a hard time finding information on how to set up the web config. There are lots of good examples for my.application.log but not much showing up for my.log from ASP.net. The following is what I have in my web.config: <system.diagnostics> <sources> <source name="DefaultSource" s ...Show All
Bernd Wechner SQL Express and VB.NET Express Editions
I am trying to add a data connection with one of my databases in sql express and I keep getting the following error message "Failed to generate a user instance of sql server due to failure in starting a process for the user instance. The connection will be closed" How do I go about resolving this. Thanks SQL express was installed. I am able to make changes and run scripts with SQL se ...Show All
stevo2005 stack overflow in mscorlib.dll
I'm writing a program that creates a new user account in AD. I've created a custom error log to capture program errors reported by exception handlers. Yesterday, I modified some code that sends an email to the new email inbox, and I started getting this error. The debugger is pointing to the eventlog code. This code follows: Public Sub New () ' Create our EventLog object m_EventLog = New EventLog CreateLog() End Sub ...Show All
dotnetto 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 desc ...Show All
Evils Dark Detect and STOP shutdown in a VB.net 2003 Process
Howdy folks, I believe I may have found the one thing that’s impossible to program (without "cheating"). I'm using VB.NET 2003, on a winXP Pro machine. Here's what I'm trying to do: Using a service without a GUI, I'd like to detect when Windows is shutting down, restarting, or logging off. I need to differentiate between shutdowns, restarts, and log offs. As soon as one of these actions is detected, ...Show All
smitchzilla checkbox problem
Can anyone help me find information on how to handle check boxes and groupboxes I'm new to visual basic. Any suggestions are much appreciated. Thanks a lot in advance Alex I see what you mean. But, Ive noticed that when you create a databased form by dragging a datatable from data sources (i'm using Visual studio 2005) into the form it automatically generates a binding navigator which includes a save button and the code for that button go ...Show All
Niki7 in ASP.net 2.0 = Server.URLEncode, but in VB.NET 2005??
Hello, I am writing a class which i want to be language independant (ie, asp.net 2.0 or vb.net 2005) but i need to do an urlencode inside, i know in asp.net 2.0 have Server.URLEncode to convert input into URL encoding, but how can i do that in VB.net that the place i am creating my class. I have no access to Server.URLEncode() in VB.net... help Thanks, Alan, ASP.NET is a class library, NOT a lan ...Show All
garrywilliam Try..Catch not executed in EXE
I have a Shared Sub Main() in my application which, after performing various startup tasks, shows the main form by executing Application.Run(frmMain). All code in Sub Main is encased in a Try..Catch block. If an error occurs further down in the call stack (in the form or another class), then that Try..Catch block catches the error, displays a message, and calls a shutdown routine. This works fine in the development environement. However, in t ...Show All
sg2000 Type to Structure conversion
I have just started using vb.net 2003 and trying to convert an old vb program. The old defined datatype was: Type OrderHeader InvoiceNo As String * 10 CustomerNo As String * 6 End Type I understand that it is now structured like: Structure OrderHeader Private InvoiceNo As String Private CustomerNo As String End Structure but since vb.net will not handle a fix ...Show All
Witi Rename a Table in MS Access using VB or SQL statement
Hi all, How can I rename an MS Access table in VB or thro' SQL statement I have 2 clues as given below, but I am not able to get to use these ideas. These statements does not seem to refer the ADO library and hence, I do not know how to arrive at framing a program for these statements. Please help me in using these clues by guiding me how to frame a program around the statements or please let me know if there are any alternative ways. Clue 1: T ...Show All
dipika A few questions
Hi, I'm making a video game for the latest visual basic software. So far I made a character creation thing with race/class/etc. I had a few questions - how would you get one variable (for example strength) and have one for the user, but also use that individually for other monsters. How do you modify the code on your program ( I had some errors because i had two forms have the same name on accident...) yeah im a noob but im sta ...Show All
Jarrod Sinclair How to set Focus to another Form after Tree Node Select?
Hello, after Selecting a TreeNode with the Mouse i want to set InputFocus to the other Form in the right Panel. I call the Activate Method of this form in the TreeView_AfterSelect Event. But InputFocus remains at the TreeView Form. How can i do it Thank you, Markus ...Show All
billrob458 Question about tabcontrols
I have a tab control (tabControl1). When I click on an entry in my menustrip (menu1) it creates a new tabpage in my tabcontrol (tabControl1). What I want to know is how I can make it so if the tab has already been created, then instead of creating another one it will instead focus the tab that is already open. Thank you. I didn't like your suggestion so I use it's basic code and created the following instead. Try TabContr ...Show All
jpaskett Another datetimepicker question
I had a textbox(tboxAge) and a datetimepicker(dtpDate).When a user inputed his age in the tboxAge, the dtpDate value should be Jan.1,dateofbirth(1/1/19 ).Thanks... I had solve the issue using TryParse method...Thanks to everyone. Dim ageInYears As Integer If Integer .TryParse( Me .tboxAge.Text, ageInYears) AndAlso ageInYears > 0 Then Me .dtpDate.Value = New Date (Date.Today.AddYears(-age ...Show All
Zone checking properties of folders
Hi all, I am trying to run some processes to tidy up our SAN storage. A couple of the things I am struggling with are : 1) Checking the security of the folder properties to check who the owner is 2) Checking the security of the folder to check if "Inherit" is ticked 3) Search a text file for specific text I already have a process to run SETACL to fix ownership and permissions, however this ...Show All
