ChristianBG's Q&A profile
Visual Basic Treeview question
I have a treeview with this order of nodes Root Item --SubRoot ----SubItem ----SubItem ----SubItem ----SubItem I notice that the subitems are indexed automatically. If I select any of the subitems then a specific from will show. So I am using a select case to determine the parent of the selected node. If it is indeed "SubRoot," then I am using a for statement to input data based on which subitem is selected. Confused yet I was using TreeView.SelectedNode.Parent.Node.Name.ToString but as getting the very annoying 'Set object reference...' error. So, my main question is how I would do all this. Thank you for reading this complex cipher. Troy L Another option you may want to think about is setting the Tag property of the nod ...Show All
Software Development for Windows Vista Windows Aero interface
I just installed Vista Ultimate Beta RC1 but i cannot find the option on where to initialize the Aero interface. Can someone help me where to find the option to enable the interface. Once of the reasons why i installed this is to experience the 3D interface and the transparent windows. I am running this on a IBM T41 Thanks, Chetan You card should support Aero Glass, which is the 3D and transparent interface you're talking about. There are a few things you need to do to make it possible to run Aero Glass: Have a WDDM driver. I'm not sure if RC1 has a supplied WDDM driver for the Radeon 9000. If not, have a look on ATI's site. If you don't use a WDDM driver, then Aero Glass will not be ac ...Show All
.NET Development ConfigurationManager & medium trust = FileIOPermission exception
I'm posting here, the ASP.NET site is boggus and keeping me out... the topic can fit here anyways :-) I'm trying to use either ConfigurationManager or WebConfigurationManager to open a MAPPED CONFIGURATION, that is OpenMappedExeConfiguration or OpenMappedWebConfiguration, in a medium-trust environment. I get a SecurityException for a FileIOPermission over the file I try to map. I've set permissions to the file in the medium trust configuration file (in fact, the file is in the same directory than the web.config file). I'm testing with FileIOPermission.Demand(AllAccess) just before calling either of the OpenMappedConfiguration methods. The Demand() call succeed. I'm also able to manually read the file just before calling the con ...Show All
Visual C# What is the default Mail Host in System.Web.Mail.SmtpMail.Send
Hi, I was previously using System.Web.Mail to send an email. It worked great. Now I have to use System.Net.Mail due to some additional functionality requirements. I am having to specify the mail server now, whereas previously I didn't. I want to specify the mail server in the same way as System.Web.Mail. I can't figure out what is the default Mail Server name. Any one know this I tried specifying "localhost" and got an Exception : Error sending mail. Thanks. Dwight ***Old*** public void SendEmail(string To, string From, string Subject, string Body, System.Web.Mail.MailFormat Format) { System.Web.Mail.MailMessage Mailer = new System.Web.Mail.MailMessage(); ...Show All
Visual Basic Change Location Of Label
How to change the x, y location of a label Thank you ...Show All
Windows Forms Listbox to show options from a related table
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
SQL Server Moving new data into dimension tables automatically using Integration Services
I have an Integration Services package that loads new data into tables that are dimension tables wi my cube. The same situation exists for my fact table. If I perform an "Analysis Services Processing Task" for the dimensions ,cube and measures, will that move the new data into my cube or do I need to perform the "Dimension Processing Destination" data flow task prior to this Is the initial processing task good enough thx, -Marilyn You only need the Analysis Services processing Task! -jamie P.S. The correct nomenclature is the "Dimension Processing Destination" data flow component, not the "Dimension Processing Destination" data flow task. Tasks a ...Show All
.NET Development Serialization : Exposing base class properties
I have the following two classes, class A and class B: [Serializable] public class A { private string one; private string two; public string One { get { return one; } set { one = value; } } public string Two { get { return two; } set { two = value; } } public A() { one = ""; ...Show All
SQL Server Same DB, Different Performance on Different Servers
Hi, We are doing response time testing on our application with SQL Server 2000 SP4. But it is found that a query have different performance on the same DB (restore from the same backup) in different servers. The execution plans are different on the 2 servers. Server A: the execution plan use parallelism with varying response time (from 3 sec to 64 sec). Server B: it is a single thread execution plan with faster response time (about 1 sec). Here is the server configuration: Server A Dell 750, you can access Dell homepage for more detail. CPU – P4 2.8 GHz CPU Memory – 2G Disk – RAID 1 SCSI OS – Windows 2003 Enterprise Edition SP1 Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18: ...Show All
Visual Studio 2008 (Pre-release) WCF and MSMQ Transactional Read-response Applications to support scale-out and clustered queues
Since MSMQ, on WinXP and Win2003, does not support remote transactional reads, does anyone know how best to implement the pattern described in this MSDN link http://msdn.microsoft.com/library/default.asp url=/library/en-us/msmq/html/ff5027bf-1617-4a9d-93dd-805c4164cff5.asp , which provides the same functionality as remote transactional reads Much Thanks, -Paul Thanks for your reply. Unfortunately, the system must launch a very fat client during request processing, using COM to interact with it (and there is simply no other way to achieve what the client requires). This client is brittle and can at times crash for no specific reason. We limit the number of concurrent clients to one per core (its a mem ...Show All
SQL Server Why do I get the following SMTP Email Error in a SSIS Package
I am running a SSIS package under a trusted account and I am running into a problem when I am executing a email task. The error is an operation timeout which was reported in the log. I am using windows authentication on the connection manager. Other email task configured the exact same way run correctly in the same run. Also when I execute task from BIDS the email is sent. Is there a bug in SSIS which would cause this behavior or some kind of exchange server configuration issue Any help would be appreciated. Thanks, Greg ...Show All
Visual C# Inheriting from List<> Fails to Serialize
I am essentially trying to inherit from a List of business objects. As an example see below: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; public class Foo : List<Blah> { public Foo() { } public Foo(string var1, string var2) { _var1 = var1; _var2 = var2; } private string _var1; private string _var2; [XmlElement("Var1")] public string Var1 { get { return _var1; } set { _var1 = valu ...Show All
Windows Forms Populate a tree from data base on form load.
Hi Database Design key(autogenerate) parent child 1 1 11 2 1 12 3 1 13 4 1/11 111 5 1/11 112 6 1/11/111 1111 up to nth level depende upon the user I want to populate the tree on form load,I want the tree in this format. -1(parent node) -11(child of 1) 12(child of 1) - 111 (child of 11) 13 112 1111 and so on Thanks Div ...Show All
Visual Basic [OTP]Controlling Word through VB6
I am creating a document in Word through VB coding and I want to save the document in .rtf format. everything I try just ends up saving in the .doc format. Public wb As Object Set wb = CreateObject("Word.Basic") wb.FileNew "TAS.dot" wb.Insert "Help!" I tried: wb.FileSaveAs "Test.rtf" then this: wb.FileSaveAs "Test.rtf", FileFormat = wdFormatRTF then this: wb.FileSaveAs "Test.rtf", wdFormatRTF nothing seems to work. These forums are for questions regarding .NET programming. VB6 is not supported here. Please see the following links for help: Useful Links Visual Basic 6.0 on MSDN Library Visual Basic 6.0 Help and Support Visual Basic 6 Support on Window ...Show All
SQL Server Help with SQL Query - "The multi-part identifier "alias field Name" could not be bound."
Hi Everyone This is the query and I am getting follwoing error message "The multi-part identifier "InvDate.Account Reference" could not be bound." SELECT MAX ( [DATE NOTE ADDED] ) AS LASTDATE , CC.[COMPANY] , CC.[ACCOUNT REFERENCE] , INVDATE.[LASTORDERDATE] FROM CUSTOMERCONTACTNOTES AS CCN , ( SELECT * FROM CUSTOMER ) AS CC , ( SELECT MAX ( [INVOICE DATE] ) AS LASTORDERDATE , [ACCOUNT REFERENCE] FROM INVOICEDATA GROUP BY [ACCOUNT REFERENCE] ) AS INVDATE WHERE CCN.[COMPANY] = CC.[COMPANY] AND CC.[ACCOUNT REFERENCE] COLLATE SQL_LATIN1_GENERAL_CP1_CI_AS IN ( SELECT DISTINCT ( [ACCOUNT REFERENCE] ) FROM INVOICEDATA ) AND CC.[ACCOUNT REFERENCE] COLLATE SQL_LATIN1 ...Show All
