I've added the following Extensions to my Project in order to create a thread safe list:
Extensions
If I want to conduct a simple operation on my list
<Extension()> _
Public Sub Action(Of T)(ByVal list As List(Of T), ByVal action As Action(Of List(Of T)))
SyncLock (list)
action(list)
End SyncLock
...
I find that I write a lot of code within my classes to keep properties in sync with each other. I've read about Events in Classes, but have not been able to wrap my head around how to make them work for what I'm looking for. I could use some advice here.
For example, in this one I always want to keep myColor up to date with any change w...
When using the visual studio 2008 debugger with c# i can right-click on a variable and choose "Make Object ID" which allows me to watch that object (via it's ID) regardless of whether it is in the current stack frame or not.
When the debugger is in VB code, (doesnt matter if it's run from a c# unit test or a vb unit test) That option is...
Hey,
I have two textbox called BIRTH & EMAIL, and I must test in button click if the user has typed a date & email format in those two TextBox.
How can do that ?
...
Hi there,
I have a form with 3 textboxes and 1 button.
textbox1 has tab index 0, and it's text = 1
textbox2 has tab index 1, and it's text = 2
textbox3 has tab index 2, and it's text = 3
I want to iterate thru the textboxes and place their values into cells so that...
range("A1").value = txtbox1.text (ie: A1 = "1")
range("A2").valu...
Hello,
I am trying to display the progress bar(marque) in a separate form (progressForm) while i do some calculation in background.
I know the typical way of doing it is to include the calculation in background worker and show progressForm in main thread. This approach how ever will lead to lot of synch issues in my application hence ...
i have my first aspx page that has data thatthe user fills in. it is in format of textbox's and at the end of it all the user clicks submit and all data goes in the database. In the database each record gets an ID field. Now when the users clicks submit and goes to the next page, i want the ID's (they could be 1 to 1000+) from the DB tha...
Hi all,
In VS2010 I have VB.NET codebehind aspx pages and I'm using Ajax multihandleslider extensions to filter search results on numerical values.
Fistly, the multihandle sliders don't display in the designer... I have to remove the slider targets tag:
In order to make it display in the designer... this isn't so much a big is...
I'm trying to create a LINQ query (or queries) that count the total number of occurences of a combinations of items in one list that exist in a different list. For example, take the following lists:
CartItems DiscountItems
========= =============
AAA AAA
AAA ...
Hi,
I have developed a windows form application using VB.Net with data access layer using LINQ-SQL. I want to allow the database to be configured from the application. I have created a form for input and save the input details in an XML file.
I need to know how to configure the LINQ to start using the new configured database on startu...
I am using the NPV() function in VB.NET to get NPV for a set of cash flows.
However, the result of NPV() is not consistent with my results performing the calculation manually (nor the Investopedia NPV calc... which matches my manual results)
My correct manual results and the NPV() results are close, within 5%.. but not the same...
Man...
Hey,
After connecting to a database using DataReader, how can I count the number of rows ?
Thanks.
...
Hey,
How can I go back to the previous row using OleDbDataReader.
I know that DataReader just advance to the next row using DataReader.Read(), but how can I go back to the previous row. ???!!
...
Hello,
I have a TextBlock on my main window.
I would like to bind it's text to the window's title .. eg: myWindow.Title.
This has been bugging me all night, and I have Googled to death, any help is appreciated.
Thanks.
...
Hi,
I've built a newsletter system which tracks:
Openings
Link clicks
Unsubscriptions
However, I need to find a way of tracking which newsletter emails 'bounced back'.
Has anyone done this before and whats the best way of doing it?
Thanks,
Curt
...
how to find cursors current position in any textbox ....
...
I used to be visual basic 6 programmer, i was pleased with visual basic : it is high level language that do stuff fast,easy to learn, easy to do stuff in,you can drag and drop stuff to the form and write your code,it is simply amazing.however microsoft buried VB6 and pointed us to VB.NET which is so different that it is not the old VB an...
I need bydefault format like "dd-MMM-yyyy" in ultradatetimeeditor
...
Just moved from VB.NET to C#.
In VB to connect and Event Handler to a Sub we use the Handles clause.
From what it seems, this do not exist in C#.
After creating a simple application with a button I realize that Window Forms Designer automatically created an EventHandler to my button1_Click function (after I double clicked it), in For...
I have a gridview and when a user selects a row I want to change the view in my multiview and display several new gridviews. A user would be clicking on a computer, and then it will display the computer stats/atached devices/etc. The new gridviews are going to need a column from the row that was selected, how do I get that? Thanks.
...