LucianBordea's Q&A profile
Visual Studio Express Editions Project help needed
Hi people I have this project that I have being messing around with and I am trying to display the Randomgenerator in two labels any ideas Private Sub displayButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles displayButton.Click 'generates and displays six unique random 'numbers 1 through 6 Dim numbers(1) As Integer Dim subscript As Integer Dim searchSubscript As Integer Dim randomNum As Integer Dim randomGenerator As New Random Dim isFound As Boolean 'gernerate the first random number,and 'store it in the first array element numbers(0) = randomGenerator.Next(1, 6) 'fillremaining array elements with un ...Show All
Windows Forms Alter the Close_button event on form
Hi, I want when the user clicks on the Closing button(red cross) of my form, that my Form isn't closed but made unvisible(frm.visible=false). Is this possible and how would this be done Grtz Annihil8 you can set e.Cancel = false then make the form not visible: //FormClosing event e.Cancel = false; this.visible = false; does this help ...Show All
Visual Basic Drilling From Summary Reports To Detail Reports
I am working with a oracle 91 data base. I have 2 tables, one table is a summary table the other table is a detail table. I am trying to create a drill thru report from the summary to the detail. The common field in both tables is the phone number. Do you have any examples of how to do this. I have been using the help, I must be missing something as it is not working. I need a complete example. Thank you for all your help. I have been working on this for 2 weeks. Bigfoot john bracken wrote: I am working with a oracle 91 data base. I have 2 tables, one table is a summary table the other table is a detail table. I am trying to create a drill thru report from the summary to the detail. Th ...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
Game Technologies: DirectX, XNA, XACT, etc. A tutorial would be nice...
Hello all, I was wondering if anyone could point me in the direction of a tutorial of a simple game, like tetris, breakout, space wars, asteroids, etc., that goes through, step by step, explains how "we" do this and why "we" did this. A lot of the things I read, I see such things as, "You should start simple, like a tetris style game," yet they never point you in the direction of where you might find out how to make a tetris game. From a complete noobs point of view, we're completely clueless at what we're looking at on screen, just staring at the code, trying to figure out what to do. Anyway, if anyone could help, that would be fan-tastic and much appreciated. Thanks! ...Show All
Windows Forms Leftover pixels From DrawReversibleLine
I am creating a drawing program... When I draw a line I am capturing the mouse, and drawing a reversible line, which I store and redraw (to erase the line) if the mouse moves to another point. The last line will be the the one I capture on mouse up. This works, except there are a few remaining jagged edges created during the process. They all disappear after mouse up, but they are anoying anyway. Does anyone know how to fix this When I have done this in the past against the Win32 API, it was very clean, and I am looking for that cleanliness. Do I have to use the API calls Thanks, Bob Do you know if this works correctly in Vista RC1 I have a similar program, in C# ...Show All
Software Development for Windows Vista "Publisher Not Specified" on Autoplay of application
I'm trying to get my application to begin the installation on autoplay rather than bring up the option for the Run launcher.exe to be executed. This seems to be tied to the fact that the "Publisher is not specified" line in the .exe icon box. Can this be resolved by signing the app in install shield or another installer Sorry for creating a new thread for this but the thread i wanted to post in was locked. Any help is greatly appreciated. Hello John.Q.Francis, I have not heard of any signing requirements to just have the application launch for the autorun feature. Here is the documentation on how to use the autorun feature: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/prog ...Show All
.NET Development Using windows Service How to shut down a n/w PC
Dear all, I have created a windows services which is installed in client machine which is on network.how i can shutdown the pc using my windows service Awaiting response. Neeraj You might able to call shutdown command. Note: This depends on access rights. Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername ] [-t xx] [-c "comment"] [-d up:xx:yy] No args Display this message (same as - ) -i Dis ...Show All
Windows Forms How can extract an object from form.designer by string name? (for examble a buttton dropped on)
i would estract an object from my form, for example a button by name. I drop a button in a form, named button1: and try: Dim o As Object = CallByName( Me , "Button1" , CallType.Get) but don't work because he said that error message: "Public member 'Button1' on type 'Form1' not found" someone have any solution thank's Why are you trying to access the button using CallByName If you added the button in the designer, you already have a reference to it; just use Me.button1. Unless you are trying to do something more dynamic and your first post was just an example, in which case please provide more details of what you are actually going for. ...Show All
Microsoft ISV Community Center Forums searching and copying text in drawing layer?
greeting, i'm looking for some pointers on how to go about searching and manipulating text in the drawing layer... we use the drawing layer for diagrams. we need to: 1- search and replace strings in the drawing layer; 2- copy strings from the drawing layer into the cells in a spreadsheet... i've searched some of these web sites and found little on this topic... preferably, i'd like to get a script that can do this, or alternately get enough information to write a script to accomplish these tasks... i have excel version 11 on osx 10.4- thanks for any advice anyone can offer- ...Show All
Visual Studio C# or C++ ?
Dear forum, I don't know which language to choose between C# and C++. C# looks easier but can you do everything in it What about performance And will C++ still be supported in the future Thanks for any insights and best wishes for the new year Hi, C# is indeed easier to use. The main difference between the two is that you can write unmanaged code with C++ what is something that you can't do with C#. Another thing is that you can find a lot more info on programming C# then programming C++ .NET. For real performance critical applications like games etc, I would suggest C++, otherwise C# is a better choice. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Per ...Show All
Software Development for Windows Vista Application Comp
Hi All, Following are few queries in terms of Application Compliance. 1.Can any one list the best practice that needs to be followed to achive Applicaiton Compliance. 2. I want to deploy a web based application to vista platform and apply Application Compliance to the same. Also what are the detail steps and process for applying application compliance to a web based applicaiton. Regards, Ajay kumar Hi Oliver, Thanks for your valuable reply. Another one question in terms of sql server 1. The previously developed application (either web or windows) is using sql server 2000 as backend database for storing the data. Now this application needs to be ported to Vista platform. so what is possible answer for the same ...Show All
Software Development for Windows Vista Error writing to Application Event Log
The following code runs fine under WinXP, but fails under Vista Beta 2 (build 5384) on the WriteEntry call with the error "The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security" public static void LogException(Exception ex) { using (EventLog eventLog = new EventLog()) { eventLog.Source = PS4Strings.ProductFullName; eventLog.Log = "Application"; eventLog.WriteEntry(ExceptionToText(ex), EventLogEntryType.Error); } } Is there a change I need to make to my code to make this work under Vista Any help would be appreciated. Thanks Personally, I find it quite silly that to create an event source for one Event l ...Show All
Visual Studio Solution/project directory structure problems
In short, what I want to accomplish is the following structure, both on disk and within VSS: d:\projects\ -> Solutions\ -> SolutionA\SolutionA.sln -> SolutionB\SolutionB.sln -> Webs\ -> Web1\ -> Web2\ -> ClassLibs\ -> ClassLibX\ -> ClassLibY\ The whole point being that the total number of projects is so high that I want to have separate solution files for smaller parts of the complete solution, all the while referencing both class lib and web projects that are common to all solutions. For this reason I'm not especially fond of VS/VSS forcing me to have them all directly beneath the solution folder. All I want is these programs to behave, and store whatever structure I tell them to. ...Show All
.NET Development IIS defult configure
Hi, I am a ASP.Net user, and with all of my stupidity I tried to change the IIS configre, didnt backed it up and now I cant find the "Defult" butten, I tried to remove it and add it again but it didnt restarted it. What shot i do Thank you all, Nadav Levintov. The forums at http://forums.iis.net might be better able to help. Thanks. ...Show All
