It looks like this question was addressed here, but his solution did not work for me. I am creating a dynamic dropdown menu system that populates a secondary dropdownlist with the results of a query based on the selected item in the first dropdown.
First dropdown getting populated:
Dim db As New linqclassesDataContext
Dim categories =...
I have a college assignment due quite soon, and I need to be able to call a C++ dll that takes a long time (possibly infinte, it relies on user input)to execute. Im calling this through VB. My VB GUI freezes up when this happens, and I would like to keep the GUI responsive, so that the user can stop this possibly infinte loop.
Can anyo...
I have a sub routine where I pull in information from a database. I want to use variables from this sub routine in another sub routine. I tried making everything public but it doesn't want to be friendly and share.
Dim strEmail as String
Public Sub readDB()
strEmail = "[email protected]"
End Sub
Public Sub submit_btn(ByVal send...
I am writing my first class-library in VB.NET. My idea is to distribute this library so others may use it in their applications.
However, perhaps due to my lack of experience in writing and structuring the library and the classes therein, I noted that the methods/properties are ALL being shown in the IntelliSense of Visual Studio.
The...
I have the following code:
Dim db As New linqclassesDataContext
Dim categories = (From c In db.faq_cats)
NewFaqDropDownCategory.DataSource = categories
NewFaqDropDownCategory.DataTextField = "category"
NewFaqDropDownCategory.DataValueField = "category_id"
If Not Page.IsPostBack Then
NewFaqDropDownCategory.DataBind()
End If
Unset(cat...
I am looking for information on the best practices or project layout for software that uses SQL embedded inside VB.NET or C#. The software will connect to a full SQL DB. The software was written in VB6 and ported to VB.NET, we want to update it to use .NET functionality but I am not sure where to start with my research. We are using V...
Guys, how can I import the System.ServiceProcess namespace into a WPF project in VB.net (not C#)? The ServiceController object is not in the toolbox in VS2008 and can't see to figure it out. Any ideas? If that particular namespace cannot be imported into WPF projects, could somebody suggest another way of controlling windows services fro...
I have a function within a class which I would like to return the class itself however "return this" appears to be invalid in VB.
I am using ASP.NET v1.1 if that makes a difference?
Sample (extremely simplified) code is as follows:
Public Class Cart
Private sItems As String
Public Function addItem(ByVal itemName As String) A...
I have an interface that describes an specialized list in my application...
Public Interface IAlphabeticListItem
Property StartingLetter() As String
Property DetailsList() As Generic.List(Of DetailsData)
End Interface
Multiple objects implement this interface, but I want to return them in a webservice not as the underlying o...
VB has a function InputBox() that will prompt the user to enter a single value, then click OK.
Is there a parallel functionality in ASP.NET, that will get the browser to pop up some kind of input box to return a single value?
If not, how do you recommend I achieve this effect?
...
I've been given the thrilling task of re-writing our exception handling system. Whilst I will state that handling exceptions from an application-wide point of view isn't something we want, typically it's unavoidable when our team are understaffed for the sheer amount of work we need to push out the door, so please, no flaming the global...
I saw code like this:
if (this.Request["__EVENTARGUMENT"] == "Flag")
//DoSomthing...
Whats __EVENTARGUMENT means and is there some parameters like it to access?
...
I have a usercontrol I created. I added a panel and a vertical scrollbar to the right of it. I'd like to be able to scroll it with the mousewheel. The problem is there doesn't seem to be any events that fire on mousewheel. If I take the panel off then the usercontrol has focus and it will fire on mousewheel in the form. But with the...
The question header is clear, i want to know why its different and why, when to select it for my project?
...
I would like to be able to programmatically create DataGridTemplateColumns based on my data source. For example, if my source has a date in a particular column I would like to be able to utilize a Datepicker control. I know this is easily accomplished with xaml and a DataGridTemplateColumn at design-time, however, how would I accomplis...
Guys, here's what I'm trying to do:
I have a Storyboard animation for an object done in Expression Blend. What I need is to be able to trigger that animation from the VB.net code. Any ideas?
Thanks,
...
I have some storyboards in XAML (WPF Project) and I´m calling them from the VB code with this:
Dim ServiceOff As Storyboard = DirectCast(FindResource("ServiceStopped"), Storyboard)
ServiceOff.Begin()
I´m getting the following error when trying to build:
Overload resolution failed because no accessible 'Begin' accepts this number o...
IDE : VS 2008,
Platform : .NET 3.5,
Hi,
Here is my DataTable columns :
ID Note Detail
I want to write sth like this :
//below code block is not the right syntax
For each q in dtDataTable.Column("Detail)
strDetail = Row of Column Detail
Next
Can anyone give me a suggestion and show me a code sample please ? Thanks.
...
I have the following code:
Dim i As Integer = dtResult.Rows.Count
For i = 0 To dtResult.Rows.Count Step 1
strVerse = blHelper.Highlight(dtResult.Rows(i).ToString, s)
' syntax error here
dtResult.Rows(i) = strVerse
Next
I want to add a strVerse to the current row.
What am I doing wrong?
...
Hi,
I've been trying to highlight a search result in DataTable. First, I loop through rows of DataTable and call a function to look for a matched keyword to highlight those words, then update DataTable row with a new string with highlighted keywords.
I bind the DataTable dtResult to the DataList. It worked fine until I added this code ...