VS 2008 Get Current App Name?
Oct 30, 2009How would I get the app's name? So if I named my program "Blank.exe" the app's name would be "Blank"
View 2 RepliesHow would I get the app's name? So if I named my program "Blank.exe" the app's name would be "Blank"
View 2 RepliesI have following link in a.aspx file:
<a href="a.htm" target="iframe">A</a>
I want to set link from a.aspx.vb page according to what person is viewing the page. How can i change this so that if user clicks on link it will replace current frameset contained in current window with a url provided according to user?
Or in another way:
How will i replace href code in aspx page by giving it value from aspx.vb page?
Is that possible to get current Enumerator (...or iterator? Don't know which tern is the correct one) in a LINQ query ? For example, I try to create a XML output (via LINQ to XML) of all currently loaded assemblies. [code] is it possible to somehow get current "index" (counter?) from LINQ's Selects? I would like to use it in XML. [code]
View 1 RepliesI have a datagridview having 3 columns (qty,scraft factor,actuall qty). What I want is if the user encode 50 in qty and 2 in scraf factor, actuall qty will automatically computed based on qty multiply by 2. I was using keyup event. Now I am using endedit to get the current value of the current row and column, now the problem is if the amount to be encoded is more than one digit it will not accept because of endedit. What event do I have to used? or any solution with this scenario.
[Code]...
I dont know how to get the current date in visual basic 2008. Here is a sample code
regDate = Format(Date.Now(), "ddMMMyyyy")
The output is like 7/02/1900
I want to add a ; at the end of the current line I'm typing on by using ctrl+end or other keys.. im using a richtextbox..
View 2 RepliesI have an app. that downloads a file from the web with no problems, but I was wondering if it's possible to get the current URL from Firefox and/or IE, so that the user just has to click 'ok'.
View 4 RepliesWhat I'd like to is get the name of the current Module running in a VB app. If I am in a Form, I can use "Me.Name", but in a Module that will not work. I tried: System.Reflection.Assembly.GetExecutingAssembly().GetModules()(0).Name But that gives the name of the app (like "WindowsApplication1.exe") rather than "Module1", which is what I'd be looking for.
View 2 RepliesI have a picturebox in a groupbox (which was generated by code). The click value of the picturebox has been assigned a click event. AddHandler pctIcon.Click, AddressOf FooClick Inside the groupbox there are two labels aswell. I want to get the name of the groupbox, so I can use it in a for each loop.
[Code]....
is it possible to retrieve the current song (mp3) that is being played through your computer's speakers? No matter which program is playing the song.. This has to be possible since when a program plays an mp3 some code has to be passed through Windows telling it to play the song SongABC.mp3 using the computer's default speakers...
View 9 RepliesHow would I get the current mouse position?
View 2 RepliesWanting to do something like this:
VB.NET
Private Sub MaximizeCare()
For Each p As Process In Process.GetProcessesByName("clinical_carestation")
ShowWindow(p.MainWindowHandle, SHOW_WINDOW.SW_MAXIMIZE)
[code]....
But the trouble is that if multiple users are using the same terminal I cannot narrow down the process list to just the current user. So if two users run the same application simultaniously only the first user can open the application on the same terminal.
i have a datagridview and i search in it with textbox but i want to select the cell that contain the word i'm searching for
View 18 RepliesAssign the current Date to a label.
Example, if the current date was 25th December. Then the lblDate.Text property will be set to 25.
Also, how would you do this to get the month, but only the first three letters of the month?
Using the example above, the lblDate.Text property will be set to Dec.
How would I get the current user's folder?Example:"C:Documents and SettingsOwner"
View 1 RepliesI want to capture the original value and the new value from a cell in the DataGridView control. When leaving the row, I tried:
dgDataEntry.EndEdit()
Dim row As DataRow
row = tbl2.Rows(e.RowIndex)
Dim m_orig, m_curr As Decimal
m_orig = row.Item("amount", DataRowVersion.Original)
m_curr = row.Item("amount", DataRowVersion.Current)
And the values were the same. How can I capture the different values?
How to get the current windows explorer path in vb.net windows application?
View 1 Repliesi need to convert the current line that is selected/displayed in listbox into a string
View 1 Repliesadding basically just the current date and time to a textbox/label or something like that? I have looked at coding but everyone seems to do it in such a complex way. Is there not a simple way of doing this? I don't want to use the date time picker as I don't want a user to be able to select the date or time.
View 4 RepliesIf you open up registry editor and go to: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetEnumIDE you will see subkeys of drives that are currently mounted. [code] This code is getting a list of my hard drives. Now I would like to display that key value in the registry for the current drive. How could I go about this?
View 4 RepliesI would download sourcecode like "WebClient.DownloadString("SITE")"But without Webclient is that possible?
View 2 RepliesI need to get the url of the web browser (check what website it is on) and then convert it to string so it can go in a textbox or wherever.
View 11 RepliesI have a menustrip, in which i have put a BACK option so that the user can go back directly from where he came to the current Form ,as there are many form which leads to that particular form.
View 3 RepliesI load up a datatable - bind it to a binding source and a binding navigator - and lots of textboxes on the screen bound to that as well.When I get a concurrency violation - another user has already changed my vendor, let's say - what is the best method to go about refreshing the datatable with current data from the DB?
View 10 RepliesI have multiple forms, I need to close the current form -without clicking any button- and directly open another form in this project.. i am using show and close methods but either the 2 forms are appearing together or the current form is not appearing at all.
View 1 RepliesBefore, my codes are working properly.. But not..I am getting this run time error. What the error means?
Operation is not valid due to the current state of the object.
I have a web browser control in a form and id like to take the current web page address and place it in a text box is that possible ? Also it it possible to somehow bookmark web sites, sounds a bit vague i know. Am very new to VB and teaching
View 3 RepliesI would like to get the color of a pixel at my current mouse location, when the mouse is clicked. The location is anything on the screen, not just a jpg, gif, png, etc..
View 1 RepliesI've been looking around for a way to check if the current user has Administrator rights but the information seems to be quite disperse and not exactly
View 3 RepliesIf DateTimePicker1.Value.Year <= DateTimePicker2.Value.Year Then 'dtp2 = expiry date
If DateTimePicker1.Value.Month <= DateTimePicker2.Value.Month Then
MsgBox("Expiry Date Correct!")
Else
MsgBox("Expiry Date incorrect!")
End If
End If
How would I get it to check the date? Datetimepicker1 is the current date, while Datetimepicker2 is the expiry date.