bhanoji's Q&A profile
Visual Basic In the registery?
I have written a program that requires a password to be created when it is first run, this is then encrypted and stored on the computer C:/Test.txt . the next time the program is run you enter your password, which is encrypted and compared against the encrypted password on file, and if they match you can use the program. I don't think storing the encrypted password as C:/Test.txt is a good thing, so where is the best place to hide it away, and how is it done Any help, advice or interesting articles will be welcome. Thanks NuyN, But to get the file I just use If File.Exists(Passtxt) Then Passtest = True btnPassCreate.Text = "Enter Password" if it doesn't exist then you create a ...Show All
.NET Development security issue
I have a security issue: My program can read files from network in console mode but not in service mode. I know it 's some kind of security issue.But who can give some suggestions about that or a specific link. Thanks in advance In console mode the security context that the application runs under is your userid. In service mode you need to configure the identity that the service will will 'Run As'. You can configure service identities in Computer Management->Services. The identity that you configure in here should have sufficient privileges to access the network resource. You can also configure identities programmatically by customizing the service installer (set account, username and password) o ...Show All
Visual Studio Express Editions Simple Example on Illustrating C# with Javascript
I could use a simple program utilizing Javascript in a C# application. I am trying to learn how to do it just for a minimum amount of time. Doing a simple program. Thanks and more power. Ichi Hi, When you develop a website using asp.net with C# language, you can use Jscript as client script. Here is the tutorials: http://www.w3schools.com/js/default.asp Thanks ...Show All
Visual Studio 2008 (Pre-release) PreviewMouseLeftButtonDown Handled=false
Hello all I am using a TabControl to present data. before navigating to another tab I need to check whether the data in the current Tab was saved or not. I do this like this and it works great. BUT I present the user a yes/no/cancel dialog, asking whether to save the data: Yes - save the data and move on (MoveOn=true) No - do not save the data but move on (moveOn =true) cancel - stay in the current tab (moveOn=false) where e.handled = true (Cancel) it worked great. But when clicking on the yes or no option in which both cases the e.handled = false. The user stays on the current tab and the Selected tab is not shown. Why is that Here is my code /// <summary> /// check whether current tab data has been save ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
Microsoft ISV Community Center Forums Office Word Macro - create file to a specific directory
I have a macro that automaticaly creates a Word file with a prefix sequential number and suffix. It saves the file to the "My Documents" folder by default. I want to be able to save the file to a different location but don't know how to do this. My knowledge of VB is limited. Any help appreciated. Her is the vb code: Sub Report() ' Automatically creates a new document in a sequentially-numbered order ' based upon the stored sequence number in MySeq text file ' Dimension the variables Dim strMyFileName As String ' Open MySeq file and load the sequence number MySeq = System.PrivateProfileString("C:\Documents and Settings\50065a.SCI\Application Data\Microsoft\Word\myseq.txt", _ "", "MySeq" ...Show All
Visual Basic StreamWriter
My program creates configuration files based on database records selected. They are created as txt files. The problem is I want to automaticaly create an archive of the last version of the file created and place it in an archive directory. For example... save to c:/knownfolder/newtextfile.txt archive to c:/knownfolder/ARCHIVE/datenewtextfile.txt The problem is I'm getting an error of: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path " \\myservername\testfolderarchive\ARCHIVE\10302006 newtextfile .txt ". using: Dim sr As StreamWriter = File.CreateText(strFileName) sr.WriteLine("PROGRAM ...Show All
Windows Forms Best way to display large datasets?
I have an application (VB.Net, SQL Server) in which users routinely need to display large amounts of data. We are currently getting the data from the database via stored procedures. The data is then loaded into ADO.Net data tables and data sets. The data is displayed using a DataGridView class which uses a DataView as a binding source. We are finding that when we load large amounts of data into the datagrid there is a considerable delay, which seems to be much larger than a similar amount of data being displayed in Qurey Analyzer. Does anyone have any suggestions for speeding up the data display, or are there better objects to use for displaying large amounts of data TIA Ron L Damiaan has gived some detail advices,i will g ...Show All
.NET Development cannot find al.exe in SDK
Hi I downloaded .net framework SDK v1.1. for getting the localization tools. The al.exe utility that's supposed to get downloaded along with the SDK is missing while other localization tools such as the resgen.exe and winres.exe can be found in the SDK folder. So my question is why is the al.exe utility missing I am having this utility in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 folder . Can you please check this in your system. It should , if it is not then please reinstall .NET Framework 1.1 . Thanks & Regards Vikram ...Show All
Software Development for Windows Vista Vista and XP Styles on non .Net C application
Hi Our application is developed with Visual Studio 2003 in C. It is an unmanaged application and does not use MFC. To get the look and feel of XP on the common controls, buttons etc we used the technique of distributing a seperate manifest file with our application. This worked fine under XP. Under Vista however, two problems occur. 1. If we run the application the fact that the manifest file is there seems to be ignored and the xp style look and feel is not used. 2. If we set the application to run in WIndows XP compatibility mode, the xp styles appear and seem to work ok except for Header controls. On a header control the width of all the columns in the header is initally displayed as 0 so the various sections of the hea ...Show All
Visual Basic TO CREATE A EXE FILE OF VISUAL BASIC EXPRESS 2005 PROJECT
HOW CAN I CREATE A EXE FILE OF MY PROJECT SO THAT IT CAN BE REDISTRIBUTED & RUN WITHOUT VISUAL BASIC ON ANY COMPUTER THAT DO NOT HAVE VISUAL BASIC Hi, No need to make EXE file because it is there in the "Debug" folder but make shur that you test the programe at first and to run it in any pc has no VB installed on it, you need to install "Dot Net Framework 2.0" on that PC and that's all I hope it helps you ...Show All
Visual Studio Express Editions Mouse movement in C#.
How exactly is mouse movement achieved in C# I know that in VB.net, it can be implemented using the gdi32 MouseEvent library, but what I truly need to know is how to achieve it in C# (along with simulated clicks, for macros). how do you mean mouse movement do you mean for example the mouse moving from the current position to say, the left hand side of the screen if this is what you mean, try this: Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y + 10); this will move the mouse from the current position, either way, and add 10 to the co-ordinates Mouse is known as a Cursor when coming to develop with it. To redraw or relocate the mouse, you simply create a new p ...Show All
SQL Server unable to load package
I have created an SSIS package in BI dev studio which i can debug and run fine. I have saved the dtsx file to a production server which calls it using dtexec as part of a batch script (we are migrating from foxpro). I am getting the following error that i dont understand. I dont know if this is relevant but i cant execute packages by double clicking them as DTexecui is not installed (not sure why as i have installed the client tools and integration server). Hardware is Dell poweredge 2850 dual xeon 2gb ram with win 2k sp4 and sql 2005 sp1. Microsoft (R) SQL Server Execute Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 12:29:19 Error: 2006-07-06 12:29:20.75 Cod ...Show All
Visual Studio Express Editions How do I plot a graph (with x and y axis) on my form?
Hi, how do i plot a graph (with x and y-axis) on my form That's really strange because it compiled and ran fine here without a problem. Let me see what happens when I try it again. What object reference is being referred to ...Show All
Windows Forms RichTextbox bold
hey, I am having trubble amkign the text in the richtextbox bold..I used this code: thisrichtextbox.SelectionFont.Bold = true ; but it gives me this error: Property or indexer 'System.Drawing.Font.Bold' cannot be assigned to -- it is read only Thanks:) use the control's font instance instead i.e: this.Font........ would use the current font being applied on the form this.theRTBControl.Font.......would use the current font being used in the RTB Control ...Show All
