Answer Questions
CharlesV When getting the manifest is null but no error
Hi. I am working out this code about using ClickOnce Applications Programmatically: http://blogs.msdn.com/winformsue/archive/2006/02/02/523414.aspx My problem is that when arriving to the loading of the manifest the iphm_GetManifestCompleted() says that there is no error (e.Error != null),but the DeploymentManifest and the DeploymentApplication are null then the program stops. What is the problem Thanks. Loernzo If you want to get the application manifest and deployment manifest from GetManifestCompleted(), you should get it as e.ApplicationManifest and e.DeploymentManifest. Is the application already installed You should be able to get the application manifest and deployment manifest if the applicatio ...Show All
Best Ordinary Man Problem with data table adapter and binding it to a objectdata source
Bit of a strange one this. I had it working fine the other day and now I'm unable to configure it. Basically, I create a dataset in Visual Web Developer 2005 Express Ed using the data adapter configuration wizard. That bit works fine. Next I drag a data grid to my webpage and use the smart tag to create a new datsource. I then select an object and hit ok. This is where the problem occurs, my data table adapter does not appear in the dropdown. I can get the name of my dataset to appear if I untick 'Show only data components' but if I select this and go to the next screen of the wizard my methods aren't available. Any ideas Like I said this worked fine yesterday so I've no idea what's happened. ...Show All
Surezsu Read outlook email and then save data into SQL server
I need create a project as below: 1) read email from outlook email, there is some info need to be red, such as: Name: John Smith (every date is different name) Date: September, 13 2006 (date will change every date) Status: Completed (or pending…) 2) input name, date and status data into a table of SQL server I do not know where to start. Can some expert give an idea What you should look at is office automation with this you can tap directly into the MS Office packages. But if it is just for email, you could use one of the network libs and look directly at the mailbox. Doing this you could either use POP or MAPI, if you do a search on google for these as well as the .Net ...Show All
YoK error ConstraintException was unhandled
Using VS2005 c# I have a databound combo - to which is assigned the primary key to Access Table. Whenever I change the selection I get the following error. ConstraintException was unhandled Column 'INVNumber' is constrained to be unique. Value '1/2-24"LM' is already present. How can I avoid this error. -using the previous/next button on a bound navigator does not cause the problem - the records are displayed. By "change values in the combo" you mean select a different item in the combo When doing so, the value of this newly selected item will be written in the underlying datasource. If this value already exists there, the exception will be thrown. Andrej ...Show All
Bartosz FolderBrowserDialog - Can't select network computers
I'm working on a simple VB app that will allow me to inventory the computers on my network. The difficult part (getting the PC inventory details posted into SQL) is all but complete and now I'm working on tidying it all up. I want to be able to add the above control so that I can select a computer within my network for use within my program i.e. "please select the computer you wish to inventory". 2 things (1) the folder browser control doesn't seem to be able to select a computer rather than a folder, can this be changed and how and (2) is there a way to force the root folder property so that it default to the domain in my network. Any help, greatly appreciated. Cheers, Sumpty It kinda h ...Show All
Milzit Noob Related record Question
Hi Guru's Question for you all. I am using tableadapters and datasets within VB and all is very well. id like to be able to add a record to the main table and subsequently a related table. I can add the new record to the main table fine, but to maintain PK/FK relationship i need the ID from the newly created record in this main table to add to the related table so that the relationship stays valid. As it stands now im not using SQL commands such as @@IDENTITY is there a way i can get the identity fed back as a variable from the newly created main table record im sure that youve all encountered this one before. Many thanks in advance Mr Noob :) ...Show All
John Clien Using a DataSet to fill a DatGridView
Can some one help, i'm using VB2005 and i want to create a dataset where i select data from various tables of my database and then enter it into a datagridview, but i want to set the names of the columns. Also i want to be able to add other entries into the datagridview including what is already there. How can i do this Has an one got any examples of code they can show me please Hi as I don't understand your situation, but for that you want set name of the columns, you can use sql like : select something as columnName form DataBase, then the column can be changed sorry mate can't find my answer there, can anyone else help You will find some VB 2005 Datagrid ...Show All
J-Pixel WebBrowser URL
Hey, Using the WebBrowser control how do you make it so that a textbox always has the URL you are at in it like if I was to make the default URL of the WebBrowser www.google.com and then the program is run, but the textbox dose not automaticly have the Url in it...How would I make it so the Url is always in the textbox Thanks :) I'm still trying to figure out what's the exquivalent of StatusTextChange in Express, but DocumentCompleted should tell you the current URL you are in. If you include this event the textbox should always display the URL you are in. private void webBrowser1_DocumentCompleted( object sender, WebBrowserDocumentCompletedEventArgs e) { this .textBox1.Text = e.U ...Show All
Option flipping tabpages programmatically
This is what I want to do: when I click a button on tabPage1 I want the tabControl flip and show tabPage6. I've treid numerous tricks--none worked. In the button Click event I have: this.tabPage6.Focus (); SendKeys.Send ("{ENTER}"); this.tabPage6.Show (); No effect. I've tried MouseEventArgs, MouseDown, MouseClick for tabPage6 but none of them even fired. Thanks for help. Thank you very much, OmegaMan. It will be my next step for sure. "Correct command is: tabControl1.SelectedTab = tabPage6;" Yep. It worked. Thank you, Markku. Thank you. Amazingly simple. Actually I have done a similar thing a thousand times in VFP with a similar command but here ..... everyt ...Show All
Knvb1123 I have a bug with a deployment project, help :(
Hi, I got that error when I tried to setup an application I made using csharp where it works on data from sql sever db. But on my own machine the setup package works fine, I ma stuck on that bug and I tried all ways, I hope some one help me :( Unable to get installer types in the 'app-path'+'programname.exe' assembly --> unable to load one or more of the requested types. Retrieve the loaderExceptions property for more information. I'm guessing here, but I suspect this is in your custom action that's an Installer class. The most likely reason is that your assembly is dependent on other assemblies that can't be located. They are probably in the GAC on your system but not on the other target systems. ...Show All
Tommy.Le Databinding, does anyone use databinding for commercial applications?
I'm running into this same problem: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=356806&SiteID=1 Databinding seems useless. The idea of the disconnected data model is a really difficult process, mainly because of relational databases. Many of my tables have identities, and if multiple people are hitting the database at once, there is no guarantee that the identity generated in your datagrid is going to be the same when you actually submit the in memory dataset to your database. This makes it a real pain to update related records. Can anyone shed some insight on complex databinding with identities and relationships Perhaps, someone has some good documentation on some methodologies used to create windows forms applicati ...Show All
Melvin McClurkin Hidding tabs in a c1dockingtab in visual studio 2005
Greetings, I need to hide the tabs from a c1dockingtab. I don't want to hide the pages of the dockingtab. IN VB6 there was no problem with this because by setting the height to 1 automatically the tabs where hidden but in visual studio 2005 in vb I've tried many options but none seem to work. This was the last one but it just removes everything. Dim x As Object For Each x In C1DockingTab1.TabPages C1DockingTab1.TabPages.Remove(x) Next I would really much appreciate your help. Thank you, very much ...Show All
svxtc Errors after deployment
I've been deploying projects a while, but suddenly I get the following errors after I do a click once deployment and then click on the setup.exe file. What do they mean and how do I fix the problem PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file:///F:/deployForNotebook/CTS.application Application url : file:///F:/deployForNotebook/CTS_1_1_0_0/CTS.exe.manifest IDENTITIES Deployment Identity : CTS.application, Version=1.1.0.0, Culture=neutral, PublicKeyToken=dcea ...Show All
nil130180 Setting default values in bound controls on a form
How do you set default values for bound fields in windows forms There are times when specifying the default value in the underlying dataset is insufficient. The fields are bound to a binding source which has an AddingNew event where you can do something like: e.NewObject = <something>. The something however needs something of the same type or else you get an error message of "Objects added to a BindingSource's list must all be of the same type". I assume this is a DataRowView except I don't don't know how to create one in this context. One way is to use code like this: DataRowView rowView = dsNorthwind.Customer.DefaultView[0] but this implies the row is already in the underlying dataset except it isn't becaus ...Show All
Deeps_123 "the path is not of a legal form" error
Hi, I made a control, and when I try to add it to a form, it shows me the error "the path is not of a legal form". How can I solve it Thanks. if (!this.DesignMode) { // Do stuff with paths... } Anyone Please!! The project itself works great. The problem is just in the specific UserControl. I can run the project without any errors, I just can't add to a form that UserControl. What test I didn't understand.. I tried, but I get the same error.. Anyone can you give us more detail than that any code Where does the error come from ...Show All
