I am looking to go from the process name to the windows title.
e.g
'winamp.exe' -> '1. Britney Spears - Hit me baby one more time'
Thanks
Solution:
Dim p As Process
For Each p In Process.GetProcessesByName("winamp")
MsgBox(p.MainWindowTitle.ToString)
Next
...
After spending a good few days breaking my head open against my desk, I figured I'd throw this up here on StackOverflow since I've yet to see the question properly answered.
This is a multi-part question. Once I know the concepts behind it, I should have no problem throwing it together.
1A) How do you get the InstanceNames associated w...
Public Function Cricket() As List(Of String)
Dim list2 As New List(Of String)() With { _
"Bat", _
"ball", _
"Cricket", _
"baseball", _
"MLB", _
"Derbyshire", _
"Durham", _
"Essex", _
"Glamorgan", _
"Gloucestershire", _
"Hampshire", _
}...
Hi, I'm learning TDD with VB.NET and NUnit. I want to know what's the best thing to do: Use a lot of Assert methods inside of a test method or use a assert per method?
This is my code. Thank you.
Imports NUnit.Framework
<TestFixture()> _
Public Class CalculatorTest
<Test()> _
Public Sub TestAdd()
Dim calculator As Calculator = New...
I'm developing a college project in which I'm providing user with a facility to send an SMS and email to its client.
How can I do this in VB or VB.NET ????
...
Over the past several years I have been using the naming convention of FirstNameTxt when I'm referring to a TextBox Control for a 'First Name' field. However, I've noticed the majority of other developers tend to use the naming convention txtFirstName
Which is the best convention to use?
...
Hi,
I've got an asp:TextArea that I would like to do some processing (filtering a list) as the user types. I'm sure I could do the filtering within a javascript function called via the onkeyup event, but I'd prefer to do it in my VB.NET code.
Is it possible to do such a thing, or should I just stick with the Javascript? If the latter, ...
Can you use Inherits on an aspx page to grab a vb class from the App_Code folder without a web.config file?
...
Question: I want to define a global exception handler for unhandled exceptions in my console application. In asp.net, one can define one in global.asax, and in windows applications /services, on can define as below
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new UnhandledExceptionEventHandler(M...
I have a problem with my code. My code is using the fileupload control to browse for a filename when you add a filename it processes it and the code runs fine on when it lives on local host, but when I put the code on our prodution server it cannot find the filenames listed by user.
For example if I use the upload control to browse to ...
I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones.
How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build?
...
I have many tcp ports are established on my system and I am not sure what is doing what. I have seen it using:
netstat -an | find /i "established"
but how can i found what data is getting transferred on these ports. I am fairly experienced in vb.net and can use tcplistener etc. I just need a right direction and first of all need to kn...
This will work in US regional settings
table.Select("[Date] = "#04/16/1984#"
This should work in german regional settgins but it thorws dateformat excpetion
table.Select("[Date] = "#16.04.1984#"
To me it seems that datatable does not understand current regional settings. Is there a way to pass date in a certian format, so it will w...
Hello,
where I work, since the day i got here all programming has used a odbc connector from mysql.com to connect to a mysql database on the local network..
i'm wondering if this is a waisted effort, and just introduces more steps and if it would be wiser to just use a direct connection in .net instead of using the odbc layer..
thanks...
Hello,
I am looking for a good DNP3 library for .NET/VB applications.
Any recommendations?
Thanks,
...
This is my code.. for some reason it is not working
Public Class Form1
Private Declare Auto Function SendMessage Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32 _
) As Int32
Private Const WM_KEYDOWN = &H100
Private Const WM_KEYUP = &H101
Private Const ...
This question is very similar to a previous question of mine, Use LINQ to count the number of combinations existing in two lists, except with some further twists.
I have a list of CartItems that can receive a discount based on the items specified in the list of DiscountItems. I need to be able to pull out the items in the Cart that c...
How to extend the session time. There are many form in my application like parent and child forms. So how can I make pop up to appear when session times out and the pop up should appear on the form where the user is currently in, when popup comes I have to disable all forms like(they should be transparent (i.e) user should NOT be able t...
I am in the process of revising code to use TVP to send data from our VB.NET app to the SQL 2008 DB and try to keep all the writes atomic.
Using this page as a general guide:
http://www.sqlteam.com/article/sql-server-2008-table-valued-parameters
I am in the process of creating all the in-code datatables to be sent to the SQL stored pro...
I'm looking to match this pattern:
((##.##.##))
Any series of Numbers/Decimals, surrounded by "((" and "))", and preceded by one whitespace
There can't be any characters in the middle except digits and periods.
Right now I have
"\s(\(){2}[\d\.]+(\)){2}"
but i'm not getting any matches...
...