jitendra badkas's Q&A profile
Visual Basic How to receive output from a command line program?
I'm working on a GUI for the Valve Half-Live Dedicated Server Software, to make it easier for me to make a server. The software contains a command-line updater, that outputs its progress as it updates. How do I start the updater running, capture the output each time a line is outputted, and provide the user with a means of cancelling the process Thank you so much for your reply. That's exactly what I was looking for. I had to modify the code slightly to allow my software to read the output as it is outptted, rather than at the end of the process, but it works fine now. However, when the process is started, a large command-line window appears, obscuring the window. How do I cause it to start minimized ...Show All
.NET Development VB 2005 - Copy row contents to another row in the same DataSet
Hi, How can I copy the contents from one row to another in the same DataSet I'm using the TabelAdapter to fill the DataSets. For example: I've 2 existing rows and need to copy the contents (all fields) from one row to another. Then, before update change the key field so I don't have any problems. I've tryied to use the ItemArray but don't know how to load it to another existing row. Can someone help Thanks. Pedro You can assign the value of each field of a row directly by using datarow [ i ] = value... ItemArray is just a copy of the objects of the datarow and changing it won't affect the original datarow. ...Show All
Visual Basic 2 Forms... 1 calls to 2..2 shows...2 button clicked to add.. problem !!
Hello, I have programmed java before but i am new to VB.net.. so this is what has been going on.. Form 1 has a button and combobox. On button click.. Dim obj as new Form2() obj.ShowDialog() Form 2 pops up ! Form 2 has a button called add. on button(add) click.. Dim obj2 as new Form1() obj2.ComboBox1.Items.Add("Hello") And nothing works I wonder why Instead of creating a new Form1() inside form2, try passing Form1 to the constructor of Form2: Dim obj as new Form2(Me) Inside the constructor, store the form in a member variable. Then on the button click, use the reference that you stored to add an item to the combobox. Sub New( x as Form1 ) Me.form1 = x On button(add) click Me.form1.C ...Show All
SQL Server Merge Agent System Stored Procedures and sp_Recompile
Hello, We are trying to be proactive and stop a potential performance issue by reducing the number of recompiles in our SQL 2000 database application. This database is replicated. After viewing output from Profiler and PerfMon it seems that over 90% of the recompiles are due to system stored procedures generated by replication merge agents. Can anything be done about this Thanks The databases are setup to use push merge replication with the polling interval set to every 15 seconds. It is replicating 4 databases to one subscriber. The procs that are involved are the ones generated by the merge agent when you set up replication. Hope this helps! ...Show All
SQL Server Clustering Options
What options do I have to cluster SQL server 2005 Currently we have three servers that can be used for the cluster. We currently don't have any shared storage, but plan on getting a SAN down the road. What do you guys recommend I would like to have some redundancy in the database server. I'm not sure what's is what you want to do. A Cluster solution involves a cross wire between two server at minimun or a SAN array. On the other hand, we have the next High Aviability options in SQL 2005: Database Mirroring Log Shipping Database Mirroring and Log Shipping require at least two server and more depending on the configuration you want to select: http://msdn2.microsoft.com/en-us/library/ms19020 ...Show All
SQL Server Show dimension members only if there is data associated with them
Hello, Is it possible to set-up dimensions to contain only members that have a match in the fact table I would like the dimensions pull-downs to show only members with data. Thanks, Philippe I guess I have found a way to create the dynamic filter I need. My Customer dimension is down to 14000 leaf members from 37000. I have replaced the dimension table by a named query that joins to the fact table. I have something like that in my DSV; SELECT c.Cust_cd, c.Cust_Desc .......... FROM dim_Customers c INNER JOIN meta_SalesHistory s ON c.Cust_cd = s.Cust_cd OR c.Cust_cD = s.BRCust_cd It slows down a little the dimension processing however I find this to be a minor downside. It avoids ...Show All
Windows Forms Redistribution of "standard" toolbar icons?
Are the "standard" toolbar icons (the "save" disk icon, cut, copy, paste icons, et cetera) that appear in just about every application installed somewhere with Visual Studio (I'm using standard edition, 2005) It seems like everybody's applications but mine get to use these standard icons; I can't find an obvious way to add them to my forms via the C# form designer. Does everybody else just rip them out of applications using Print Screen and MS Paint That strikes me as rather illegal unless they've been released for redistribution -- in which case I'd imagine they'd be a little easier to find... but I can't find them. Any ideas Hi Mike, Can I get more images legally, from some locati ...Show All
Visual Basic How do I make this flicker-free?
The following code draws line numbers next to a RichtextBox control I have on my form. However, the code causes the LineNumbers picture box to flicker rapidly while being drawn, I was wondering if anyone could help Private Sub DrawRichTextBoxLineNumbers( ByRef g As Graphics) 'Calculate font heigth as the difference in Y coordinate 'between line 2 and line 1 'Note that the RichTextBox text must have at least two lines. ' So the initial Text property of the RichTextBox ' should not be an empty string. It could be something ' like vbcrlf & vbcrlf & vbcrlf With RichTextBox1 Dim font_height As Single font_height = .GetPositionFromCharIndex(.GetFirstCharIndexFromLine(2)).Y _ - ...Show All
Windows Forms Can you get to the open project or solution files while in a Designer in Design mode
Hello all, While running code inside of a component designer, is there any way to be able to reference the solution and/or project that is active for the current session I have a form component and I would like to be able to reference the associated Xml Schema file which is in the project. Is there any way to do this Thanks in advance for any ideas and/or suggestions! Here is a partial solution to maybe help someone else. When I tried to use the sample code from MSDN Referencing the DTE Object I got err 429, Operation unavailable. The work arounds suggested by a Microsoft support article: PRB: Visual Basic .NET Error Using GetObject or GetActiveObject for Running Instance of Office did not work. Whi ...Show All
Visual FoxPro Setting a date in VP 6
I want to set a date field to zeros I use to use "replace datefield" with {"00/00/00"} but vp 6 doesn't like it. Any help would be appreciated. Thanks A date filled with zeroes is meaningless and not a valid date. If you want to show no date, you could either set it to empty with Replace DateField with {} (this is a VFP concept, not transferable to SQL Server or other DB) or set it to null. ...Show All
SQL Server Force to complete query, ignore errors
Hi, I have a big table and want to make a plausibility check of it’s data. Problem is, that my query stops, if there is an unexpected datatype in one of the rows. But that is it, what i want to filter out of my table with that query and save the result as new correct table. How can i write a parameter to my query SQL Code, that if a error occurs, the querry resumes and the error line will not displayed in my final querry overview In my books and on the net, i don’t found something to this theme ;-(. Thx in advance. > Hm, what u mean with avoid inserting bad rows You have an application that imports the text file into the system... correct well in that case the validation must be performed fr ...Show All
SQL Server AMO with VB.Net
Hi All, I am working on a project that require me to build cubes programmatically i.e., using AMO object and VB.Net. I am trying to find a sample that builds cubes using VB.Net. I can add further features to it based on the sample. Can any one help me at their earliest Thanks Sekhar PC Thanks for the reply. When I tried to implement the steps given in the above listed website, everytime I got an error message saying "Could not create cubes". Then I copied and pasted and tried to create cubes using AdventureWorks database. Still the error continued. Can a better sample be found which I can use to create my cubes dynamically An early reply will be of great h ...Show All
.NET Development Retrieving DataGrid value from current cell and first column into a String variable
What is the C++.net equivalent of this vb.net code: prod = dataGrid1.Item(dataGrid1.CurrentCell.RowNumber, 0) prod is just a string variable. I'm using VS 2003 if it matters. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.XNA.Framework.Curve
Hi, I was wondering if anyone had looked at or used the Curve Class yet. I am having difficulty working out how to use it, perhap anyone could shed any light. I was thinking initially that it is a beizer curve type class, but I can't see co-ordinate information for the control points. All I can see is that CurveKeys have a value and a posistion, presumably between 0-1. Is the value the "y" position on a graph and the x is the position. Has anyone any more information that I can read in to determine what to use a curve for. Kind Regards, Paul Kinlan www.kinlan.co.uk Andy, just to put my 2 cents in... I haven't worked with curves very much (so I can't really speak to the interfaces), but I prefer aggrega ...Show All
SQL Server Using detached database...
Hello, I currently have an application that uses a Access/JET database for a desktop application. The application is single-user and outside of a few corrupt MDBs occasionally, the setup is working fine. I am thinking about switching out from using the Access database to using a SQL Server Express detached database. I'm not sure if this is a "proper" usage of a detached database, but I've verified that I can access and query a detached one... Is this something that is recommended Are there any performance issues associated with it (I believe the detached would be faster than the JET database.) What kind of maintainence would be needed for the SQL Server file (I currently have a "Repair and Compact" option for the Acce ...Show All
