VB.NET 2008 importing forms from another project?
I have some form/vb in another project that I want to import to a new one. There are three files with these extensions - .vb, resx, and designer.vb. Which do I copy and how exactly? ...
I have some form/vb in another project that I want to import to a new one. There are three files with these extensions - .vb, resx, and designer.vb. Which do I copy and how exactly? ...
Forgive me if this is a silly question but I'm afraid that I don't know what 'the stack' is. I know what 'a stack' is and I've learned the FILO/FIFO acronyms. But when people say things like 'a value type is allocated on the stack, not the heap' - I'm afraid I don't really know what that means. When I introduce a logic error into a ...
Hello, i am trying to get the available languages installed in visitors pc's. The problem is that i don't want to get the languages from the internet browser. Any suggestions please? ...
I have fully programmed my Minesweeper; however, I was having difficulty trying to get the same result as in the original minesweeper for when a user clicks and moves the mouse around while still right clicking. You may notice that in the original Minesweeper, when a user does as explained, the tiles that the user goes to will then look ...
Hey- I have a GUI class and a database class. I do something like: Dim db as Database = getDatabaseObject(logTxtBox) db.executeNonQuery("some update command here") Within executeNonQuery I connect to the db, execute the command, disconnect and catch the exceptions. logTxtBox is the GUI txt box I want log messages written to. Curr...
What should be more proper or what is recommended to use in VB.NET from either reflection vs. late binding: 'Type can be various objects that have a common property for sure.' Dim type = sender.GetType() Dim prop = type.GetProperty("Text", 20) Dim value = property.GetValue(sender, Nothing) versus: Dim value = sender.Text ...
How to retrieve data from database using Web services on VB? ...
We have a project that needs to gather survey data. On one particular page of the website, there are 21 questions each with a scale of 1-5 where the user selects one radio button for each question in the table. The survey is being coded in VB.NET. The data submits to an SQL database. All the radio buttons are similarly named, so only th...
I have a Private Sub Fill(), which im trying to call from button1, in the form of Dim t1 As System.Threading.Thread = New System.Threading.Thread(AddressOf Me.Fill) t1.Start() However, when I run the program nothing happens. I click the button numerous times and the function isnt being executed. What gives? The Fill function is basi...
I am using context menu in Gridview control with vb.net 2.0. This context menu is added in last column of the Gridview control. When I use IE7 working fine, but when i upgraded IE7 to IE8 it is not working properly. This context menu is not coming left side of the page. I am thinking as of context menu property that should come left side...
Please I need Tutorials on how to connect/manipulate sql server with vb.net. ...
I have a picture box and if I use Clipboard.SetImage(PictureBox.image) Then I can only paste the image into things like Paint and MS word. I can't paste it as a file into a folder/desktop. So how can I copy the image to to the clipboard and if gets pasted to a folder then it becomes a file? ...
VB.NET tutorial for beginners especially for database, please can you give me some resources. ...
I am trying to search through items in listview control in vb.net one by one. i.e When the user types in some keyworrk in the textbox and presses enter, the first found item in the listview should get highlighted, when he presses enter again, the second search item in the listview should get highlighted and so on. I am not fully aware ...
For debugging purposes, how can I print to the event log/viewer in DotNetNuke, using VB.NET or C#? ...
I have an HTTP Handler that is binding an XmlTextWriter instance to Response.Output like so... Sub GenerateXml(ByRef Response As HttpWebResponse) Using Writer As New XmlTextWriter(Response.Output) ' Build XML End Using End Sub And now I also want the same XML to be saved to the local hard drive (in addition to being st...
This is the code for function that I use for setting folder permission: Public Sub AddFileSecurity(ByVal filePath As String, ByVal username As String, ByVal power As String) Dim dirinfo As DirectoryInfo = New DirectoryInfo(filePath) Dim dirsecurity As DirectorySecurity = dirinfo.GetAccessControl() Select Case...
When catching an exception in .net, you can have as many type-specific exception blocks as needed. But I usually try to have at least one "general" exception catch block. But is there a way to get the type of the "real" exception thrown that is caught by the generic exception handler, perhaps using reflection? For example, if I have C...
VB 2008 .NET 3.5 I have a custom "Shipment" object that contains a list of "ShippingRate" objects. This list of "ShippingRates" is accessible through a property "Shipment.PossibleShippingRates." That property simply returns a copy of the list of "ShippingRate" for that particular Shipment. My UI layer receives a list of "Shipment" o...
I read several examples on the web which use the following code: Private Function SomeFunction(ByVal htmlhelper As HtmlHelper) As String Dim controller As Controller = htmlhelper.ViewContext.Controller If controller IsNot Nothing Then Dim vname as String = htmlhelper.ViewContext.ViewName 'This doesnt work End If End...