Andrei Asayonak's Q&A profile
Windows Forms Operating on imported controls from another Form
hi, i'm new to visual studio .NET (i'm coding in C# 2005 express) I've one MAIN form, with a menu and a panel In this "mainForm.panel", i import the controls present of a different form at run-time. AnotherForm anotherForm = new AnotherForm (); this .panel.Controls.Clear(); anotherForm.Controls.CopyTo(arrayControlli, 0); this .panel.Controls.AddRange(arrayControlli); how can I refer to that controls at d ...Show All
Software Development for Windows Vista Notification on Windows Text change
Hello, I have a question in SDK windows programming. I have a window control, implemented as an editable control for user to enter text. User can add text in the window control either by typing through keypad or copy/paste using mouse. I call GetWindowText() to read text from the control. I want to display a message while user is entering text or copying a value, if the text exceeds a certain length. I am aware that I can trap keyboard ...Show All
.NET Development Accessdatasource query builder error
Hi, When I hit the query builder button in de configure data source window of the accessdatasource control ik get the following error message : "object reference not set to an instance of an object". I use VS 2005 with sql express. Someone got an idea Hello people, I have the same problem, how can a fix this problem I really need this solution. Thanks for atention. Rudolfh Bantim ...Show All
Visual Studio Team System Team Explorer Stand-alone
Hi Maybe a silly question, but I can’t figure out how to start Team Explorer in stand-alone mode. Thanks Yeah, we don't have as much on the portal as we'd like. You actually can write reports that display work items and there is a web view for work items and change sets. For example when you get a checkin email you'll notice that there are links to the changeset, files and work items that all rende ...Show All
Visual Basic Change one field in a table
I've written a program that reads a comma delimited text file into an SQL Server table. I have more than two hundred such files with literally hundreds of thousands of rows of data. Unfortunately, the existing time data is in the wrong format (e.g. 0350 instead of 03:50. How can I read, each record, change that one field and move on to the next I know there are Datasets and BindingNavigators available. I have read the help files and online docs ...Show All
.NET Development C# Apps Server that Select From SQL Server 2000
Hi, I'll like to program a C# Application Server that constantly polls the SQL Server 2000 for data. For example, I've a table called A in SQL Server 2000 that's constantly being inserted. My App Server will do a Select * from A as a string of data and then process the it. Is there any similar template that you've come accross Or can anyone enlighten me TIA. Hi, How much is it consuming in mega ...Show All
Windows Forms Can't tick datagridviewcheckboxcolumn
hi, using vs2005, i've created a winform app that has a DGV on it. I would like to display some data from a dataTable I created. Columns were created with DataGridTableStyle and DataGridTextBoxColumn. Another column I'm using DataGridViewCheckBoxColumn to add a column of checkboxes. This DGV renders well with all data and checkbox column. The problem with it is those checkboxes are visible but I just can't check/tick anywhere inside t ...Show All
Visual Basic Address Bar Problem (Possible Solution)
Hello everyone, I'm still working on this browser of mine and What I'm trying to do I thought would have been a very simple thing but as usual, it's just turning out to be a big frustration. Especially when you're a newbbie. I'm using the AxWebBrowser on a form in VS 2003 to create this browser. The things that I've done so far are working fine. What I need to do now is make the TextBox I'm using as the Address bar change its text accordin ...Show All
Windows Forms Querybuilder for tableadapter
I'am using visual studio 2005 and i've noticed that everything about datagrid has changed. I want to filter on a datagrid zo there are 2 textboxes in which you can put a name and a city. Now i want that the datagrid is loaded with the items in the db which are Like the info in the textboxes You can add a query but i don't know how you can put a variabele in the query. If i built the query like this: SELECT Name, City FROM tblClien ...Show All
Visual C++ mfc : loading a jpeg - 2 questions
hi . i have a simple question . i am loading a bmp into my mfc application, using the following piece of code : CPaintDC dc( this ); CPen PenGreen; PenGreen.CreatePen(PS_SOLID, 2, RGB(0, 255, 0)); dc.SelectObject(&PenGreen); CRect Recto; // Retrive the size of the drawing area GetClientRect(&Recto); CDC dcMem; dcMem.CreateCompatibleDC(&dc); CBitmap bitmap; BOOL tempboo1 = bitmap.LoadBitmap(IDB_BITMAP1); CBitmap* pOldBitmap ...Show All
.NET Development Why doesn't this work?
Create a console app, add an App.Config, add this element: <connectionStrings> <add name="test" connectionString="string in config" providerName="" /> </connectionStrings> // console app using System; using System.Configuration; // add reference namespace ConsoleApplication1 { class Program { static void Main( string[] args ) { ConnectionStringSettings css = ConfigurationManager.Connectio ...Show All
Windows Forms dragging only the outline of a form
how do i code my forms so that only a thin outline of the form is visable during the drag of the form; the form repaints (fills in) when the drag has been completed Great work! I found a few things in the code h ...Show All
Visual C# base.onPaint(e)
could you describe base.onPaint(e) funtions can I draw before or after it Thanks for help Hi base.onPaint(e) will Call the base paint method call the base class's OnPaint method, so that registered delegates receive the event. then you decide when to call base.Onpaint( e ) event - thanks ...Show All
SQL Server How to update in ole db destination
How can I update records in the destination table. Like how can I specify that......if the record doesn't exists then insert it.....or if the record is updated then update it (based on some field)......This functionality is available in Informatica and IBI Amarpreet wrote: How can I update records in the destination table. Like how can I specify that......if the record doesn't exists then insert it ...Show All
Visual Studio Express Editions changes not recognized till exit and reopen.
i've just installed visual studio 2005 web edition, and i'm going through the guided tour. And i admit that i've never used visual studio before. I'm having an annoying problem. when i make changes to a page in my project, and save the changes are not being recognized when i hit f5 and run. If i close the project and re open and hit f5 the changes are recognized. What's up with that Hi R ...Show All
