Can anyone point me to a good, simple, example of a Google API (AJAX Search API I suppose?) that can be implemented in VB.net (2008)? I have tried to sign up for a Google API key but it wants a URL from which the search will be executed from. I dont have a URL for this example. I tried http://localhost but then was told by a colleagu...
I've attempted just about everything to get our ClickOnce VB.NET app to run under Terminal Services as a RemoteApp. I have a batch file that runs the .application file for the app.
This works fine via RDP desktop session on the terminal server. As a TS RemoteApp, however, well... not so much.
I get a quick flash of command prompt (th...
VB.Net has a the very handy "with" statement, but it also lets you use it on an unnamed variable, like this:
With New FancyClass()
.Level = "SuperSpiffy"
.Style = Slimming
.Execute()
End With
Is there a way to get at the "hidden" instance, so I can view it's properties in the Immeidate window? I doubt I'll get it in the w...
I have a VB.NET Windows Forms project that at one point paints text directly to onto the form at runtime. Before I paint with the font though, I want to make sure that the font and font-size exists on the user's machine. If they don't, I'll try a few other similar fonts, eventually defaulting with Arial or something.
What's the best way...
Hi everyone,
I'm using VS2005 in a solution with a mix of VB and C# in different projects.
I use this solution on several different computers and XML comments with both /// (c#) and ''' (VB) have been fine for months.
all of a sudden, on my main development machine, they've stopped working in VB. They still work in C#.
They work in o...
Hello, this may be n00by, but, I have this simple question:
I have a RichTextBox control on my form. I also have this button, labeled Bold, that I want, if someone selects text in the RichTextBox, then presses the button, the selected text turns bold. Any way to do that? Simple, everyday task for end users. Thanks.
...
I'm experimenting with VS 2008 Express edition and when I hit f1 on a keyword or class name I seem to get the Information Not Found page more than 90% of the time.
Is this a configuration problem? Is it because this is the "free-as-in-beer" Express edition? Did Microsoft move their online documentation since the version I downloaded?
...
In VB.NET I'm drawing an ellipse using some code like this.
aPen = New Pen(Color.Black)
g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight)
But I want to set the thickness of the line. How do I do it? Is it a property of the Pen or an argument to the DrawEllipse method?
(NB : For some reason, the help is VisualStud...
Can anyone suggest a good source control system that interfaces with VB2005 Express? As the Express editions of Visual Studio do not allow add-ins does this mean that I will not be able to integrate source control into the IDE? I'm used to the check-in/check-out process of SourceSafe integrated into VB6. Can anyone recommend TortoiseSVN ...
I want to implement Generics in my Page Class like :
Public Class MyClass(Of TheClass)
Inherits System.Web.UI.Page
But for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirect. Is there a way to do this ?
...
Looking for a tool to calculate the # of lines of code in an asp.net (vb.net) application.
The tricky part is that it needs to figure out the inline code in aspx files also.
So it will be lines of code in vb files (minus comments) plus the inline code in aspx files (not all the lines of aspx files, just the code between <% %> tags.
...
In Visual Studio, when I type the line "Implements IDisposable", the IDE automatically adds:
a disposedValue member variable
a Sub Dispose() Implements IDisposable.Dispose
a Sub Dispose(ByVal disposing As Boolean)
The Dispose() should be left alone, and the clean up code should be put in Dispose(disposing).
However the Dispose Final...
I want to extend the basic ControlCollection in VB.NET so I can just add images and text to a self-made control, and then automaticly convert them to pictureboxes and lables.
So I made a class that inherits from ControlCollection, overrided the add method, and added the functionality.
But when I run the example, it gives a NullReferenc...
I have a scenario where I have to check whether user has already opened Microsoft Word. If he has, then I have to kill the winword.exe process and continue to execute my code.
Does any one have any straight-forward code for killing a process using vb.net or c#?
...
I'm wondering what is the best way to handle error messages in your application.
Currently I'm working on a web application and all error messages are stored in the database and we get them by ID, negative is an error ,positive are success messages.
the problem with that is hard to maintain and keep tracking of text messages.
What ar...
Backstory: I'm using log4net to handle all logging for a project I'm working on. One particular method can be called under several different circumstances -- some that warrant the log messages to be errors and others that warrant the log messages to be warnings.
So, as an example, how could I turn
Public Sub CheckDifference(ByVal A As...
I have the task of integrating a web application with MS Outlook Exchange account. I want to read the inbox items, send, reply and delete messages. Are there any good vb or c# examples out there?
...
I have the following string and I would like to remove <bpt *>*</bpt> and <ept *>*</ept> (notice the additional tag content inside them that also needs to be removed) without using a XML parser (overhead too large for tiny strings).
The big <bpt i="1" x="1" type="bold"><b></bpt>black<ept i="1"></b></ept> <bpt i="2" x="2" type="ulined">...
Would having a nice little feature that makes it quicker to write code like Automatic Properties fit very nicely with the mantra of VB.NET?
Something like this would work perfect:
Public Property FirstName() As String
Get
Set
End Property
UPDATE: VB.NET 10 (coming with Visual Studio 2010 and .NET 4.0) will have Automatic Prop...
In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB?
Edit: I prefer not to use the mouse.
...