I have a BackgroundWorker object that I instantiated to perform a DB process on a background thread ansynchronously. I have event handlers for DoWork and RunWorkerCompleted.
I can tell that the BackgroundWorker is disposing of itself because I added a message box into the Disposed event handler.
My question is this:
Is it necessary t...
I have 14 command buttons on my form. what i want to do is change the text of the form based on the current date.
button1 should have todays date.
button2 should have tommorows date.
button3 should have day after tomorrows date and so on. I want this for fourteen buttons.
I can do it manually by assigning each button.text to each date....
Are there any templates out there for formatting strings for printing like as in the following:
Private Sub PrintDoc_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDoc.PrintPage
e.Graphics.DrawString("String to be printed", New Font("arial", 10), Brushes.Black, 1, 200) ...
In C# I would simply do this:
myIEnumerable.Where(i=>i.ReturnsABool()).any();
How would I do that in VB.net?
I'm stuck on how to formulate the lambda..
...
Taking into account the execute disable bit what is the recommended way of executing instructions against a native processor from a high level managed environment such as VB.NET 2008 or C#. In addition has anyone achieved similar in executing GPU instructions against a graphics processor?
...
I am trying to select a cell (not the entire row) and drag that cell to a different column and row in the same datagridview, i am programming in vb.net 2005 express.
i have never used datagridview and dont know where to start, all the examples i have found online seem to cover everything except this behaviour. Does anyone have any ideas...
We have a coding standard that says all shared (static) fields and methods must be called with the class name. E.g.
NameOfClass.whatever
Rather then
whatever
Is there a tool that we can use to check this is in fact the case?
(Likewise for modules)
Sorry I should have make it clearer we are using VB.NET.
This is a bigger exam...
I'm disabling a button in vb.net and when I do, I cannot control the BackColor or ForeColor properties to change the appearance. I set new values for them but they don't get picked up. The disabled button looks almost exactly like my enabled buttons so you can't tell the difference. I'm using Flat Style buttons, but have tried changin...
I am creating a very simple state machine class library project in vb.net.
This has only 3 states - CreateApplication, ProcessApplication and CompleteApplication.
I have an interface created in the same project.I am invoking it from a web application by calling ApplicationService.CreateApplication(obj of ApplicationDetail)
<ExternalDat...
It's not quite as simple as the title says but I hope you understand.
Consider this scenario:
Class MyClass
Property SubProp1
End Property
-TypeEditor(whatever)-
Property SubProp2
End Property
End Class
Class MyButton
Inherits Button
-MyCustomAttribute-
Property MC as MyClass
End Property
End ...
I made a splash screen and want to have some text change on it as different parts of the program are loaded but the screen isnt updating when i use refresh or update.
Dim splash As New BMSSplash
splash.Show()
splash.lblStatus.Text = "Retrieving active users..."
splash.Refresh()
buddyList.setuserList()
System.Th...
bascially, how should i do it now that using the asp:listview control is out of the question?
i am migrating from webforms to mvc and former implementation was in <asp:ListView...> so how should i do it now in terms of best user experience for the user? ie: i will need to ajax everything.
thanks
...
I have an excel sheet being used in my vb project. when i publish the project, the excel path specified remains same ... i need to publish the vb project along with the excel sheet, so that when i install the project in another computer the project refers the same excel sheet ....
...
I'm trying to replace all the carriage return characters in a string obtained from a multi line text box in a Windows Form with the string ", <BR>" so that when I use the string in some HTML it displays correctly.
Function Blah(ByVal strInput As String) As String
Dim rexCR As Object
rexCR = CreateObject("VBScript.RegExp")
rexCR.Pa...
which algorithm used for voice compression mailing and decompression
...
Is there a ?: operator equivalent in .net?
eg in java I can do:
retParts[0] = (emailParts.length > 0) ? emailParts[0] : "";
rather than
if (emailParts.length > 0) {
retParts[0] = emailParts[0];
} else {
retParts[0] = "";
}
I'd like to be able to do similar in VB.NET.
...
I have a troubling task. I have a page contained within an outer frame, on the outer frame is a user control which i need to populate with some data from within the containing page. The problem is the outer frame is rendered before i can get hold of the required data. How can i accomplish this?
...
I have a ComboBox bound to a table field and I want to validate the selection, since only certain selections are valid depending on context. When in the On Validating Event how can I get the Value before or what it is in the table.field before selection changed?
...
I tried to find this on the web, but my GoogleFu has failed me...
While DataReader.Read
Dim Foo as New FooBar
Foo.Property = "Test"
Loop
In VB.net, does this create a new Foo instance every for every loop? Or just one Foo instance with block level scope? Do all blocks (If..EndIf, For..Next) work the same in this regard? I k...
How I can I display it always in mm/dd/yyyy in vb.net
...