AndySuwandy's Q&A profile
.NET Development Loading controls with For loop
Hello, Thanks to everyone who is kind enough to answer... Is there any way to load data into controls of a form by a For loop What i mean is: if i have 10 labels, can i load texts from a string array of 10, each string from the array to a corresponding label, by a loop Thank You If you don't want to create the control dynamically. Name each label as dynlabel0 dynlabel1 dynlabel2 ... In you load Dim ctrl As Control For Each ctrl In Controls If ctrl.Name.StartWith("dynlabel") Then ''** ctrl is your label, you coud do Interger.Parse(ctrl.Name.Remove("dynlabel")) to ...Show All
Visual C# How to use switch?
I have the following switch and it's not working. protected void AppendColumns(object sender, GridViewRowEventArgs e) { int i = 0; foreach (GridViewRow gvRow in gdvwScholarList.Rows) { string colText = Convert.ToString(gdvwScholarList.Rows .Cells .Text); switch (colText) { case (colText != " " & colText != "" & i == 1): { gdvwScholarList.Rows .Cells[0].Text = gdvwScholarList.Rows .Cells .Text + " " + gdvwScholarList.Rows .Cells .Text; } break; case (colText != &qu ...Show All
SQL Server How to add SQL statements to the package created by Export Data wizard?
How to add SQl statements to the package created by Export Data wizard I need to add SQL coming from file, the flow would be like this: 1) SQL would drop all objects: (views, tables, stored procedures) etc 2) SQL would create all objects: (views, tables, stored procedures) etc 3) Export Wizard SSIS package would execute Also is there a dynamic way to add more tables do the package once created in SQL database I would like to put the whole task on a scheduler too... RADIOGENERIS wrote: How to add SQl statements to the package created by Export Data wizard I need to add SQL coming from fil ...Show All
Windows Search Technologies Cannot search Chinese characters/words in Outlook message body
It seems WDS (ver. 2.6.5, build 5378) cannot search Chinese characters/words in Outlook message body, but it's able to search Chinese characters/words in subject line. Is this the expected behavior Thanks! BTW, this is the same for MsgFilter also. I'm using Windows 2003 with Asian fonts installed (locale EN_US), Outlook 2003. Here is a sample message: (when I search "中文", I can find the message, but when I search " 公司 ", there is nothing returned.) SUBJECT: This subject has Chinese subject 中文 BODY: 11月30日消息 市 研公司Gartner在 未 展 ,5年 IT 人士的需求 下降40%左右。 Hi George, It so ...Show All
Visual Studio Express Editions No titlebar?
Hello Is there a way to make it so that there is no blue titlebar I want to make something like this: http://ww2.nero.com/nero6/img/nero_startsmart_2_big_eng.jpg where the minimize, maximize, and close buttons are not in the boring microsoft's blue title bar... Does anyone know how to do this Thank You very much Keehun Nam Hi, Just set the form's controlbox property to false and set the form's text property to an empty string in the design time. cheers, Paul June A. Domag ...Show All
Windows Forms DoDragDrop on TreeView Problem
Please Help. I'd like the user of my tree view to be able to do two things: 1. Drag and drop 2. Select a node by clicking it. Using the following code... Private Sub frmTestTree_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TreeView1.Nodes.Add("Node One") TreeView1. ...Show All
Windows Forms Painting over a RichTextBox
I derived a control from RichTextBox. What I want to do is, doing additional painting after the system has drawn the content of the RichTextBox. My first trail you can see below. The problem was, that the OnPaint never got called. Now I added SetStyle(ControlStyles::UserPaint, true ); to the constructor with the result, that I can paint, but the system doesn't draw it's part (the text) anymore. Is there something like a "AfterPaint" function, that gets called after the system has finished text rendering #pragma once using namespace System; using namespace System::ComponentModel; using namespace ...Show All
Visual Studio Express Editions help! can not create any project in visual c++ 2005 express edition
when i try to generate any project in visual c++ 2005 express edition, it always told me that the operation could not be completed and can not find the required module! Lejing wrote: when i try to generate any project in visual c++ 2005 express edition, it always told me that the operation could not be completed and can not find the required module! Please. This is not enough information to visualize what is happening. What operation , please Are you using Menu selection New | Project | ... Or is it later - orcmid ...Show All
Visual Studio Express Editions Prerequisite installation options in Visual Studio 2005
How does one update the prerequisite installation options in Visual Studio 2005 For example, how does one specify a new version of SQL Server 2005 or specify service pack 1 as a checkbox prerequisite I am not installing from the Internet. Are you talking about the Visual Studio application or one that you have developed, It if is the Visual Studio system then you should post a message to the Feedback Site. If this is for your own application that you have developed you should post your question in the below group. ClickOnce and Setup & Deployment Projects Discuss the ClickOnce deploym ...Show All
Visual Basic Is there a way?
Is there a way to Populate a menu at runtime with Data from a Sql database It's definitly possible. I don't think you can databind, but you can most definitly do it through a loop. Use a For Each to loop through the rows in your dataset that you want to add, then create the menu item and add it. I don't know how efficient it would be, and how many, or how complex the menus you want to create are, but this will work for a simple set of popup, or drop down menus. ...Show All
Visual Studio Tools for Office Trust Warning
I had already posted this in my Trust Load Customization post. I've tried so many things my head is spinning. I need more help and wasn't sure exactly where to post this follow up in my original post. I'm getting a warning that says "The assembly must be granted full trust before the solution will run. For more information see Help." It seems that the trust issue relates to the spreadsheet and not to my vb.net code (I think). The application runs in debug mode from within VS. It also runs if I run the Excel file that lives in the Debug folder. Since I've barely started it, I haven't tried to make a deployable application. ...Show All
Visual Studio Team System Reduce the size of TRX files - limit logging?
hi all, Hoping someone can advise me on how to reduce the amount of logging that is sent to the TRX file. I have a scenario where I am (trying) to test about 3500 URL's (and their dependent requests). The information that I would like to know is; 1. If the URL fails. 2. If any of the dependant requests fail. This is all the information that I need. I am finding that at about 1000 requests the logfile becomes unmanageable and VS aborts the test. The log file at this point is over 500Mb. Q: Is there a way to just record m_requestUrl and m_statusCodeString for all requests and dependant requests I have created an XSL which pulls th ...Show All
Windows Forms can't save collection in disgner
Sorry, again a 'stupid' question I'm playing a bit with the collectioneditor and got it working (sort of) until i Rebuild . the collection is cleared after rebuild. I'm puzzled here is the code for the component i'm try 2 build : Imports System.Windows.Forms Imports System.Windows.Forms.Design Imports System.ComponentModel Imports System.ComponentModel.Design Imports System.Drawing.Design Imports System.Collections Public& ...Show All
Windows Forms Design-time functionality at run-time
I am trying to find a way to paint a selection border around a control whenever it is active at run-time. I would like the border to be as similar as possible to the selection frame that is displayed around a selected control at design-time. The way I am currently doing this is by hooking the MouseDown event of the control. In&n ...Show All
.NET Development xml to sql server using .net 2.0
This article uses Xml2OleDb to insert xml into sql server, http://aspalliance.com/477. What classes would be used in .net 2.0 to perform the same task. Thanks Danny you can use the exact same classes unless you want to save XML directly into, say, a field of xml data type in SQL Server 2005 also look into SqlXml, for example, see SQLXML 4.0 Programming http://msdn2.microsoft.com/library/ms171779.aspx Using SQLXml Managed Classes http://www.eggheadcafe.com/articles/20020626.asp ...Show All
