EduQuint's Q&A profile
Windows Forms How to delete collection entries when control deleted?
I have created a custom control that exposes a collection property. The collection is edited using the standard collection editor at design time and all works as expected. So when you add a couple of new entries to the collection the generated code creates the two new instances and adds them to the collection. Great. But if I select the custom control instance and delete it then it does not also delete the two entries that were created for the collection. They are still declared as private variables and created. How do I ensure that the dependant entries are removed when the custom control is also removed Phil Wright http://www.compone ...Show All
Visual Basic VB2005 and webbrowser control
Hi, I am trying to use the webbrowser control as a list view for viewing files on the disque. My main purpose is to use build-in fonctionnalities like thumnails view withaout having to write code (reinvent the wheel). It works great but I don't know how to programatically control the way the browser display files. I mean, how to control the "view" property (list, details, thumnails, etc) of the web browser. I also would like to remove that menu pannel on the left. Can anyone help me Thanks, Patrick I think that the WebControls in Access and VB 2005 are not the same at all, because in my WebControl, the docum ...Show All
Visual Basic Delay or Pause
Hi, I have Kiosk application which starts the browser inside the Kiosk. But due to wireless, I have to pause the start of the application so that wireless should first kicks in and then the applications starts.. My VB program conatains a browser control. Here is sample code Me .webBrowser.Focus() Me.webBroser.Navigage("LoadingPage.htm") System.Threading.Thread.Sleep(20000) Me .webBrowser.Navigate(URL) Where URL is on the server which requires wireless to kick in first. But when I run the exe file it puts the delay of 20 seconds and then shows the URL page. It does not show the LaodingPage.htm Please Guide Thanks ...Show All
Visual Studio Express Editions Variable Recreation
Hi, a dumb question from a newbie. I have an Mdi appication in which i declare variables at the start of the class as below: Try declaring your forms without the NEW keyword. DIM Childform1 as Child Then create it in your sub-routine with Childform1 = new Child ChildForm1.MdiParent = Me ....................etc I'm not sure if this will give you the desired effect as it is a bit hard to understand what your are trying to do as normally the "Window | Tile Horizontal" command is used to arrange forms which are already open and you seem to want to create a new form each time it is used. Dave ...Show All
SQL Server MSDE 2000 crashes win2k on after setup
I currently am working on making an install disk for my companies software that relies on MSDE 2000 SP4. I created an install disk, with setup Factory 6.0, that copies the exracted MSDE SP4 setup Files to the C Drive and executes [Setup.exe /settings setup.ini /log "C:\SQLinstall.log" /q+] The Setup.ini File is as follows [Options] DISABLENETWORKPROTOCOLS=0 SAPWD="Password" SECURITYMODE=SQL after that I prompt the user to restart. Which did succeed, and on reboot finish the installs for my companies software and setup the database tables. Now this usually works just fine on win2k and XP. However upon shutdown. W ...Show All
Windows Forms Draw StatusStrip SizingGrip
Hi, is the only way to owner draw the StatusStrip SizingGrip by overriding WndProc or is there a way with the ToolStripRenderer that I'm missing Thanks, Tom ...Show All
.NET Development How do I Install the .net framework 1.1 onto a removeable drive
Hi I have written an application on a standard desktop using Vb.net 2003 running under XP Pro SP2. I am trying to install the application onto an embedded Pc which uses a Compact Flash drive (4 GB Microdrive) as the boot C drive (running same XP Pro SP2). The problem I have is that when I start to install the dotnetfx redistributable .net framework 1.1, the installation fails half way through. (it asks for the CD .net framework 1.1) If I use the same installation CD on a standard desktop the installation is successful. It has been suggested that the problem maybe that the .net framework cannot be installed onto a remov ...Show All
Windows Forms Rotation point
Hi guys I have run into a problem with rotation and resizing of a rectangle. I am rotating around the x and y axis of the rectangle. When I stretch the rectangle using the left handle the x and y is moved. This causes the rectangle to move around the screen because the rotation point keeps changing. I somehow need to rotate around a fixe ...Show All
Visual C# easy way to encode a string
hello guys :) i need a easy and simple method to encode a string or encode a text file. The problem is that in my school, they give all of us an e-mil account which i have been using to transmit some files which i would not like school to see. I was thinking about making a simple method or finding a simple method which encodes what i am sending cause some of these are sensetive data. I checked the library here on microsoft but didn't find what i was looking for. Thanks in advance :) It sounds like you mean encrypt, not encode - although you need to encode the text data as binary before you encrypt it anyway. Have a look at the docs for ...Show All
SQL Server multiple prediction targets
I get to page 116 in "Data Mining with SQL Server 2005", but when I try to deploy my model, I get these errors: Error 1 Error (Data mining): The 'Movie Bayes' mining model cannot have more than one predictable attribute. 0 0 Error 2 Errors related to feature availability and configuration: The 'Multiple prediction targets' feature is not included in the 'Standard Edition' SKU. 0 0 Setting nested table attributes to predictable means that you have multiple predictable targets, which is not supported in standard edition. If you want to use NB to analyze a single nested table attribute, you can use the techniqu ...Show All
Visual C# Connecting Web Application to Database Wired/Wirelessly
Hi good day too all. I am currently designing a program that should allow users to access to database wired/wirelessly on a different location from the web application. Compared to connecting a web application that has database on the same PC is a much difficult task. Can anyone kindly enlighten by giving some suggestions on coding or methods to solve this problem I need to sovle this problem asap as submission for my program will due in like 12hrs. Lastly i would like to thank a million in advance for any form of help i would receive! Wired vs. wireless won't matter as long as you know the DNS name ...Show All
Visual C++ roject : error PRJ0002 : Error result -1073741680 returned from cl.exe'.
I have a unique problem.. when i delcare int^ test = 100; program compiles without any problem. but when i declare double^ test = 100; or float^ test = 100; i get following error... ------ Build started: Project: NewClr, Configuration: Debug Win32 ------ Compiling... NewClr.cpp Project : error PRJ0002 : Error result -1073741680 returned from 'C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe'. Build log was saved at "file://c:\Documents and Settings\Alireza\My Documents\Visual Studio 2005\Projects\NewClr\NewClr\Debug\BuildLog.htm" NewClr - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 s ...Show All
Windows Forms Databinding textfield in a master detail relation
To all I'm creating a character database for when I play Dungeons and Dragons (pencil and paper version). The problem that I'm currently experiencing is when binding a datafield to a field in a master - detail - detail relationship, the information is for the first record in the table and doesn't update when scrolling the ClassSkills detail table. Following is the relationships for the 3 tables. Table Relation Class ClassSkills One to Many based on ClassName &nb ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this er ...Show All
Visual Basic Using and deploying DLL files without having to register it under Windows : is it possible ?
Hello everybody. I'm a new member of this forum and I ealready have an imoprtant question. I wanna know if it's possible to create and deploy under Visual Studio 6.0 (VB6) or .NET (7.0 or 7.1) library files (dll) that I could use without registering it.... The goal is to be able to run any application using this library whatever the access rights to the register base of Windows... Thank you for your supports !!! Thank you Ken for your answer. I thought the vb.net dll were automatically registered while their building under MS VS7.1. The further matter on this subject is that I can't add a reference to these vb.net dll ...Show All
