Soapo's Q&A profile
Visual Basic Using Enter To Tab Forward Through User Entry Fields
Does anyone know how to incorporate the enter key to tab through entry fields instead of using buttons My code is below. I want the user to press the enter key to move from one field to the next and at the same time, have the code perform the same action(s) as if it were a button handle event. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim file As System.IO.StreamWriter Dim aString As String = CStr (TextBox1.Text) Dim TestLen1 As Integer = Len(aString) If TestLen1 <> 5 Then aString = "a c" file = My .Computer.FileSystem.OpenTextFileWriter( "C\:record.tx ...Show All
Visual Studio Express Editions Installation error
I have tried to instal C# express 2005 online and from cd and it doesn't work. It has to shut down the installation beause of the error it has nothing but in C:\DOCUME~1\Robert\LOCALS~1\Temp\VSW 2 \VSSWMSIFailInfo.txt it has the following ====================== MSI CA LOG ENTRY INFO: ====================== 12/19/06 14:33:51 DDSet_Entry: CHelpCrypto constructor 12/19/06 14:33:51 DDSet_Exit: CHelpCrypto destructor 12/19/06 14:33:52 DDSet_Status: BeginTransaction()->IHxRegisterSession::CreateTransaction() returned 80004005. 12/19/06 14:33:52 DDSet_Status: BeginTransaction()->Registration session {7E7D7935-B0C8-4032-80BA-2CDC9E43C3B8} was *not* created. 12/19/06 14:33:52 DDSet_Exit: CM ...Show All
.NET Development Short Cut to my application running in the System tray
Hi I have an VB.Net application running in the System Tray and I have a function in the appln. I need to invoke the function irrespective of the application which is active by assigning a global shortcut or a hotcut key. How to assign a global shortcut or a hotcut key. Hi, Here is the code. This is a simple application which takes text from clipboard and writes it to the notepad. Process application does, Get text from clipboard Start notepad process Get the window handle of notepad Get the handle of editable area from notepad Write the text to the notepad which we copied from clipboard BEFORE YOU START THE FOLLOWING APPLICATION, COPY SOME TEXT FROM ANYWHERE SO CLIPBOARD WILL HAVE SOME DATA THAT OUR APPL ...Show All
Visual C++ how do i turn off translation LF to CRLF in Edit Control (or Rich Edit Control)?
when i see Some string including Line feed, Notepad show linefeed as any strange character. and then i copied the string and Paste it to EditControl. when i call GetTextWindow in my application, charcter LF is converted CRLF. how can i prevent this translating wrong info... just normal EditControl works correctly. but RichEdit Control expands LF to CRLF. ...Show All
Windows Forms Locating a program's installation folder
I have an application that will be used by other applications installed on the client machine if the other applications see that my application is installed. Currently, during installation, my application places a value in the registry that points to the location of my application's executable. When another application wishes to run my application, it can look for this value to locate the executable. This method is all fine and good for now, but we're trying to minimize how much our applications write to the registry. I'm hoping to find a method by which another application could discover the installation folder of my application, perhaps through entries created by Windows Installer during the install process. Unfortunately, I have been un ...Show All
Windows Forms How to implement VBControlExtender's ObjectEvent in vb.net
Hi, I am currently porting a vb6 application to vb.net and facing this issue. we have lots of user controls and loading one of the control at runtime. Using VBControlExtender control ObjectEvent we are able capture all the event raised by any of the user control. Based on the EventInfo argument (of ObjectEvent), we able to find which event had fired and do the business logic accordingly. Now how can i achive similar functionality in vb.net. I thought of using System.Reflection.EventInfo.AddEventHandler but the EventInfo is a MustInherit class. Thanks in advance. Murugan.G ...Show All
.NET Development WebService - Passing page as a byref parameter
As far as I could tell this is the best forum...apologies if it isn't. It is our task to dynamically change label and link texts on web pages based on login info. We must do this for several hundred pages every time they load. It seems a web service would be the most centralized method of accomplishing this, unless there's a tweak for global.aspx. The method I would like to use is to pass the page into the service by reference, change the texts inside the service, then return the page. My question is, how can I pass an aspx page by reference into a web service (or accomplish anything similar) If I need to elaborate more please let me know. Sadly enough I am too new to adequately answer that que ...Show All
Visual Studio 2008 (Pre-release) XAML and DataBinding for a CLR Object
i want to programm an avalon-xaml based application. there in i wrote an own clr-class like counter (value, countup(), and countdown()) ... so far very simple. so how can i: 1. instanciate an object in the XAML file for: a. binding the value to a textblock.text property in the XAML file b. actualizing this binding realtime by changing the value in this object 2. access this object (defined in XAML) from the codebehind file by something like ticker.countup() ; the scenario is to make changes to the object in the codebehind and to actualize it in an XAML object like <textblock/>. the binding to this value should be realtime and defined in the XAML. so how to do please help me! thanks so far for your answer .. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Health Bars
Hey, I have looked at the spacewar game template, and I noticed their hp bars are just 5 blocks. How can I make a bar like the shield bar in halo 2 A sliding bar Ah, yup... that would be 2 :) The version I was envisioning was a little more complex visually. This one doesn't have a 'bottom' or 'top'. It's just 2 separate bars. It's been a while since I played Halo. You have the concept with your 'batch.Draw(shieldbar, ...)' though :) Jason ...Show All
SQL Server Help - Unusual Problem
First, I can not change the data structure. I have a table called codesubsections that has an identity as the primary key. When a new codesubsection is entered the user can mark a formercodesubsection as a parent. The problem is that I need to be able to evaluate the table and identify the lowest CodeSubsectionID for a given row. so for instant when I look at row 7 it's text is 17 B p2 but because the CodeSubSectionID is not null I need to look at 6 then 5 and since 5 is null I need the text for 5,6,7 all to be 16:1 B. The only solution I have had any kind of luck with is to do a self join 3 times and coalesce the values up. See the code at the end. I am at my wits end, I had it working the other way assuming that the CodeSubSectionID wa ...Show All
Smart Device Development Notification and System.Threading.Timer
I am using System.Threading.Timer to check for application updates in conjunction with Microsoft.WindowsCE.Forms.Notification to display an alert when an update is available. I can get each working fine independently of one another, but when trying to show a notification from within the timer thread I get a beep and flashing light but can not see the notification itself. If I terminate the application through Visual Studio I then see the notification, so it looks like it's being displayed - but behind the form that is currently open. Anyone have any suggestions on how to bring a notification to the front I've tried executing the .SendToBack() method on the form that is currently open, but get an unspecified error message. The problem do ...Show All
.NET Development How to set registry key permission in .NET Framework 1.1
Hi, all I noticed that http://msdn2.microsoft.com/en-us/library/microsoft.win32.registrykey.setaccesscontrol.aspx was only supported .NET 2.0 So, how do I set registry key permission using .NET Framework 1.1 Thanks in advance! Ming. I think you are looking for the RegistryPermissions class ...Show All
.NET Development Object dieing after some idle time
Hi, Need some help ragarding remoting . I have an application developed using remoting scneorio. I am using SAO singleton objects. My application is working fine. But when i left the application idle on client sie, (user machine and not server machine) say some half an hour, ,y application returns the error. I found that object is dieing after some idle period. Any guess why this is happening Thanks Vyanki Hi, we have not set any times for object lifetime we are using public override object InitializeLifetimeService() { return null; } which will set the lifetime to infinite. Thanks & Rgds Vyankatesh ...Show All
SQL Server Cannot Deploy Report - Please Help
I am trying to set up Reporting Services. I am using SQL Server 2005 on Win XP Pro. I installed service pack 2 for SQL Server 2005. The database looks to be set up in the configuration manager. When I try to deploy the report I get the following message: A connection could not be made to the report server http://localhost/ReportServer When trying to open the ReportServer folder in IIS I get another message: An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help Exception has been thrown by the target of an invocation. Could not load file or assembly 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies ...Show All
Visual C# Insert Bitmap into a Word Document into a thread
Hi everybody, I use a ' BackgroundWorker ' to generate a word document in background. I want to insert a bitmap which is generate on the fly. If I use this method (that work outside the thread) : System.Drawing.Bitmap bitmap; [..] System.Windows.Forms.Clipboard.SetDataObject(bitmap); [..] Microsoft.Office.Interop.Word.Range range; [..] range.Paste(); I have an error : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. How can I set the backgroundworker to be 'STA' Is there an another way to proceed Thanks by advance. Greg in your program.cs file, make sure that static void Main() has [STATh ...Show All
