I've been assigned a web app written in VB using VStudio.net 2003. I am trying to configure the source on my localhost (VStudio 2008) so I can explore and learn about the current app (before I begin any real changes) and I cannot get debugging working for the web service project(s).
Symptom 1: "Unable to automatically step into the ser...
I am working in VB.net and have a Class, Foo, that implements an interface, IBar. I have a List of Foo's, but I need to pass a list of IBar's into a function, but I keep getting casting errors, even when I use DirectCast. My code is
Class Foo
Implements IBar
End Class
Interface IBar
End Interface
Sub DoIt(ByVal l As List(Of IBar...
Duplicate of http://stackoverflow.com/questions/885696/how-do-i-perform-a-better-colorize-function
I am using this function in vb2005 to colorize a pixel, however when a user chooses a color >50 i begin to lose detail in the image, any idea how i can fix this?
Private badcolor As Color = Color.FromArgb(0, 0, 0, 0)
Public Function gra...
How do i dynamically call a function with delegates by passing a string to a background thread in vb2005.net?
currently my code is this
Public Sub invertImageBK(ByVal image As Bitmap)
Dim snxl As System.ComponentModel.BackgroundWorker = createBW()
snxl.RunWorkerAsync(New ImageProperties(image.Clone, "invertImage", Nothing))
End...
I'm looking for an advanced level VB.NET book which covers LINQ and Lambda Expressions.
Generally I read C# .NET books due to lack of good VB.NET books when it comes to generic .NET Framework related subjects. However Lambda and LINQ is quite different in C# and VB.NET I'm looking for an advanced level VB.NET book on this subject.
Any ...
In the code base I'm working in there have a method that has the signature
Public Sub SetDropDownValue(Of T As Structure)(ByVal target As ListControl, ByVal value As Nullable(Of T))
The method I am writing is passed a parameter of type object.
How can I cast the object into something that can be passed into the SetDropDownValue metho...
I've trying to do an inner join select statement where I select two fields from a table, and than all the records of a field in a second table that have the same id as the first table.
The code looks as follow:
Dim conn As OleDbConnection
Dim cmd As OleDbCommand
Public Sub openDB()
rsConn = New ADODB.Connection
...
Let me provide a little detail to explain what I'm trying to accomplish before I get into the nuts and bolts of the question.
I've got two data sources - one is a SQL Server containing part numbers, descriptions, etc. The other is a CAD system that does not have a database in a traditional sense. What I'm trying to do is read out the ...
I am trying to make my own Labeller plugin for Cruise Control .Net 1.4.3. I have made a class based on another plug in example but I keep getting an error
Class 'AssemblyVersionLabeller' must implement 'Function Generate(integrationResult As IIntegrationResult) As String' for interface 'ThoughtWorks.CruiseControl.Core.ILabeller'
Here...
I am using mshtml to parse HTML in my ASP.NET-MVC application. Works great on my development machine, which has VS2008 Professional installed. Works great on my staging machine, which has VS Express 2008/WebDev installed. But it throws a FileNotFoundException when trying to load the COM object on the production server, which has no ve...
In my application, a user clicks a "save" button and is then presented with a MsgBox confirmation simply stating "Are you sure you want to save?", or something along those lines.
It's been hit or miss, but occasionally, this MsgBox will load behind the browser rather than be the center of attention with focus. How can I stop this from ...
I am working on a project that has several different codes. These codes all basically are used this way:
CodeKey
Description
GetList
GetSpecific
SetProperties
All of my classes implement this. I am hesitent, however, to use an interface because of one problem--the type Codes vary by type. Some are strings, some are integers, some a...
I have VB.NET application that uses 3rd party component to record a screen video.
The component is very simple and does not allow any manipulation with the video.
I would like to post-process the created AVI after being recorded and e.g. highlight the mouse cursor with my custom graphics.
Any ideas what's easiest? I don't mind buying...
hi,
I have information entered into a text box on an ASP.net 3.5 page. when i click the submit button i would like this information written to a sql server database.
Can someone please tell me what I need to do to accomplish this. The end-user should not see anything.
I am using visual web developer 2008. the event handling code is pl...
I have a Label, whose content is displayed by a while loop.
when i display a text in label, it displays correctly. sometime minutes, the same text displayed in the same label, and the size of the text in the control changes.
Here is the code :
//Form_Load :
Thread t = new Thread(displaySentences);
t.Start();
//display sentences:
voi...
I'm looking for a library that will disassemble x86 code into some sort of object model that I can then use to write routines that analyze the code. I'm not interested in a library that converts x86 code to text disassembly--I've found more than a few of those, but they're not that useful since I want to do some work on top of the code t...
I have a datalist control that is not retaining it values during postback when the control causing the postback is outside of the update panel that the Datalist resides in. I have verified that viewstate is on for that usercontrol as well as all its parent controls.
My basic situation is that I have a Datalist that contains a user co...
Hello,
Here is what I am trying to do:
I have three tables, manifest, details and billingJournal
for each manifest there are details and may be a billingJournal entry or not, if there is and it has the field recordType = 1 then billingJournal.amount is the billing amount and I need it in my grid also.
I currently am doing a two step ...
I want to implement copy, cut and paste in my drawing program (copy part of an image that is selected)
I don't know how to start
Any Ideas?
...
I have searched high and low for documentation on how to use this feature. While the loop I could write would be simple and take no time, I really would like to learn how to use this.
Basically I have a class, say, Widget, with a Save() sub that returns nothing. So:
Dim w as New Widget()
w.Save()
basically saves the widget. Now let'...