FInd Out If The Current OS Has UAC?
Nov 17, 2010Is there a way to programmatically find out if the OS an application is running from is one that has UAC?
View 14 RepliesIs there a way to programmatically find out if the OS an application is running from is one that has UAC?
View 14 RepliesI know that you can change the UnhandledExceptionMode by using Application.SetUnhandledExceptionMode(...). How do I find out what the current UnhandledException mode is?
View 1 Repliesi am wondering if there is a code that does this:
[Code]...
i need to find the current url of the webbrowser so i can do things if the webbrowser is a spesific website
I am trying to develop a HANGMAN game and i need to implement a button where the user can click on it to "buy" letters. So, i designated 2 text boxes (one visible containing stars and another one not visible containing the word that should be guessed), and i wrote the following piece of code so that once the user presses the button any of the stars will turn to the correct letter. My question is, i found the index of "*" and removed it, and now i want to insert the corresponding char with this index (WordInLetters). How can i find what char is at index "index" in vb.net?
Private Sub picBuyLetters_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBuyLetters.Click
Dim index As Integer = txtWordinStars.Text.IndexOf("*")
[Code].....
i want to get path of current directory .
View 2 RepliesI have a 500K+ lines vb.net app, written by 10+ different devs over the past 5 years. Many times it gets the system time and/or date and relies on it.Now I have to re-run real cases thru the program for regression testing purposes, and it screws up cases where the date/time matter. My fix is easy, just replace all the areas in the program that get current date/time with a sub that gets the current date/time, UNLESS I'm testing, in which case it will return the date/time of the original run. I have tried searching the sourcecode for the obvious 'current date/time' functions:
Now
DateAndTime.TimeOfDay
Date.ToDay
However, if I miss one, I LOSE.list more ways to get the current time, that might be hidden in the source code, that I can search for? Note: It's pretty clear none of the 3rd party libs in this system are returning date, well, one is, but I've caught it.
I have a rich text box where you can edit java code with a listbox on the side of it that has the line numbers. I want the listbox to scroll with the rich text box so that they line up. How would you get them to scroll as one?
View 1 RepliesHow to find current positions of cursors in any textbox or listbox?
View 1 RepliesI am trying to find the current level of zoom in a webbrowser control. I know how to zoom but the same doesn't work for retrieving the current level of zoom. I am trying the following: VB.NET Syntax (Toggle Plain Text )
View 1 Repliesi need a way to find the current SSID of the connected network as there are different settings for the two networks.
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]...
How do I force users to save the current record (if current record has changed) and not let user go to the next record unless the save button is pressed?
View 5 RepliesI am currently using the code below within a VB.Net application to find specific text in a Word document. The text is surrounded by symbols represented by the character codes in the .Text statement. The code below is working fine. The issue now is that sometimes the desired text within a document has been marked for deletion and appears as tracked change within the document. I would like to find only the desired text that has NOT been marked for deletion. Does anyone know of a way to determine if the found text is a deletion?
[Code]...
I have been trying to find the last filled column row in a sheet using this.
clast = xlapp.ActiveSheet.Cells.Find("*", SearchOrder:=XlSearchOrder.xlByColumns, SearchDirection:=XlSearchDirection.xlPrevious).Column
rlast = xlapp.ActiveSheet.Cells.Find("*", SearchOrder:=XlSearchOrder.xlByColumns, SearchDirection:=XlSearchDirection.xlPrevious).Row
I've got a form - CMCConsole It pops up a dialog form for adding a new case.If the matter number in a textbox on that dialog form matches an existing cases matter number I would like to find it in the binding source of the CMCConsole form
Private Function CheckMatter(ByVal MtrNum As String) As Boolean
Dim cfIndex As Integer = CMCConsole.caseBS.Find("MatterNumber", MtrNum)
Dim cfIndex2 As Integer = CMCConsole.casefileBS.Find("MatterNumber", MtrNum)
[code]....
But it appear the filter for the CASE we were just on that is set on the binding source is keeping the FIND from seeing other cases.
caseBS.Filter = "CaseId=" & e.Node.Tag.ToString
Do I have to clear the filter in order to find a matter number in some other case??
how to search xml file and display the result in list box.then export a xml file to excel in the search result
View 4 Replieshow can you create find & find next (using tooltip menu) create in vb.net for datagridview value.
View 1 RepliesI have a TypedDataTable called CamerasDT which has a composite Primary Key of GroupId and CameraId. I want to use TypedDataTable.Rows.Find(key as object) to return a specific row by GroupId and CameraId. I don't seem to be able to find a way to send primary key to the find function.
View 1 RepliesI have a rich text box with the following text in it:
word word
I am finding the endings of the word, that is, the string "rd". The following code finds the first occurance, but then fails to find the last occurance, and the variable "indexToText " changes to -1.After the first search, the debugger shows the startLocation at character position 4, so it is not past the second occurance but still will not find it.
indexToText = FrmMain.RichTextBoxPrintCtrl1.Find(searchValue, _
startLocation, eof, RichTextBoxFinds.None)
If I change the text to:
word word word
It then finds the first two occurrences and fails to find the last occurrence.No matter how many words I add, it always fails to find the last occurrence.
I am suppose to only Find the total of each column in the last row. Find the grand total in the last cell (the bottom right corner)Ok i have tried to do the grandtotal but i am not getting what she wants done I have also tried to reverse the arrays but that was wrong to. I am only suppose to add two line one line is find the total of each colums in the last row and to find the grandtotal.
Module Module1
Sub Main()
Dim sum(5, 4) As Integer
Dim row, col As Integer
[code]....
How can I get the current row value?
Private Sub PatientUpdate()
Dim dr As DataRow
dr = pa.Tables(0).Rows(intcurrentindex)
[Code]....
I would like intcurrentindex to be the value of the selected row of the datagridview. I have tried this in place of intcurrentindex however this fails to work:
DataGridView1.SelectedRows(0).Selected
I'm developing new cafe software in VB.Net and I need to get the url from the web browser.How can I get the current url from any web browser using VB.Net only? (Not ASP.NET)
View 3 RepliesThis is kind of a silly question, but is it possible to get the name of the method that is currently being executed from within that method?
Public Sub SomeMethod()
Dim methodName as String = System.Reflection.[function to get the current method name here?]
End Sub
My program runs and after running creates some data in datagridview. I export the data to an excel file. Till now all things are okay, but I want to have the excel file open and export the second iterations data to the same file but different sheet. I have done everything but it gave me an error. Here is the pieces of code related to exporting. [code]...
View 1 RepliesI have an ACCESS database containing VBA code residing on a USB drive in a directory called 'collect'. When the application runs the code uses a DLL that is in the same directory as the application. The code in the DLL is VB.NET.
The DLL is declared :
Private Declare Function Collect Lib "x:collectwcolv332.dll" (ByRef Str As Any)
This works fine but it only works when the USB drive is mapped to x:
The follwoing which I expected to work does not
Private Declare Function Collect Lib "wcolv332.dll" (ByRef Str As Any)
and neither does
Private Declare Function Collect Lib "collectwcolv332.dll" (ByRef Str As Any)
Using For Each, can I get the current position (without an incrementing int)?[code]....
View 6 RepliesI am trying to get the current GMT time in vb.net and can't seem to figure it out. A lot of google threads pointed to using DateTime.UtcNow but that gives an incorrect GMT time.
MsgBox(DateTime.UtcNow) 'outputs 11/21/2010 14:46:41
[URL]
i am building an application which sum column of datagridview based on the row you are in .
when i try to get the current row using RowEnter event ... i found out that this event occurs when a row receives input focus but before it becomes the current row....
when i try to get the current row using SelectionChanged event it returns current row but it also slows down my app because this event activates when you move from one cell to another ...
so what i need is an event or some code that gets me the current row after the selection has changed but to work only when user changes a row