I'm creating a basic text editing program that will be used for UCAS Personal Statements (probably not a unique idea but hey). It will be a basic text editor with no special text formatting to sit in line with the guidelines of UCAS (there is a character limit for personal statements).
What I want to do is have a save/load option (which is easy enough), however on the "Exit" function I want the program to detect text changes and alert the user that saving is recommended (ya know like when you close word and it asks if you want to save blah blah blah)
iam using the below code to check text change in clipboard but its not supported with unicode chracters like ا ب ج is there any way to add support for unicode text or is there any other way to do same work?
#Region " Definitions " 'Constants for API Calls... Private Const WM_DRAWCLIPBOARD As Integer = &H308
I have a question about event handling. Is it possible to detect field level data change in vb.net? i don't want my codes to be dependent on the the bound control's event to detect the change on the field value. I'm thinking there must be a better way (coming from a Delphi background). For example: a change on the Qty field will automatically trigger the event to compute the invoice detail Amount - (pseudo-case sample: Amount = Qty * UnitPrice). In Delphi, every field is treated as an object with its own properties and events. So it's very easy to associate an event with it.
Example: procedure TfrmInvoice.qryInvDetQtyChange(Sender: TField); begin inherited; qryInvDetAmount.value := qryInvDetQty.AsInteger * qryInvDetUnitPrice.AsCurrency; end; How can I achieve the same using vb.net?
Going from VB6 to VB10 I find VB10 has much easier ways of doing things, like getting command line arguments, getting all subfolders, etc, the hardest part is knowing what commands to use. Is there a better way to detect if a string ends with certain text? I'm doing it like this....
So I have a RichTextBox for a Chat, And I was just wonder how I can change the color of the text in the code. I know you can change the foreground color in the application its self, but I need to change the color in the code.
I want to be able to detech when a text box changes, this is populated from another application the text box is [code]What I would like to be able to do is detect when this changes from 0-1 and 1-0 so I can log this to my text file, the code for that is below.[code]
I have a Treeview in a form. I can add a child node, delete nodes, shift a child node by creating a subfolder in the Treeview and also change text of any child node.
How can I determine programmatically, whether one of these events/changes was occur?
The Textbox_TextChanged event fires when a key is pressed or when text is pasted while cursor is in a text box.
Is there an event that fires on Textbox1.text="NewText"? How do I detect this?My reason for doing this is I would like to reformat text property automatically on assignment rather than do something like textbox.text=myreformat("Newtext").I can put code in validating or validated event but then I'd have to force focus/lostfocus to trigger one of those events.
Working with detailed forms that is displaying a row form a table adapter, is it possible to detect that a change has been made to a database field when the form is closed?
I.e. if a change has been made I need to ensure that an update is performed before the form actually closes.
I need to be able to detect when the background changes, for example user right clicks and selects next background, My first thought was using a FileSystemWatcher on the folder where the images are kept to detect when windows reads a image but that didn't work with the filter to last access but it doesn't seem to be working even when i run as administrator
How to create a program that detects the screen resolution and change it to 1280x800 or 1024x768? What are the computer requirements to support each of these resolutions. (I don't want for the program to request the user as programs do this especially in Windows Vista, because my program will be created for Windows Vista).
I'm trying to figure out some simple code to detect when a single pixel changes color at a location I choose -anywhere- on the screen (ex. 100,100). Maybe with just a msgbox popup when it changes.
The visual basic program will just be hidden and running in the background.
I should be able program the rest of the program around it, I just need the detection part. That is where I am stumped.
Is there an event generated when you plug in or remove screens/monitors. I know you can keep checking but wondered whether there was an event generated.?
im searching on how to change labels text color inside the code depending on my needs , for example my label's text is set to = "hello world" , can i change hello's world color to x and world's color to y?
Im Using a datagridview to display items in an invoice. when the user enters the data in, they use a DGVcombobox to select which particular item they want. what i want to know is. can i change the text of the combobox programatically after the items have been filled
Edit The DGV in question has 2 predefined columns one is a comboboxcell and the other is a text box cell im trying to fill it using
Is there a event detect change of Listview item count? Like it will be trigger whenever i add an item or delete an item form listview. I search on MSDN Listview Event member, but cant c any usefull.
The purpose of the code below is to scan a program of mine to detect a pixel color change. It loops through until a change is detected. It works fine for about 10-15 seconds and then I get an ArgumentException was unhandled error. So far this has happened on two different lines at separate times... Image = New Bitmap(Rec.Right - Rec.Left, Rec.Bottom - Rec.Top)
I came to a company that already has a fully grown project... but coders that worked here before me didn't follow conventions and didn't use parametrized SQL queries... as a result there is over 1000 places in a very huge project that can possibly be vulnerable to SQL injection...
I need to find a solution that will automatically detect if there is an SQL injection in the code. So, for example there is a form which allows user to enter comments regarding a product, which will be sent to database on submit... how can we make sure that a user didn't enter a harmfull query instead of a normal text?
Is there any advanced code/regular expression/magic that can detect if this text contains a piece of SQL query instead of normal harmless text? I will accept any links, pieces of code in any language or even commercial software that will do that for me.
In VB10/win forms project, when I change the forms font size the form and all the controls on the form get larger or smaller, OK great! The problem is the combo boxes then appear with their text highlighted. Is this a bug or am I doing something wrong, simple example..
I've got a couple of instances of a user control on a flowlayoutpanel. The user control has got a couple of controls on it, and very little / almost none of the control's original space is visible. I need to know when the mouse is inside the usercontrol. What then happens is that the border color changes (of a control in the user control), and when it leaves the control, it changes back to original state.
I tried the following: Private Sub ctrDashboardWidgetFrame_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseEnter Try ShowControls() Catch ex As Exception [Code] .....
And it works, but it only works when you move over the original visible space of the user control, and doesn't work when you move over the child controls inside the user control. How I'll be able to achieve this to also work while the user is inside the full user control and not just it's visible space?
I am fairly new to visual basic and have written this program to detect a change in a selected pixel on the screen. When the pixel changes, a sound plays every x seconds. It works fine but after a few hours of operation a possible memory leak causes it to either crash the program or the PC. I have watched the process and I can see 4k added to it every 4 seconds or so. Where this memory leak is coming from?
Here is the code: Public Class Main Public pointx As Long Public pointy As Long Public areaselected As Integer Public TimeToPause, SecondTimer, changefound As Integer