Namespace My
How/where is Namespace My declared? e.g. I started a new, empty project, then added a module like this: Code: Module Module1 Sub main() My.Computer.Clipboard.SetText("test my") End Sub...
View ArticleWebBrowser webpage won't scroll with mouse wheel until i click on webpage first
When i press button, new form opens with webbrowser. Webbrowser loads webpage and then i cant scroll with mouse wheel until i click on that webpage first. I tried this, but no luck: Code:...
View ArticleVS 2010 VB2010 OpenFileDialog filepath problem
Hello all, I have a problem opening file with "OpenFileDialog" from a location which uses special characters of our language. If I use filepath like follows: "D:\PROJEKTI\Velenje\TEOVS\ČP v VH...
View ArticleVS 2010 Access labels interface
I have a winforms app at uses an Access 2010 database. I use the Office.Interop to print labels I've designed in the Access DB. Right now I'm using this Code: Dim app As New Access.Application...
View ArticleVS 2010 Use of Utility classes - Bad way to do things?
In general in the past till now I have written Utility classes and methods when doing my programs. I usually instantiate these classes or have shared methods in them and use them in other classes as...
View ArticleVS 2010 Turn answer results Green
Hello everyone, I am writing codes for a pay calculator. The program works fine, except I need the text to turn green with certain results. Here is the codes for my program: Code: Public Class Je_P1...
View ArticleCheck for file compression
How do you check if a file is compressed? I want to check if every file received is compressed sothat if it is compressed I can pass it to a code that would decompress it. I understand file compression...
View ArticleProblem Manipulating Strings
Hello all. I am trying to to get a label to display a reformatted name, but no matter what I put in the text box it always reads "Name New." Those exact words. What am I doing wrong? Public Class Form1...
View ArticleVS 2010 How can I notify one form of another forms closing?
I have a DataGridView that's bound to a database on my main form, and many other forms that open up to manipulate database values. How can I notify the main form when another form closes so that I can...
View ArticleVS 2010 Cannot use Webbrowser control
I have a program that uses backgroundworkers to load database data. I also added a webbrowser control to my form. The web page loads via the on load event. There is a button which calls a the...
View ArticleProblems binding the DataGrid control?
I'm writing a VS 2008 Windows application. On one form I'm using the DataGrid control (not the DataGridView). Unlike the DataGridView control, I don't see a "Rows/Columns" objects. How do I click on a...
View ArticleVS 2010 Playin Audio From Resources
Attachment 94187 PHP Code: Imports System.Runtime.InteropServices Public Class Form1 <DllImport("winmm.dll")> Shared Function PlaySound(ByVal szSound As String, ByVal hModule As UIntPtr,...
View ArticleVS 2010 Debugging a function
I have a function that is reporting an error. This function is called from many places in my code and I am wanting to determine the code that is calling this function. How can I do this?
View ArticleConvert into vb.net
Hi, Can anyone convert this code into VB.net functions..im new to vb.net Code: public Function Racedate(DateTime d1, DateTime d2) dim monthDay as integer = {31, -1, 31, 30, 31, 30, 31, 31, 30, 31,...
View ArticleARRAY Decimal Value...Please Help!
I am trying to figure out how to add a decimal value into an array. I have stated the structure state and the DIMs and Constants But I keep getting an error when ttrying to load the information in the...
View ArticleVS 2008 Problem Updating/Editing Records to my Access Database in VB.Net 2008
I'm having a problem updating records from my VB.Net application to the database (Access Database). I've tried all sorts of update technique and i keep getting either "syntax error in update statement"...
View ArticleGetting a Windows Explorer File Structure?
I have a Windows/Desktop application that I wrote to search for literals within files. My problem is that I'm using the Drive and FileListBox controls only. I need to be able to get network drives just...
View ArticleVS 2010 Connect remotely to SQL2008Express
Hi all, I have tried but failed to simply connect from VS2010 to Sql database on another pc. I need to develop a simple app in work and so I thought I would try it at home first. This is what I am...
View ArticlePartial Class can change a Private function to a public one
Here's something interesting to me. Say you write a class that contains a private function. You can instantiate the class but not access the private function, as designed. However, say that you extend...
View ArticleVS 2010 [RESOLVED] 'New' cannot be used on an interface
Ok, so I'm getting an error that says "'New' cannot be used on an interface" with the following code: Code: Private Sub Form1_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs)...
View Article