jimmy_t's Q&A profile
Visual Basic Measure FPS...
I want to create a program to Measure the FPS of annother program and display the fps into a integer displayed by a label... ...Show All
Windows Forms Console.WriteLine
I forgot how to sent the output to a text file when calling Console.WriteLine. Please advise. Thanks. You can redirect your standard output like so: C:\>MyConsoleApp.Exe >myLog.txt this will redirect any console write or writeline calls to a text file called myLog.txt. You can also use this technique with any other type of console application, not just&nb ...Show All
Visual Basic Where is data grid when creating a Windows Application?
I have posted this on a couple other forums and have not recieved an answer. Anyone here able to point me in the right direction I am trying to create a database Application following a step by step in my text book Programming in Visual basic.net by Bradley/Millspaugh. I am told that in the following step by step tutorial I will create a web application....with only a couple of exceptions the same procedures work for a windows application.. I am trying to do the windows application. I follow the steps beginning the project, setting up the connection adding the cinnection and the data adapter to the form, naming the adapter, ...Show All
SQL Server AMO - Dimension Size?
Hello Folks, I've started to write an AMO application to get information relevant to DBA's out of our SSAS databases. I've successfully got the estimated sizes for Cubes, MeasureGroups and individual partitions nicely listed. However, i'm having trouble because i can't seem to find a property of the Dimension object that will give me the size. The reason i'm doing this is because i've read that you need to watch the size (and memory consumption) of these babies. How do i do this in AMO Or any other means! Many thanks. Kyle (DBA) First, if you aren't already using the AMO browser, then ...Show All
Windows Forms PropertyGrid Property update causes strange scrolling behaviour
Hi. First time poster. I'm using a PropertyGrid to display updating integer property values. The properties have only a get. I have more properties than will will fit in the property grid hence it displays a vertical scroll bar. All the properties have appropriate help text. The application updates the integer values in the class given to the property grid in SelectedObject and then calls the propertygrid Refresh method. It does this once every 5 seconds. The values update as expected. You can select any of the immediately visible rows and the help text displays. You can then scroll down and see any of the off screen properties and the va ...Show All
Visual C# hi
hi , when i use datagrid and double click event how can i choose data from the datagrid that i want thx There are certain values passed when the user double click on a DataGrid (WinForm) private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e) { this.dataGridView1[e.ColumnIndex, e.RowIndex].Value = "ALI"; // By the help of Row/Column Index you can do anything with that Row/Cell } ...Show All
SQL Server Migrating a Legacy Maintenance Plan?
Has anyone been able to migrate a Legacy Maintenance Plan to the Integration Services style I'm using the SQL 2005 RTM, right-clicking the Legacy Maintenance Plan, and selecting "Migrate..." After a few seconds, it presents the error "Input string was not in the correct format. (mscorlib)" The only thing that sticks out in SQL Profiler is this statement: SELECT s.log_shipping AS [LogShipping] FROM msdb.dbo.sysdbmaintplans AS s WHERE (s.plan_name=N'MaintenancePlan1') and this error message: Invalid column name 'log_shipping'. but these happened near the beginning of the trace/action. To the best of my knowledge, there isn't anything ...Show All
Visual C# Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not being picky here, I'll send a screenshot when I get home - it looks quite unproportioned and particularly ugly ;-) I have 1152x864 resolution. I was guessing that it was something to do with the ...Show All
.NET Development Exception Handling DO NOT WORK!! Help Please!@!
Hi. I want that you think with me... When i put a try-catch exception handler block in an application what i expect from it i expect that it will handle the error and begin the normal flow of the application. Now, you aswer me, why it doesn’t work in this scenary : I have one Form1 (Project > Add New > Form, nothing different), and another Form2 and one Form3. i’m proud of my creativity for names. Form1 : private void Form1_Load( object sender, EventArgs e ) { try { new Form2().Show(); } catch (Exception ex) { MessageBox.Show("Error calling form 2" + ex.Message ...Show All
Visual C++ returning string references
Hello everybody! I tried to return a reference to a string by a function, but this doesn't work with MS VC 2005. Here a samlple: #include <cstdlib> #include <iostream> #include <string> using namespace std; string& foo(string bar) { return bar; } int main( int argc, char *argv[]) { cout << foo( "baz" ) << endl; system( "PAUSE" ); return 0; } When I compile this piece of code with the MS VC 2005 and run the program I get lot's of text plotted to the console window, then the program crashes. When I compile this piece of code with Dev++, which uses MinGW 3.4.somethi ...Show All
Visual Studio Express Editions MDI Child Forms without border, blue box, resize buttons etc.
I fail to create a raw MDI child form without any border, maximize/minimize button a.s.o... I 'd like to create an application similar to Excel in that way that the user may open several windows using the 'new' menu item from the MDI Parent form, each window hosting tabcontrol. The standard way to create MDI Child forms works fine but I can't get rid of these top headings! A splashscreen form seems to be a good answer but I can't create a raw one on which I could drag tabcontrols etc. VB Express edition does not provide such a simple form. Another track would perhaps be to hide those headers but I cant'succeed doing this. Can ...Show All
Windows Forms Start default mailprogram with attachment
Hello, I would like to start the user's defaul mailprogram with an attachment. I have tried something like this: string toEmail = "test@test.com" ; string subject = "Testar" ; string body = "test" ; string message = string .Format( "mailto:{0} subject={1}&body={2}&attach={3}" , "" , subject, body, @"c:\test.txt" ); Process myProcess = new Process (); myProcess.StartInfo.FileName = message; myProcess.Start(); myProcess.Dispose(); Everythin looks fine but the attachment is not there... If it's not possible to have an attachemnt in this way. Can someone please give me an direction how to start the u ...Show All
Visual C++ saving configuration
can anybody give me a trick about how to save a configuration of a program for example: i've typed something in a text box and closed my program. i want that my typed text appear when a load my program again. i've thought in log files, but i don't know if this is a good way. thanks. Using the outdated INI File apis. If you are using VC++.NET 2005 then you should have User and App configruations XML files. Certain technologies such as MFC make it easy to serialize data structures - so this is another possibility. ...Show All
Visual Basic VB first time install
I am a network administrator interested in program development. I installed VB 2005 Express Edition for the first time on a Win XP Pro SP2 Dell GX 260 Optiplex (1GB of RAM, 1.8 GHz processor). I log in and therefore install with admin rights. Upon writing a small program to view web pages, the IDE hangs when I start debugging to test the program. The vbexpress.exe CPU usage hits 99% and stays there. I have to use Task Manager to force the process to end. Has anyone else run across this on a first time installation of VB 2005 Express Edition Does this repro every time It is not clear if you see it with just ...Show All
Visual Basic How to make a simple form print. Please help
Hi all Before I start, lemme just say I am a complete newbie at this and trying to learn. I have searched here and the help in vb but I cant seem to get anywhere :( I am using Visual Basic 2005 Express Edition and I have made a real simple form, where I choose a date, enter a name, address and phone number and all I want to be able to do is be able to print it. The form doesnt need any formatting. I have dragged over PrintDialog1, PrintDocument1, MenuStrip, Toolstrip etc and have somehow managed to get the print button to show at the top of the page. also I did it in the way of File > Print but upon clicking those nothin ...Show All
