Answer Questions
Glenn Burnside simple question - Which control is running a method
Hi all. One small question. I have 4 buttons (btn1,2,3,4). They all run the same method when beeing clicked. How can i test which button is clicked inside my method Private Void TestMethod(object sender, eventargs e) { //here i want to test....which button was clicked } Thanks. Lars Hi, one possible solution would be compare the sender with each button: Private Void TestMethod(object sender, eventargs e) { Button clickedButton = sender as Button; if(clickedButton == MyButton1) { } else if(clickedButton == MyButton2) { } // etc.. } Another possible solution would be to have a handler funct ...Show All
Pavan Contractor Deployment Help
Hi could someone please help, Ive deployed my application to my webserver using the clickonce installation within Vb. 1 .When I goto the website i can install no probs 2. My mate can go to the website and install no probs 3. But a select few when they click on the install button, it will display a xml file rather then downloading. Could someone please explain the reasons for this I believe there is a dependency on the browser version. Though I can't find this anywhere - I just looked. Possibly IE.5.5. Clearly the application manifest is opening in its raw format as XML and is therefore not being handled by the browser. This has nothing to do with the availability of the .net frame ...Show All
rsws display textbox value
hi i have a textbox in my girdview which is created using templates function provide by VS 2005. But then i could get my value from the textbox but the rest of the column valuei can get. Does anyone know why is it so string description = gvReceive.Rows[0].Cells[1].Text; string prodNo = gvReceive.Rows[0].Cells[1].Text; string suppID = gvReceive.Rows[0].Cells[1].Text; TextBox a = new TextBox (); a = ( TextBox )gvReceive.Rows[0].Cells[5].Text; Thank you! Your sincerely, Cindy hi ahmedilyas , i am sorry, i think i type wrong is i want to get the textbox value from the gridview but i could not get it. so i only left the textbox whi ...Show All
EwanK How to make Invoice Form
By using VB.net How I can design Invoice form Belongs Customers Thanks and waiting your replay Now I do it ,the problem in the datatype of parameter @valueToUpdate I configure it to "Int" not to "SmallInt" Now the updating subroutine is working well many thanks Mr/Ahmedilyas for your sharing me and I wait from you any notes from the code of the invoice form Thanks for your replay but my question about the design invoice form by using two tables orders and orders details and read Products table of course i found these tables in the Northwind database and now i could design this form by using 6 routines , 2 stored procedures and SQL Server 2005 Databse and Now I search How I can use bar c ...Show All
lbugnion In a numericUpDown, can I separate decimals with a point instead of a comma
In a numericUpDown if I write 25.6 it, automatically, transforms to this number 256 I have to use a comma to separate decimals. Can I use a point instead of a comma to separate decimals Thanks. Thanks boban.s, I will do that. public partial class numericUpD : NumericUpDown { public numericUpD() { InitializeComponent(); this .DecimalPlaces = 2; } protected override void ValidateEditText() { string numericUpDownString = (( TextBox ) this .Controls[1]).Text; (( TextBox ) this .Controls[1]).Text = numericUpDownString.Replace( ',' , '.' ); base .ValidateEditText(); } } Yeah ...Show All
Ed.Richard How to make a DataGridViewCheckBoxCell invisible in a visible column (or row)
Hi, I am trying to put a blank cell instead of a checkBoxCell in a DataGridView were all columns are CheckBoxColumns. I don't want to make the whole Row or Column invisible, just a certain cell where "i don't want a checkbox to appear". Now, I tried to make the designated cell invisible, but it seems that the visible property for Cells is ReadOnly. If you require further clarification of the situation, please don't hesitate to ask. I appreciate the help. Regards, Please refer this thread your question is same with that one. ...Show All
Roopali2 How to find start of line in richtextbox
Hi How can i find the start of line in richtextbox For example, RichTextBox1.SelStart = RichTextBox1.Find("i m finding") what is the start of line that includes "i m finding" I want to know selstart number of start of line. thanks. Ok, i have used find method, RichTextBox1.Find(Chr(10)) this code to find end of the previous line. I wonder, this code will always work for end of line thanks. i dont understand, can you explain a bit more clearer please what do you mean by "will always work for end of line" I dont know if this helps but are you aware that the TextBox control and RichTextBox control has a Lines() array, which stores ...Show All
windowsxp168 Calculating Total
hi everybody, i have a datagrid and it has many columns out of which amount is one column, and i have a textbox outside the grid, if i fill the amount column automatically textbox should be filled with the total amount, i did the coding part for calculating total, but the issue is i want the textbox to be filled after i leave the amount column in the datagrid, i have tried currentcell changed event, navigate event, tab index changed event, leave event, tab stop changed event, almost the events i tried out, but the value is not catching on the textbox, but the value catches in the textbox after i leave the whole row and then come to next row, i want the value to be catched after i leave the amount column ....... ...Show All
AlanKohl Minimize other sites
When I am on a site I like to minimize it so I can come to it later, but it does not happen. I can be on my homepage then go to a site,look up something,minimize,then click on something but my homepage comes back up. How can I keep several websites minimized on the bottom of my screen Thanks ...Show All
mmoprg Add query language to an app. Ish.
Hi everyone, looking for a bit of advice from someone who might have done something similar before. We have a large and stable application that in its broadest term is an accounting package. It has a well defined business model, business objects are set up, data is stored and it all works fine. We have generic report functionality that allow our users to generate reports based on a fixed set of options that we have programmed in to it. Initially we thought it would be possible to write a form system where users are presented with a series of dropdown boxes that guide them through the process. However, we'd like to offer more flexibility and give the users the chance to "query" the system themselves. On our Alpha system, we use ...Show All
akaRickShaw Network Printer Selection
I'm working on an application that needs for the user to choose where reports get printed. For example, some reports need to print in the Payroll Department, some in the Accounts Payable Department, some in the Accounts Receivable Department, .... I'm creating a form that has the different "Printer Locations" listed with a text box for the UNC of the printer to be entered. I would like to have a browse button that will allow the user to browse to the printer. Some of the printers may be installed on the local machine, but they may not be installed on the local machine. Also, these settings will be used by all users, so using the UNC would be the best method of identifying the desired printer. I can't get the FolderBrowse ...Show All
Peter Lillevold Adapter.Fill fails with No Selection Rights.
Im using an informix driver and having an issue when I try to change the connection string. Setting up a data source with the tables and adapters, I have only been able to use a DSN that I have created using the ODBC Manager. When you do the setup, it wants to save the ConnectionString. But it saves it to the Application.Connection String which is impossible to change.(Maybe I wrong) Everything works great until I try to get rid of my UID and PWD. The Adapter.Fill fails with No Selection Permissions. What am I missing DataSet ds = new DataSet(); OdbcDataAdapter daAccountInfo = new OdbcDataAdapter(); OdbcConnection connection = new OdbcConnection(myConnString + myLoginPWD); try { this.Cursor = Cursors.WaitCursor; ...Show All
Miroslav_shrek MouseDown event not fired when button held
So, I'm righting a little application in which I want a user to click down and hold the mouse button on a UserControl to view something (the information should be displayed on the MouseDown event, and removed on the MouseUp event). For some reason the MouseDown event is not being fired on the initial click (but it does get fired if the mouse is held and moved, or right after the release of the button). Any suggestions to what I might be doing wrong I'm working in VB .NET 2.0, however if you want to give a code sample, feel free to use whatever .NET language you're comfortable with. Thanks. Carl C. wrote: So, I'm righting a little application in which I want a user to click down and hold t ...Show All
Shaan007 Class with UserControl and multiple buttons - please help
How would I rewrite this code so that Class1, rather than the base class of the application, contains the controls The way I've got it here does it all on the base class and is just to demonstrate more or less what it ought to look like if I could figure it out. The part where I tried to make it work using Class1 is commented out. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Containers { public partial class Form1 : Form { public Form1() { InitializeComponent(); Button b1 = new Button(); Button b2 = new Button(); UserControl u = new UserControl(); u.Controls. ...Show All
MarikaT Mage tool changes not being downloaded to user PCs
Hi. I'm currently testing our ClickOnce installs on the users' PCs and I've run into a problem. We're going to be using mage command line tool to update the manifest info on the server after we update a DLL. The idea is that when a DLL is updated, it will be copied onto our server into the publish directory, the manifest info will be updated and properly signed. When the users start up the application the app should check the publish dir for an update, prompt the user and then download the latest version. The mage commands I'm running look like this: mage -Update App.exe.manifest -FromDirectory \\svr\App\App_2_0_0_17 mage -Sign App.exe.manifest -CertFile somefile.pfx mage -Update App.application -AppManifest \\svr\App\App_2_0_0_17\App.exe. ...Show All
