Ayooya's Q&A profile
Visual Studio Express Editions Using modules for storing code
Lets say I have one button on a form, and write the code for what happens when I push the button in a modul, instead of in the button. And in the button I only refer to the modul. Because when I make a program the public class form gets pritty full of code. Is that possible Dave299 wrote: You won't be able to access that function from a form because you have declared it as Private. Declare it as Friend or Public to access it from your forms. I get an error "Lib" expected declare sub testing as public ...Show All
Visual Basic Operation must use an updatable query
I have an app that shares a mdb in a shared folder at the windows server 2003. After instalation i get this message... Operation must use an updatable query I have checked everything and even given total control to authenticated users but yet got the same error. I works fine on other servers with the same deployment. Any help please Jorge Laines There are several things to look into for an access database. 1) Have you given the users rights to the mdf file or the folder Access requires a second log file to be dynamically created and destroyed when you open it. If you don't have create and remove rights on the folder, it might not work properly. 2) Make sure your table data is coming from a single table with no ag ...Show All
Visual Studio ValidateMultiplicity and inheritance
Hello - I am having some issues with child domain classes properly inheriting mutliplicity validation methods from their base classes. I have a DomainClass, ParentClass, with a relationship to some other DomainClass, TargetClass1. Multiplicity is validated as I expect. I have another DomainClass, ChildClass1, that inherits from ParentClass. ChildClass1 does not add any more relationships. The multiplicity rules from ParentClass are validated as I expect. I have a third DomainClass, ChildClass2, that also inherits from ParentClass. ChildClass2 adds a relationship to some other DomainClass, TargetClass2. The multiplicity rules for ChildClass2's relationships to TargetClass2 are validated as I expect. However, ChildClass2's multip ...Show All
SQL Server Data Loss with Merge Replication?
We had merge replication setup between 2 tables, Table A and Table B using SQL 2000. This was working 100%. The users asked to disable updated/deletes to both these tables if data existed on 2 other tables. Table AA and Table BB. We implemented it as follows: 1) Created Insert/Update/Delete triggers for Table A & B. It basically check for Table A is there a record in Table AA, if it exists, raise an error and don’t commit. 2) Removed all foreign constraints from Table AA and BB 3) Added Table AA and BB to the current replication. Then all hell broke loose, we got conflicts all other the place saying that Table AA cannot be updated because records does not exist in Table X. To our surprise we found trig ...Show All
Software Development for Windows Vista How to add HDMI support in video miniport driver?
I have some experience on VGA compatible video miniport driver development. Now the interface between the display card and monitor changes to HDMI from VGA interface. I don't know how to modify the video miniport driver to support HDMI interface. As I know in the VGA compatible video miniport driver, I need to implement SVGA functions. Now for HDMI, what should I do ...Show All
SQL Server Reports + Setup
Hi, I need to create a setup project that will create a new folder in the Reports Server. The folder should contain all the reports I have developed. The folder should have a browse permission for a user that I will choose (from the Active Dir.). Everything must be programaticlly. In other words, I need to create a folder and set the permissions for it using code. Is there a way Do you have something in mind 10x, Solved it using the followings: for the folder creation part: _service = new ReportingService2005 (); _service.Credentials = System.Net. CredentialCache .DefaultCredentials; _service.CreateFolder(directoryName, "/" , null ); for the security part: Role role = new Role (); ...Show All
Visual Basic What To Install From VB Installation CD To Let Users Run My Application And Not Enter VB
The best way for me to do what I want to do is install on all PCs (using VB installation CD) the minimal requirements to run my application which uses VB 2005, ADO.NET to read/write to an Access database, and Crystal Reports. I ask you what, specifically, should I install on all these PCs from the VB 2005 installation CD After that the next thing I will do is I give each PC user a shortcut file (having a nice icon that says database on it) which runs the exact same executable on a shared drive. My application already has the capability to tell users if someone is already actually using the database via a warning message. The hope is that only one person will use the database at a time. There aren't many users so this sho ...Show All
Windows Forms Delay Processing ListView based on a Timer.
Hi all, I am after a best method approach to solve this, but my problem is that I have a ListView that contains Items based on a location. I have a Location object that is basically a Tree Hierarchy. On the Form I have nudge buttons (left and right) so that the user can move from location to location on the same level. But, when the user selects a nudge button several times very fast, then the ListView Control will get populated for each press of the nudge button. So if the user pressed the nudge button 10 times within 2 seconds, the ListView Control would populate itself 10 times. What I want is a slight delay on each key press so that it determines another key press straight after a keypress then wont process the first keypress, but only ...Show All
Visual Basic DateTimePicker
I want to add a date time picker to a toolbar. What is the best way. I know I can just drop it on there, but it would cover up everything else I add to the toolbar Thanks Brian Hi, I think you may try to put a Button in the Toolbar, and put a Calendar control invisible. After the user click the button, you can show the calendar control. If you still have any concern, please feel free to post here. Best regards, Peter Huang ...Show All
.NET Development Is this only possible in XPath 2.0
I can't fugure out how to write an xpath to do the following in xpath 1.0: Doc < Plane > < Seats Number =" 1 " Window =" No "/> < Seats Number =" 2 " Window =" Yes "/> </ Plane > I would like to concatinate the @Number & @Window fields on each node set returned Desired Results: 1^NO 2^Yes The problem is if I use concat in xpath 1.0 I only get a single string result. Any ideas Hi, The following XPath command will return you a string that contains the first element's number and window concataneted. concat(//Seats/@Number,' and ',//Seats/@Window) When you use concat, it return only stringtype, theref ...Show All
Visual Basic Problems with dataset designer
Hi I am not really sure where to post this, so I will post here and see what happens - sorry if it's in the wrong forum! I am having real problems with the dataset designer in VS2005. I start a VB project, go to Add a Data Source, select a SQL Compact Edition database, and select some tables. I then go into the Designer, make a few simple changes (for example changing the field names in one of the tables, or changing the name of the table adapter) and the VB Compiler crashes - almost every time, certainly enough times to make this totally unuseable. I have VB2005 Prof installed with the SP1 Beta, with SQL Server 2005 SP1, and with the RC1 version of SQL Compact Edtion. I just cannot get ANYTHING done with this. I have reinstall ...Show All
Visual Studio 2008 (Pre-release) Multiple certificates problem
Hi, I need to be able to use different certificates on the client and server (similar to the example: How To: Use Separate X.509 Certificates for Signing and Encryption) but the problem is I need access to the certificates that were sent from the client on the server to deteremine which certificates I need to use on the response from the server to the client. In WSE, I used a custom policy assertion and it was straight forward, can this be done in WCF Note I've tried implementing the "How To: Use Separate.." example and haven't had much luck with getting it to work even though this isn't quite what I need. When I try connecting to the server from the client it just timeouts and fails with no errors in the logs. Thanks, Mark ...Show All
Visual Studio Express Editions some questions again
1) i want my program to cover everyones screen full, i could use the windowstate maximize for that but what i want is that everything scales with the size of the form, i hope u understand what i mean 2) how can i get/put data from/in a dataset with coding thx in advance as for the video, you need to use either 3rd party control to do this or use and embed the WMP control in your application for the listbox, not sure but I know you can do this with a combobox. I guess one theory would be on the textchanged event of the textbox, to go through each item in the listbox and see if the item "startswith" the text the user entered and if so, keep it otherwise remove it. ...Show All
Visual C++ How to hide tasks bar (start panel) of desktop by API function ?
Hi I placed shortcut of my application in autostart. My application starts working after then windows is loaded. I have problem with start panel (tasks bar) because it is still visible. I manually selected autohide of tasks bar but when my application starts working tasks bar is visible. How to hide tasks bar by programming (visual studio C++) Please help me ! What you're trying to do is something related to the communication between OS, I think, it's not a pure Windows Form application. However, I found this link: http://www.codeguru.com/Cpp/W-P/system/taskbar/article.php/c5747/ . It's not written in .net, but the basic idea is the same, you have to find the handler of the taskbar, and then set ...Show All
Visual FoxPro VFP6: Problem saving data
Hi all The VFP database system is running in the server so that all the workstations can share it. The user complained that she could not save the data after amending. I tested to see whether I was able to save it on my side. It works successfully. I went back to the user’s workstation to verify it but still the same problem. I tried other workstations and found no problem so far. Assuming that there are a few possible causes: 1) Computer in the workstation is not maintained well. 2) Email virus will affect the database system if anti-virus software cannot detect it. 3) There is file caching problem in the workstation. The workstation will "hold" certain data and then release it to th ...Show All
