bill1951's Q&A profile
Windows Forms Child is not a Child Control of this Parent
Hi, I have created a userControl which I want to be able to draw and add new components during design time. I have added the following attribute to my class. [Designer("System.Windows.Forms.Design.ParentControlDesigner,System.Design", typeof(System.ComponentModel.Design.IDesigner))] public class RollUpTab : System.Windows.Forms.UserControl Which has a GroupBox as part of it. Within this class I overide the OnControlAdded method as follows protected override void OnControlAdded(ControlEventArgs e) { this.gpbox_MainGroup.Controls.Add(e.Control); } Now when ever I add a contr ...Show All
Visual C# User Selected Database Path
I am currently creating a frontend for a database. The frontend is essentially used to input data into the database. However, since the database needs/is stored on a server, my application will not find it, as the app.config file specifies the connection string as "C:\...\filename.mdb" which is the path of the file on the computer I am creating it on, not of the server. Is there some way to modify this code to be set by the user, from some kind of config form Perhaps using a openFileDialog and setting the selected path as a local variable and defining the connection string as this path If this is correct, how would I code t ...Show All
Microsoft ISV Community Center Forums vba in excel
Public Sub CopyStuff() Dim lngRow As Long Dim strFileName As String Hi John Try the below, you can amend as necessary, I have added a function which will help name the file as per your example Public Sub CopyStuff() Dim lngRow As Long Dim strFileName As String Dim strRange, StrRow As String On Error Resume Next MkDir ("C:\Files") On Error GoTo 0 For lngRow = 1 To 2 StrRow = Trim$(Str$(lngRow)) strRange = "A" & StrRow & ":B" & StrRow Range(strRange).Select Selection.Copy Workbooks.Add Range("A1:B1").Select ActiveSheet.Paste Application.CutCopyMode = False Appl ...Show All
Visual Studio “Stack trace error” and “context switch deadlock was detected.” excel
I have completed my excel project, I am doing the fine tuning now. A little background it is an excel spread sheet created with VSTO, it pulls data from SQL and loads the data on different excel sheet based on what option they pulled. The issues I am having are that if I pull a dataset with more than 500 records I get a “Stack trace error” and “context switch deadlock was detected.” I have search this error on here and some suggested “What you are seeing is one of "Managed Debugging Assistants" (MDA) and can be disabled by Debug->Exceptions ... > Expand the MDA node and uncheck the box against contextswitch ...Show All
Visual C# Getting a list of computers on a network
I'm writing an application that needs to get a list of computers (their names) on a network. The examples I've found all seem to query an ActiveDirectory on a server, which is not what I need. Is there a way to get a list of computers on a server-less network using the .net 2.0 classes I've done this before in VB6 using API's, so would I have to do that in C# 2005 using System.Runtime.InteropServices, or can it be done with System.DirectoryServices Thanks for any help with this. Yeshia wrote: Im not sure if this is what you are looking for but this code should get a list of computers ...Show All
Windows Forms RadioButton: the Click event was raised unproperly
Control :RadioButton Description: the RadioButton's Click event was raised even the Checked property is changed Programmatically in form's constructor/OnLoad event handler. I have found some document that says, the Click event won't be fired when programmatically changing the Checked property of a radio button. But actually, if you put a 'radiobutton1.Check = true;' in the constructor of the form, or even in the Form.OnLoad event handler, the Click event will be fired. So is there any way to identify if it is the user that is choosing this item, not a programmatical changing of the Checked property (You know i dont like ...Show All
SQL Server Cannot complete Install of Express
Product: Microsoft SQL Server Native Client -- Error 1706. An installation package for the product Microsoft SQL Server Native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli.msi'. Logged as MsiInstaller in App Log. The install fails with this and two other items in the bos that shows successful install items SQL Server Database Services Workstation Components, Books Online, Development Tools Installed 2 necessary programs; Windows Installer 3.1 and .NET framework 2.0 redistr. Any Ideas === Verbose logging started: 11/30/2005 19:05:44 Build type: SHIP UNICODE 3.0 ...Show All
Visual Studio Express Editions UploadFile() Gives: Error 1 Reference to a non-shared member requires an object reference error.
Here's my code: Imports System.IO.File Imports Microsoft Imports Microsoft.VisualBasic Imports Microsoft.VisualBasic.Devices Imports Microsoft.VisualBasic.Devices.Network Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Hide() Dim OldFileData = ReadAllLines( "C:\Stats\www\index.html" ) Do Delay(10000) Dim NewFileData = ReadAllLines( "C:\Stats\www\index.html" ) If Not OldFileData = NewFileData Then OldFileData = ReadAllLines( "C:\Stats\www\index.html" ) Shell( "C:\Stats\bin\run.cmd ...Show All
Windows Forms Displaying Data from Database
Is there a way to display data from a database without using a data grid I want it to show all of the results on one page, just like a data grid would do. ...Show All
Windows Forms Change Status Bar from MDI child
Hi, this is probably a simple question.. but I have not found any information on that topic so far. Basically I want to change a status bar text on the parent form from child windows. Whenever I try to reference them with "form1.statusbar.text = xxxxx" I get the reference errors. See code bellow. Is there a way to make the status bar&nb ...Show All
Software Development for Windows Vista Methods for Generate Still Video filter in qedit.dll
Has anyone cracked the "Generate Still Video" methods It appears this is the default source filter when using RenderFile for bmp, jpg or other still image format. I don't understand why the methods for this filter are not published. If someone has data on this filter please pass it on. Thanks. ...Show All
SQL Server Import XML string into DB
I'm not sure what an "edge" table is. Can you post a sample of the XML, the OPENXML syntax you're currently using, and the output you're trying to achieve -- Adam Machanic SQL Server MVP http://www.datamanipulation.net -- < GBez@discussions.microsoft..com > wrote in message news:c959c905-bfac-4471-b7a1-059439279ef9@discussions.microsoft.com ... Hi, I have a string of xml stored in a ntext field of a table in a SQL Server 2000 database. What I have to do is strip out the data stored in the string and store it in a table in the database. I ha ...Show All
Visual C++ disable manifest stuff?
is it possible to diable the manifest stuff so i can run my application on another computer with out .net. So just my exe and a bunch of dll's if they are needed. I've found some threads that discuss copying manifest files and renaming them and shit, but that really sucks, and doesnt even work for me. I cant manage to get a simple printf("hello"); working on another machine! so i've tried a release build using the default project from the project wizard and i et this error on machines that dont have vc2005: "the application has failed to start because the application configuration is incorrect. Reinstall the application may fix the problem" ...Show All
Visual Studio 2008 (Pre-release) Missing ORM Features
Hi, Been playing with the preview and saw in the doco that mapping inheritence is not supported. This is fundamental to an ORM. Without it polymorphic queries are not possible. Not only this, but all ORMs I've worked with (Persistence, TopLink, Versant, Hibernate, NHibernate) support the standard 3 ways of mapping inheritence to a relational model. This is equally important because alot of legacy schemas out there use a combination of these. IMHO DLinq is useless in any real business application without this. Whats the status regarding this one I hope it's one of your higher priority features. Another question I have is the need to ...Show All
Visual C# deleting from text file
i want to delete a specific part of text from a file..can i do it using any files&streams method thanks in advance you can delete the text but u have to some extra work. First read the document in a string or anything u prefer, then look for the text(u want to delete) and remove that text from the variable and write the updated text to the file again after removing the original text. u have to find out some way to find the specified text, which u want to delete. ...Show All
