Answer Questions
BobSun Publish Version Numbers
Question... I've set the "Publish Version" numbers in the ClickOnce settings to Major 2, Minor 1, Build 0, Revision 26 and set to automatically increment. However, I want to display the applications full verison number in its about box, but I get a revision number of 2.1.5210.22245 when I use the Assembly.getName().Version object. What is happening here Why can't I see the real revision number is any runtime objects Thanks, Richard Forss ClickOnce deployment version and Application version are totally independant. You set application's version in AssemblyInfo.cs and access it with Assembly.getName().Version. I guess you'll want the version in AssemblyInfo.cs and for deplo ...Show All
markovuksanovic Click Once Deployment with running scripts
Hi All I need help in deploying an application using clikc once. I have basic knowledge in click once and tried to publish, deploy simply application using click once. Now my scenario is, I need to run some scripts (SQL) when I deploy my application through click once. How can I do that Any guidance for this would be more helpful. Regards, Santha Hi All, Now I have a different question. Whether can we customize the Click Once API. The API which supports the click once is System.Deployment. If I have to customize that,what shall I do for that Scenario is something like this, while deploying the application it has to create some store procedure and data base tables, for ...Show All
ryan101 Suppressing Checkboxes for some nodes in a TreeView
The web version of the TreeNode class has a ShowCheckBox property. The Windows version does not. Is there a workaround to hiding checkboxes for some items in a TreeView I need to suppress showing the checkbox for the root nodes in the tree. Thanks, Paul Whitaker I am running Visual Studio 2005. The property exists for the control, but not for individual nodes. I have a root level of nodes that I do not want to have a checkbox on, and so far I have not been able to accomplish this. Sorry, I checked the TreeView control on VS2003 and VS2005, Both of them have the CheckBox propriety. Which IDE did you use Technically, it is possible by setting the DrawMode to O ...Show All
Namshub Validating a user with a Login Form
hi everyone! need a winform that can validate a username and password. I had created a table that has the username and the password in it. the idea is to compare the text that is input onto the textboxes to the data that is stored in the table and if the username and the password are the same the login form will hide and then the principal menu form will me showen. I'm useing a sql server 2000 database and visual basic .net 2003. oh also need the posibility that the user can change his password as many time he wants. really need this!!! What part of all of this do you need help with Here are some general thoughts: 1) You can create a basic login form using the Login Form template in the Add New Items dialog. 2) You w ...Show All
Nagaraja Subbrayalu MouseClick called first upon Double Click
Now I see that my question was very badly writen so I re-write it. I am writing in C#. I have a DataGridView and two functions: One to handle the CellMouseClick event and one to handle the CellMouseDoubleClick event. The problem is that if the user double click a cell, BOTH events are called! First the CellMouseClick and then the CellMouseDoubleClick directly after. They are both called by the VERY SAME double click! It would have helped if I at least could tell if the "CellMouseClick" is caused of a double click or a single click. Anyone that knows how Isn't it alltogether a bug I do not think that a CellMouseClick should be raised by a double click at all. Thanks in advance, Keren PS: This is a car booking system. A single click on a bo ...Show All
yanivpinhas DataGridViewComboBox System.Argument Exception
Hi All, When I create DataGridViewComboBox columns and add them to a DataGridView I keep getting a System.Argument exception if the items contained in the ComboBox are not already within the DataSource. Has anyone else experienced this problem If so how did you handle the error Moreover, is it possible to suppress the error and continue with the programs execution normally Cheers, sfx If you do need to suppress the error, handle the DataError event of a DataGridView class. You may even leave the event handler empty, just create it. vkh is there another way around other than virtual .. to create an unbound/bound columns datagrid. my current method is to use arraylist, row index becomes ...Show All
HectorCruz automatic data generation tool
Dear All, I want to generate test data automatically. The process is as follows, 1. User will enter the fieldname and datatype and range in a form. (inputs will change) 2. We have to capture that details 3. Based on the defined fields, we have to generate test data 4. Put the test data into an excel sheet i am looking at getting an overview about the whole process from a design point of view and implementtion will follow. any insights will be appreciated. any resources/ links with reference to the above requirement are welcome. thanks, mkuppu Hi Mkuppu, It sounds like you might be asking for general architectural advice. I'll move this to a more appropriate forum where your question could be be ...Show All
SQL New flickering dgv
hi i get flickering dgv with this code on my dgv, what can i do> thanks Private Sub DataGridView1_CellFormatting( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting Try e.Value = Me .CostingDataSet.Bill_Detailed.FindByBillID_Detailed(e.Value).AmountFC.ToString e.FormattingApplied = True Catch ex As Exception End Try End Sub Cache the value like how okay i can go by creating classes containing id and value that i then lookup, still at start initialisation will be slow to create the classes., thats the only solution i have in mind. anything else please let me know the search algorithm is directly ...Show All
Mike Riley Merging MDI Child and Parent menus
I ma trying in vain to get 2 menu strips to merge one on an MDI parent the other on a child form so far everything I have tried has not worked. Does this feature even work Currently I have tried various combinations of setting everything to MatchOnly, Replace Remove Insert and Append. any ideas Working with MDI Applications and Creating Menus Upgrading to Microsoft .NET Jason C. Perez OEM Systembuilder Philippines Group Microsoft Philippines Group MSDN Philippines Group November 2006 Summary: Introduces you to the concept of Multiple Document Interface (MDI) and how to create menus within an MDI application. (20 printed pages) Objecti ...Show All
jagotaas Font is Combobox text?
Hey, How would I make it so that the font in a richtextbox is the selected font in a combobox(combobox2.text) I tryed thisrichtextbox.TextBox.Font = (toolStripComboBox2.Text); but I got a error with the toolstripcombobox2.text part...: Cannot implicitly convert type 'string' to 'System.Drawing.Font' Thanks :) Oops unless you had selected text, you would not see the change. Sorry, try this thisrichtextbox. Font = comboBox1.Font; ok Try just changing the font use this code: richTextBoxMain.Font = new Font("Courier New", 20); I assume you have Font names in the Combo box then do this: thisrichtextbox.TextBox.Font = new Font(toolStripComboBox2.Text, 10, FontStyle.Regula ...Show All
smargroth window focus
Can anyone help, I have lost the plot with a form, I have a sip app requesting a page eg http://192.168.0.1/details.aspx I cannot make this page jump to the top off all other windows, seem to remember it was either window.form.focus.top or window.zindex something or other I can't find the info, its all done in studio with vb any help greatly appreciated. K Try each of these functions one at a time, and if they don't work, try them at the same time. 'First function Me .Activate() 'Second function Me .BringToFront() 'Try both Me .Activate() Me .BringToFront() Thanks that seemed to do the job, works a number of times so onload and after processing the code it brings the page t ...Show All
Jina NullReference in ListChanged()
I've implemented a Custom Databinding, startly it was working correctly, I have a Custom Collection, that implements IBindingList, ITypedList, IEnumerable, CollectionBase. This Custom Collection contains my Bussiness Object Base, and I've other objects derived from this Bussiness Object. I've too a Custom DataSource that implements IListSource When adding a new register, I call the implemented AddNew method from IBindingList interface and later I add the object to my List. When I call my ListChangedEventHandler, it returns a NullReferenceException. Handling the exception, I understood that it call some methods. In order: List_ListChanged(System.Object sender = {CellVision.Dados.CVObjectCollection}, System.ComponentModel.ListChangedEventArg ...Show All
mNero Forbid user to change to another tab in a TabControl
Hey, I'd like to forbid users to switch to other tab in a TabControl, while allowing them to interact with the controls in the selected one. Setting TabControl.Enabled to false is not going to work, as the whole container and its children will be all disabled, as well. Is there any way to do this Thanks, Claudio Use the TabControl.Selecting event. For example, this code prevents the user from selecting the second tab: private void tabControl1_Selecting(object sender, TabControlCancelEventArgs e) { if (e.TabPageIndex == 1) e.Cancel = true; } Hi nobugz, Thanks for your reply. Is it possible to also have visual feedback of this Something like setting the :Enabled property of the labels in t ...Show All
Blkbird Binding Source Question
Okay. Here's a tough one for all you experts out there. I have a form with several textboxes and comboboxes. There is a button on the form that will open another form. Each form has it's own tableadapter. Both tableadapters share a common field called Card_ID. I have created a relationship between the two tableadapters joined with the Card_ID field. Here's my problem. When the user clicks on the button on the first form, I need to "save" the record in order for the data that is entered into the second form to "save" because the relationship requires a Card_ID in a record on the first form in order to match it with a Card_ID from the second form. I've been able to do that, but when the user closes the second form, th ...Show All
Dave Patricio How to atop download project which included in my soultion
Hi all, I'm using clickonce techmology, I have an solution contains of 5 windows application Projects . Four of those projects are exe files (let's call child) are refrenced to the One (let's call it Main exe). Now, when I make publish all the 5 exe files will published. The problem is, if I make build or rebuil for and One of the child project that mean it will published again and downloaded from internet even if this file has no changes (because disg:digestvalue tag in the mainfest will take new value ) The big problem is, if I rebuild the solution even by mistake that mean all my files will downloaded again even if it have no changes. Is there any way to stop this sorry friend, ...Show All
