I have a datagrid and I want to delete selected row from that grid. It is working fine upto this. but I want to add some advance functioning with msgbox YES-No buttons. If user select some row and click on delete button, A msgbox with YES/No options appears. If user clicks YES, row should be deleted but if No is clicked then that row should not be deleted.I have tried it many ways,
Below is the code:
Private Sub btnDeleteSitting_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteSitting.Click
I have a .NET class, InstrumentConnector, that has an event, StatusChanged. I want to create several instances of this class (each class handles a separate file) and respond when the StatusChanged event is raised any instance. How would I do this in .NET? Do I want to create a List(Of InstrumentConnector) or a similar IEnumerable? How do I write the event handler to respond to a particular instance's StatusChanged event?
Here is the InstrumentConnector class and the module with the StatusChanged handler:
Public Class InstrumentConnector Private _inProcessDir As String Private _doneDir As String
I have some code in a label's mousemove event that allows it to be dragged around my form while the left button is held down. While this is happening none of the other controls on the form respond to their own mousemove events as the mouse pointer passes over them. Is it possible to make more than one control respond to mousemove events at the same time?
I created a control that has picture box control docked within it. This control allows me to "animate" the image by swapping them out by setting the interval to swap them at. I want to use this control kind of like an animated icon within a application, but because the picture box is docked, the control I created won't respond to the events, MouseHover specifically. [Code]
I'm using a Messagebox, which shows the Yes-button using my local language. However the use of MsgBoxResult.Yes.ToString returns "Yes", which is not what I was expecting.
For those who know by now the project I am bussy with is done in Afrikaans. Thus my qwestion, how can I change the text of MsgBoxResult (Yes, No) to (Ja, Nee)? Is it even poseble? Hendri Bissolati noviceprogrammer@vodamail.co.za
When I start my application I get the following error:
method not found microsoft.visualbasic.msgboxresult
I have tried repairing my .NET installation.
Note: This error only occurs on one machine. On every other machine it works fine which makes me think something with the .NET assemblies was corrupted. It was working fine on the broken machine a few days ago.
What is the proper way to use the Enter Key? I've triyed difrent things, now I can't get the Enter Key to respond at all, only a beep is what I get.[url]...
Objects whose Properties are observed for changes must implement the System.ComponentModel.INotifyPropertyChanged event to alert their WPF-element observers that a change has occurred.
If I have a Visual Basic Module whose Properties I wish to have observed by a WPF element, how should I go about routing the Properties of that Module through to the WPF, considering that Modules cannot, themselves, implement Interfaces?
EDIT: Modules are Static classes, for you C# readers, IIRC.
I have a datagrid and I want to delete selected row from that grid. It is working fine upto this. but I want to add some advance functioning with msgbox YES-No buttons. If user select some row and click on delete button, A msgbox with YES/No options appears. If user clicks YES, row should be deleted but if No is clicked then that row should not be deleted.
Below is the code:
view source print? Private Sub btnDeleteSitting_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteSitting.Click MsgBox("Are you sure to DELETE?", MsgBoxStyle.Critical + MsgBoxStyle.YesNo, "WARNING")
The idea with System.IntPtr is to represent an integer whose width in bits correspond to the size of a pointer in the hardware and operating system that the CLR is running in, it's platform specific in other words. It supports 32-bit and 64-bit architectures only.This is a legacy from old-style C API's where pointers and ints were frequently treated as interchangeable. The Win32 API has many such parameters, where the width varies with the underlying architecture thus the mess with porting of code from 32-bit to 64-bit (we already did this once when going from 16-bit to 32-bit, funny how we never learn...).In practice, as is mentioned in other responses, it can be used to hold unmanaged resource handles and pointers etc that stem from the underlying Win32 functions. It can also be used to hold integers of the natural size for current platform. You can also use IntPtr.Size to dtermine the size of a pointer on the current platform.SO when you explain this to a child ;) this would be used to let program's flow at the same speed at diffrent kinds of operating systems?
I'm using VB.net to have a GUI on top of a commandline program.
[code]...
Which works and prints out all output from the commandline program. However at some point the commandline program ask for user interaction, eg: Type a number (1/2/3/4):But the commandline program stops after this. I suspect this is because it doesn't receive a valid option.Is there a way to capture when the commandline program wants user interaction and hold the reading of the stream to be able to enable the user to input something?
I have a server making a head request to a database dump I've created. The remote server does this to make sure that it's not using excessive bandwidth when not necessary.However, due to some other circumstances outside my control this causes the script to be hit twice: once for the head request, and then another time to download the data.
What I'd like is to have the script I've written detect the head request, send back a couple of headers (e.g. last modified is right now, filesize different than before), and exit. Is there a way to do this?
I have a server making a head request to a database dump I've created. The remote server does this to make sure that it's not using excessive bandwidth when not necessary.However, due to some other circumstances outside my control this causes the script to be hit twice: once for the head request, and then another time to download the data.
I'm trying to making an auto-responding program for different Instant Messaging chat programs, like MSN or XFire.I don't know if it's possible to do this in Visual Basic. If not, feel free to post a solution in C# or C++ too.
These classes are entities in a LINQ to SQL file. In the Measurement class, I raise the PropertyChanged event when the CrucibleOxidizedMass property changes:
Private Sub OnCrucibleOxidizedMassChanged() RaiseEvent PropertyChanged(Me, New ComponentModel.PropertyChangedEventArgs("CrucibleOxidizedMass")) End Sub
In the BaseSample class, I want to respond to the CrucibleOxidizedMass PropertyChanged event in any of the descendent Measurment instances. How would I do this?
im a student Computer sciences and in my spare time i like to program using .NET no im stuck on a part with voice recognition i want to change the colour of my form using voice recognition my program does detect speech but doenst respond to the commands (i think the problem is with the grammar) i use Visual Studio 2010
I have a very simple application where I have 16 pictureboxes which are created at run time. I would like the user to click one and for me to know which one is clicked.
Unfortunately, I have no idea how to go about doing this in VB.NET. I am only just getting into the whole object orientated thing and this is something which is causing me to get stuck.
The code I am using in my picturebox array class is below as I thought it would be easier than me trying to explain what I am trying to do with it.
Public Class PictureArray Inherits System.Collections.CollectionBase Private ReadOnly HostForm As System.Windows.Forms.Form
Whenever I run my service it never responds, I know it isn't the service as I have one similar running in a different aspx file running. I've looked into it and it's something to do with the web.config file but I don't know where. I was given a small web config file however when you put it in the place it says it doesn't like one specific line of coding in it. This is the error I am getting:
I have a datagridview which is populated from a database. I have added buttons to this to edit, view, delete. For some reason using the edit button and updating the database my grid fails to respond. I have it set up to display an image based on the row I click on. Before the update this works, after is does not. After the update I run a reload() where I clear out the dataset and repopulate the datagridview. Here is the code I am using for the reload and the update.
Public Sub reloadDG() 'reloadDG is used to clean out the information currently in the datagridview and is replaced with 'current data 'calls refreshForm()
I have been making a downloader in vb.net everything is working fine Appart from the downloading, it takes around 10 seconds for the download to start Is this normal or am I doing something wrong?The download is being done in a thread and before when I have tried to download outside of a thread the program dosnt respond for those 10 seconds
I have a VB2005 application that sends and recieves data with another application (3rd party, not vb 2005) via COM port. When I run the apps on different computers they work great, they send all data to eachother and everything is fine. When I run them both on the same computer with either virtual null modem ports or with 2 hardware ports connected together via null modem cable they stop communicating.
I'm working on a winform which contains several controls like textboxes, radio buttons, datagridviews... All of these controls have been added to a main group box called gbDataEntry. My problem is when the user is seeing the form, I set gbDataEntry.Enabled = False but I want to enable some controls like DataGridviews so the user can scroll them. After disabling gbDataGridview I set DataGridView1.Enabled = True but it seems that the datagridview does not respond to this line. Why?
How do we make a visual basic listbox to respond directly when the user clicks on the items in the textbox? (such as making a menu appear or displaying info in a label when the items are clicked)
I have used the SelectedIndexChange event but nothing happens when the listbox items are clicked. The SelectedIndexChange event only seems to work when a button is added. It seems that the button's click event gets the listbox's selectedindex change event to start working. The listbox's textchanged event doesnt seem to work also.
Is there any way to make the listbox respond directly to the user's clicks without the use of button controls?
I have been trying to implement the jQuery weekcalendar using .net. What I can't seem to figure out is why weekcalendar states events.events is undefined after I make an ajax call to a webmethod I created which returns JSON. Below is the relevant code: