Corres's Q&A profile
Windows Forms Set focus to textbox after form activated.
I have a mult. line comment textbox, I want to set the edit position to the end of the textbox after the form is activated. Currently, I only set the txtComment.Focus(), what it does is highlight all th text in the comment textbox. Which doesn't look good, it should have the edit position at the end of the textbox so that user can edit the comment right the way. Now, they need to click the right/bottom arrow key before they can edit. simple set the SelectionStart of the textbox to the last character position: VB.NET: Me.theTextBox.SelectionStart = Me.theTextBox.Text.Length C#: this.theTextBox.SelectionStart = this.theTextBox.Text.Length; ...Show All
Visual Studio Visual Studio 2005 : Debugger don't start - timeout error
When i try to debug my project (VC++) with F5, i have this error message : Unable to start program c:\dev\... This operation returned because the timeout period expired If i use the Ctrl-F5 (start without debugging), the program correctly start. It seems the VS try to connect to a debug service or something like that Did anyone already have this problem Thanks. If removing csm.dll solves your problem then you are running into a bug in csm.dll when the 'secure refs' DCOM option is enabled. Unless you happen to need secure refs enable for some reason, you can work around this by: Start->Run, enter 'dcomcnfg' Component Services->Computers->My Computer Bring up properties Switch ...Show All
Software Development for Windows Vista Graph Works in GraphEdit but not in Code
I wrote a DVD player application and built the graph manually (didn't use DVDGraphBuilder and its auto graph building feature, just a normal GraphBuilder with manually connected filters). I added the graph created at runtime to the ROT (Runtime Object Table) and then did "Connect to Remote Graph" in graph edit, thereby loading the graph from my code into graph edit. If I play this graph in graph edit, it works perfectly. But in my program the first screen shows up for about 1 second and then it goes white and then the dvd plays with no video, only audio (with the ActiveMovie window continually filled a white screen). I can't figure out why the graph will not keep on rendering the video when running the code, since the exact same graph (sam ...Show All
Visual Basic populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. IGiberson wrote: Also, it is a 3 form application... with different information on all forms... would it be easier to populate the database each time they go through the form or should i just have it get all the info at the end and populate it then it depends entirely on the database and how you want the application to run/how it should run. If the forms are for 3 different tables then I would do the operations on the table on each form, ...Show All
Visual Studio Express Editions Newbie Crisis
I am trying to learn programming using VB express 2005. It is becoming very frustrating especially when you are new and your ideas can not be accomplished. This is what I would like to do an maybe someone could guide me through the steps needed to perform such actions or maybe someone who reads this would like to earn a few bucks teaching me how to program using vb. What I want to do is take my 3 contracts lets call them A,B, and C and create a simply Database for each of these contracts. I would then like to create a single user interface that will allow me to choose the contract group A, B, or C from a combolist and then in a listbox it will display all of the names of my clients in that contract group. Then I could select an ...Show All
Visual Studio VSS Strategy
Hi, I would like to request for some advise. I need to maintain source code in the following environment: development testing production Is there any best practise/well defined strategy that I can learn from ie, should these 3 environments exist with 1 database within the VSS or as 3 separate databases Currently, I am using VSS 6.0 Thank you Danny. You should create them as branches from the start. That is, create just one project called $/Development. Branch it to $/Testing, then branch that to $/Production. When it's time to promote code, use the Merge Branches feature. If you can find Doug Neumann's presentation from TechEd 2005 (google is failing me at the moment), yo ...Show All
.NET Development make an internet dialer in c#.Net
hello all, I am to make an application using C# .Net which automatically dials the isp(internet service provider) and connects to internet. If the internet disconnects, it redial again automatically and reconnect. It is totally new taks as I am working in web page developement and have almost no idea of such tasks. Please help me and assist me. Thanks to all indeed, See this Thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1202600&SiteID=1 I hope this will help. Best Regards, Rizwan aka RizwanSharp ...Show All
Visual C# Loading RTF file into RichTextBox on load
Hello. I am new to C#. I may be particularly dense, because I am stuck on something that I feel should be (and probably is) simple. All I want to do, is create a brand new C# project (which I have done), add a RichTextBox control, and display the contents of an RTF file in the box. It will always be the same file, so I don't need an open file dialog or anything like that. I simply want to load an existing RTF file into the RichTextBox. I did some searching through MSDN and found the LoadFile method. I think part of my problem is that I don't know where to put the code. So I humbly ask that someone please walk me through this. I have named the RTF file "myfile.rtf" and it resides in the same directory as my project. I hav ...Show All
Smart Device Development Provisioning device security
I'm following this How to: http://msdn2.microsoft.com/en-us/library/30dtsstx(VS.80).aspx But I got this error: (0x80070005): Access is denied The device is accessible: I can copy file, debug and install application on it. so why this error Most likely the because RAPI security policy is set to 'restricted'. With this policy enabled device provisioning over RAPI is not possible. Try the 'Device Security Manager PowerToy for Windows Mobile 5.0' http://www.microsoft.com/downloads/details.aspx FamilyID=7e92628c-d587-47e0-908b-09fee6ea517a&displaylang=en This tool may help solving the problem. Michael ...Show All
Windows Forms Readonly PropertyGrid
Hi, either I'm missing something, or it seems to be inordinately difficult to get a (optionally) readonly property grid. I have an application which, using a propertygrid control, displays the properties of my object. Depending upon the user, they might be able to change those properties. My object has collections within it, exposed as properies (such as "Things"). It would seem that, in order to get a read-only version of my grid, all the objects that expose properties have to implement ICustomTypeDescriptor.GetProperties, return a collection of my own derived PropertyDescriptor, which in turn overrides the "readonly" property. Grrr.. That works, but what a lot of code. Things get messy with my collection p ...Show All
SQL Server Get Record Number
I have a table containing 1000 records. I do have a primary key associated with the table. But I want to get the Record Number of each record. Is there a way to get it. That means for first record it should be 1 and so on and so forth. That depends on wheter you are using SQL Server 2005 or any version below. SQL 2k5 introduced the ROWNUMBER() function which will let your create a rownumber according to some rules (only a new number if a grouping changes, etc.) if you are using SQL2k or bwlo you will have to go another way. What are you currently using HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# font smoothing like picassa2??
how can i make the font smoothing like google's picassa 2 ...Show All
SQL Server SQL 2005 database restore
In SQL 2000, When I restore a database backup called "A" as "B" the datafile name and log file will change automatically with the new restored database name , whereas in SQL 2005 the datafile name and log file name remains with backup database name . Will this issue be addressed in next release of service pack. When you restore a database to database , the logical name stay the same as . The physical name can be or or [whatever/where-ever] you want. This is process is exactly the same in sql2k or sql2k5. The syntax for the restore is: restore database from disk='c:\ .bak' with move 'logical_ _data' to 'x:\new_ _or_ _data.mdf', move 'logical_ _log' to 'x:\new_ ...Show All
Visual Studio Team System Linked Servers
Hi all...SQL Semi-Newb here... I am able to create a link to a SQL 2000 Server from a SQL 2005 Server. I am able to use the wizard and T-SQL to create a linked server under the "Linked Server" section. Issue is that when I click on it to view tables and the like there is nothing there. I am really at a loss...I've been all over the net but still haven't found the answer. Any help would be great...Thanks. Jason Ok...I figured this out...hasn't taken me this long...just this long to post it...anyway. What I have found to work is "CROSS JOIN". SELECT * FROM dbo.CAPPQ_DailyPQ CROSS JOIN OASSLDW2.vantive.dbo.BR_INTERFACE AS Interface CROSS JOIN OASS ...Show All
SQL Server Configuration Changes
We store our configurations in a SQL Server configuration table. We have SSIS packages that can be used in different senarios. Each of these senarios requires different configuration values. Is it possible to change the SSIS configuration key used for a package at run time i.e. we'd like to be able to use a job that says run this SSIS package but use configuration values with that name. Ok, I think we have it working. We created a batch file called SSISWithConfiguration.bat: SET env="Configuration";"[dbo].[SSIS Configurations]";%2 dtexec /DTS %1 In the job we just pass the path to the SSIS package and the Configuration filter values we want to use. The environment variables will be separate for each invocat ...Show All
