VS 2012 Accessing extended event/application and service logs from VB.NET 2012
In the new versions of server 2008+ MS have added an "Application and Services" folder to Event Viewer, I dont seem to be able to programaticaly access any logs in here, My Code: Code: Dim strValue...
View ArticleVS 2012 [RESOLVED] Date Time conversion error
I am converting my program from Access to SQL. I am getting an error in the following code. It has to do with the DateTime conversion. I placed the message below the code. The table structure is as...
View ArticleVS 2010 Best/simplest method for implementing multi-threaded file copy?
I have the following method in my console application which takes a list of files in SortedList (VMsPerDisk) and then copies them from their source to a remote share. The files are usually fairly big...
View ArticleVS 2012 LINQ BINARY Manipulation with VB.NET
Hello! I'd like some direction :confused: please in regard to LINQ and working with binary files. There are many examples of how to handle Binary upload style ASP code, some of which that utilise LINQ,...
View ArticleHow to count the number of trims in StringTrimming?
Hello, I have a question with a string trimming. I have to print a string in a rectangle. If the string exceeds the rectangle width then I need to trim the string. For this I am using this code: Code:...
View Article[RESOLVED] How to count the number of trims in StringTrimming?
Hello, I have a question with a string trimming. I have to print a string in a rectangle. If the string exceeds the rectangle width then I need to trim the string. For this I am using this code: Code:...
View ArticleVS 2012 hello i have some problem and need to learn more
hello guys iam new in this forum i want some one help me to make my program read the data ( access file ) all of my program i use like this : Code: If ComboBox1.SelectedItem = "File" Then...
View ArticleVS 2010 No mapping exists from object type ...... provider native type.
Please Help! I am a System Developer at a private company and I encounter this error while I was playing at my codes. I am using Visual Studio 2010 and my database is MSSQL 2008 R2. I keep on searching...
View ArticleRead lines from .txt
Hello. I want to make an app with random questions, for my school.. Is it possible to read questions and correct answer from an online .txt file ? For example, i have Dim question as String Dim...
View ArticleVS 2012 Application Event NetworkAvailabilityChanged not working
I'm new to this applicationEvent thing and run into a problem. (VS2012 VB.net application with .NET 4.0) I have following code in my ApplicationEvent.vb: Private Sub MyApplication_Startup() Handles...
View ArticleForm Dispose
I know that data connections should be either closed or disposed when no longer needed. My question is - If I have opened a connection within a Form and neglect to dispose it, will it be disposed when...
View ArticleVS 2012 Issue With WaitForExit On Process Started Externally
This is similar to another recent post of mine but a different problem. Part of my app starts an external process (setup.exe) and I want to monitor that for when the process has closed but the problem...
View ArticleVS 2012 [RESOLVED] Help Changing the Text displayed in a Text Box at runtime
So am trying to add a feature to an existing app I have written. The app builds a string based up on the input into four different text boxes which would then limit the amount of text in the last...
View ArticleError casting Integer()-typed arrays into Object()-typed parameters
This may be a silly question, but if I can send an Integer value into a sub/function whose parameter is typed Object, why can't I send an Integer() array into a sub/function whose parameter is typed...
View ArticleAutomate WebBrowser File Download Dialog
I am trying to seamlessly download a csv file using web browser control. I can't use WebClient DownloadFile method nor HttpWebRequest because the files doesn't actually exists, its dynamically...
View ArticleCrash in DataGridView in VB 2010 Express trying to display a Column that is Null
I am using VB 2010 Express. I get the following Crash message from the DataDesigner if the DGV tries to display a column with a null value. undefined Code: Throw New...
View ArticleVS 2012 How to query Active Directory
Hey guys, I was wondering if anyone had any code for an Active Directory query. Essentially, I want to be able to enter a username and have the user's full name, email etc. returned to me. I have had a...
View ArticleBest event to use for DataGridView when making updates??
I have a DGV that contains a column that has dollar values in it. What I want to do is simple. I wish to accumulate these values and show a total value in another control on my form. This value needs...
View ArticleVS 2008 Synchronize server time with Client Time
i am having a night mare in an application which is built on strict uni direction time tested pattern while data insert / update it is easily possible to fool the logic's adapted at the front end by...
View ArticleVS 2010 bound and unbound columns in datagridview
I use a bounded datagridview (I bind it by code) I want to add a column, which is a description of a code in a column in the datagridview: for instance, i have a column of org_unit_id, and i want to...
View Article