Beski's Q&A profile
Visual Studio Express Editions updating text in a richtextbox using a button and dropdown
im new to vb as you can probably tell by my question. im trying to make a program that when you select an item in the dropbox information is displayed in the richtextbox. i have that part don but when i select a new item it just adds the information from that item in the richtextbox along with the old info. how to i get it to replace the old selection with the new one any help will be greatly appreciated, thank you Public Class Form1 Private Sub ComboBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged End Sub Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As Sys ...Show All
Windows Forms Master with multiple detail records displayed in form view
I am using Visual Studio 2005 and can anyone help me jumpstart a development of a master detail form with detail records displayed in form view, instead of the datagrid view (like continuous form in MS Access form) without using third party activeX Control. Some refer to it as it data repeater. Some articles advise to use UserControl. But I am new to Visual Studio 2005 and would appreciate any assistance. you can instead of a grid create a form view by going to 'show datasources' select the table you want , a drop down will appear on the right of the table name, select details. on a form drag and drop the table. .. thats the start.. ...Show All
Visual Studio Express Editions Windows Position problems
How can i get this to work, i wanted to make my window to save its position on screen everytime i move it, and then on load recall that and place the window where it used to be. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Location.X = My .Settings.PositionX Me .Location.Y = My .Settings.PositionX End Sub You don't even need to perform the Save method: the project properties has an option to save settings on shutdown. The only thing additional that I'd do is check that the form is positioned on a visible screen (when the form is shown) - it's darned annoying when it shows up off-screen. ...Show All
Architecture Thin client and smart client
Continuing a thread I have posted somewhere around here (but could not find it), why do people usually say a smart client is able to work offline, and a thin client only works if connected to Internet. I consider this not true, since a thin client may be connected to a local Intranet. Then, it does not need to be in Internet, the connection will only need to be accessing the local BD inside the network, right Hi, The easiest way to think of a smart client is that it must always be available, even in a plane in the middle of the Pacific. For more information on thin versus smart clients consult the excellent Smart Client Architecture and Design Guide: http://www.microsoft.com/downloads/details.aspx familyid=8EC600BD-A2E5-44AC-9A ...Show All
.NET Development Bug in Async web requests
Hi, When i create a HttpWebRequest and use it's BeginGetResponse method to asynchronously connect to my targeted webserver, a synchronous DNS lookup (or something synchronous anyway) is performed before the operation is dispatched to a different thread. In effect this means that my main thread can hang for up to 10 seconds while the DNS is trying to be resolved. If i try to dispatch 3 requests one after another that'd be 30 seconds of blocking the main thread. Thanks, Alan. You're in the wrong forum. This was already addressed in the networking forum (see the post marked as answer): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=678862&SiteID=1 ...Show All
SQL Server Find within report will not search backward
I have used SSRS since the original SQL 2000 beta, so am pretty experienced with it. I think there may be a bug in V2.0 (2005) that did not exist in V1.0: Have just started cutting over my V1.0 reports to V2.0 (2005). One of my users today showed me that the "Find" feature within a V2.0 report searches forward fine. In one case, a three page report, it found the first item on the third page. However, when the "Find" feature was used from that point to get something on the first page, a message was received that it could not find the item. After manually navigating back to page one, and re-entering the same data in "Find" from there, it found the data with no problem on page one. Has anyone else seen t ...Show All
Visual C++ ActiveX DLL project
Which version of Visual Studio 2005 have a "ActiveX DLL projcet" Is there in VS 2005 Standard Editoin Zorba29 in VS 2005; this time around... you should use the ATL project types or MFC to create ActiveX dll's. or you can just start with win32 dll and work your way through... but you should know what you are doing... ...Show All
Windows Forms Problem in DrawReversibleLine in OnPaint() (C# 2.0)
Hello, I read article on drawing rubber band lines and its of great help Drawing Ruber-Band Lines using the .net framework Feb 17 2004 But i am facing a problem in OnPaint method explained below. Currently i am working on Graphics application where i need to have CrossHairs for my application which needs to be drawn on panel. So i decided to use to DrawReversibleLine() method and it worked well for moving crosshairs (vertical/horizontal guide lines), but the problem is it only appears when i do mousedown or mousemove. But i also want to display crosshair in default mode too. For this i wrote the code to draw crosshairs in overridden OnPaint() method, again used DrawReversibleLine() in OnPaint() and to my surprise i dont see any cro ...Show All
Visual C# How to hide the first form when the application starts
I have an application with a form, with two text boxes as an input of a username and a password. I would like to do that, if the user check a checkbox called "Remember me", at the start, the form isn't shown, but only the systray icon. I got the systray icon to work correctly, but i can't hide the form when the application starts. I tried to associate at the Form_Load event the code this.hide() or this.visible=false, but nothing, the form is still here. Can you help me qmatteoq wrote: my problem is that, if i choose to save username and password and do the autologin, i want the Form1 hidden. I tried to associate the code this.Hide() to the event "Form Load", but it doesn't work. Form1 is shown every time the appl ...Show All
Visual Basic Saveing Added Data In an SQL Database
Hello, I am currently developing an application which needs to go through a sequential text file and store data into an SQL Database. I have everything working except for that any data that is read into the Table is lost when the Application is ended. What do I need to do to Save the data to the database p ermanently ahmedilyas, Thanks for all the help, however, as far as I know you do not have to implement all of the command methods when you are using a TableAdapter, please correct me if I am wrong. Below is the working code for the class. Thanks again for all the help you really got me out of a bind. Private Sub dlgUpdate_Shown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shown Dim Lin ...Show All
SQL Server using 32 bit sql server for disaster recovery of 64 bit prod cluster
does anyone know of any potential issues of using a 32 bit sql server 2005 instance used for disaster recovery of a 64 bit sql 2005 cluster thanks Can you explain a bit more on what you want to do between these 2 bit editions. If you are using x64 bit cluster then make sure to use similar tools & edition in order to any mismatch of tools in case of any DR process. ...Show All
.NET Development System.IO question....
How can I make this work <code> if (File.Exists(@"http:\\anIpAddress\myfs\test.txt")) label1.Text = "Works!"; else label1.Text = "Nope!"; </code> I need to use the System.IO methods on files on a server that I access by ip address. If I run this code I get a 'Nope!' every time, but if I navigate in a browser to http:\\anIpAddress\myfs\test.txt it takes me to it just fine. File Sharing is turned on... Thanks! That's right, the System.IO does not support accessing webfiles directly, what you need to do instead is either user FtpWebRequest/Response in .NET 2.0 or the WebClient classes to access the files on a web server or some server on a different IP outside your network (External ...Show All
Visual Studio Integrating MSHelp 2.0 (HxS) file with Visual Studio 2005 Help
I am a software engineer working for NCR. I have being tasked with integrating our application's help content with Visual Studio 2005 Beta2. I have created the help content using Component One and result is that I have a MSHELP 2.0 file, named for example MyApp.HxS. I have used Visual Studio's integration Wizard in order to integrate this help with Visual Studio 2003- works fine (see "Creating a Help Collection Using the Help Integration Wizard Beta"). Now, in Visual Studio 2005, I have created a Windows Install program (MyAppCollection.msi) by creating a new Windows Project (select New Project\Other Project Types\Help Workshop\New Help Project). This creates an msi install program fine. I have added my HxS file to this install program ...Show All
Visual C# Many a C# Question
Hi, I've got a few questions relating to C# (Forms & Code) and am hoping that someone could please help. If you do, it'll be much appreciated. Is it possible to add tabs (like MS VS does) when I want to make a new thing If so, what do I do Is is possible, to add non-existant programs to a menu after they have been installed on a computer (like MS Windows Start Menu etc. or Internet Explorer) If so, what do I do When printing with web browsers, is it possible to NOT use the image document user (like when using IE) If so, what do I do Is it posssible to ban websites using web browsers If so, what do I do Is it possible to have a loading bar when a web browser is loading or if something is printing If so, what do I do ...Show All
Visual Studio Project.Build (string[] targetNames, IDictionary targetOutputs)
This code isn't working as I expected. Actually it doesn't write anything. This test is simple form of full test. In full test I used my own task that had [Output] attribute on property used for output. It didn't change anything. Engine engine; Project project; IDictionary hashtable = new Hashtable (); string documentString = @" <Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> <Target Name='Main'> <Message Text='Text' > <Output ItemName='Item' TaskParameter='Text' /> </Message> </Target> </Project> "; engine = new Engine (Consts.BinPath); project = engine.Cr ...Show All
