pavel_roy's Q&A profile
Visual C# how to make a paramter optional
Hi how ca i make a optional paramter to a method Thanks!! c# doesnt suppport optional parameters as vb does.. But you can use overloading instead of optional parameters if you want void mymethod(string x) void mymethod(string x, int myoptionalparameter) just a sample:) ...Show All
Visual Basic {Resolved} Reciving Command Line Arguments in windows forms
I have associated all .jpg files with my application I made. So when I click the file, windows starts my application. How do I have my application recieve information about the file so that I can load it Thanks, I don't know what this process is called, so I have had a hard time trying to find tutorials for it. Here is what I was looking for: ...Show All
Visual C# ?? Why No readonly Local Variables ??
Hi all, I've looked at what the C# spec has to say and indeed it indicates the readonly keyword can only be applied to fields (not to local variables). I can see a use for doing this, however. I was wondering if anyone knows the rationale for not allowing readonly to be applied to local variables. It seems like it could be useful. Thanks. While readonly is very similar to const in appearance, w ...Show All
Visual C# Missing project file in a solution
Currently, we are adding a c# project to a solution that was formely code in visual basic. However it seems that every time we tried to load the solution file, all of our c# project is missing and we have to manually add the c sharp project one by one. Does anyone have an idea how to overcome this problem It's not a fatal problem but it's quite annoying after some time. This can only happen if the path's chanced ...Show All
SQL Server DATABASE AGE
What's a reliable way to tell when the database (SQL Server 2000) was created Thanks. -John ...Show All
SQL Server Webservice Task Input
I want to dynamically pass values to the input value of a Web method to return values to a webservice. I have tried using expressions, put there is no available property for an input to a webmethod. Help! While I think it is nice that there is a Web Service Task with SSIS, it does seem limited in functionality. Kirk confirmed this when he indicated that there is no way to pass variables to a web method at ...Show All
SQL Server 2 independent Column Groups in a matrix?
Is it possible to get 2 independent column groups in a single matrix Let's take Adventure Works Cube as an example. Row grouping: [Date].[Calendar year] Columns: [Geography].[Country] and [Product].[Category] Measure: [Sales Amount] Idea is to see sales numbers for each year distributed by country and product category in a single row (empty cells possible). Groups and subgroups isn't an option. So is it possible with RDL and Reporting Service ...Show All
SQL Server Impact of "Rows per batch" on OLE DB Destination?
OLE DB Destination has a "Rows per batch" parameter. Are there best practices/guidelines around what it should be set to (for better performance etc) For example, if each row is of size 100 bytes, how does performance change when I set a batchsize of 0, 100, 1000, 10,000 etc I guess the default value for this parameter is zero. Does that mean, internally it is implemented as: For each row: begin transaction insert row commit tran ...Show All
Visual Studio Team System PropertyNamesShouldNotMatchGetMethods
Hi, I believe I may have a special case with this rule. The library I am working on has been around for a while and had a get method implemented to return user information, I have replaced the get method with a Property but for the sake of backwards compatibility with applications using the library I have left the Get method in place and marked it with [Obsolete(Message)] and [EditorBrowsable(EditorBrowsable.Never)]. If my understanding of th ...Show All
.NET Development TextBlocks to Streams
Alright, yet another problem, how can i save the content of RichTextBox to a variable, so i can put it in my own object. Cant find anything about it on the web, only how to save it to a file and how to store it in a SQL database You can get/set the contents of a RichTextBox control via its Rtf property like this: string rtfContents = myRichTextBox.Rtf; // Muck around with the raw RTF myRichTextBox.Rtf = modi ...Show All
Windows Forms Scroll-synchronizing two or more DataGridViews
Hi, I'm trying to synchonize scrolling of two grids, ContractProdGrid and ContractSuppliergrid, by using the RowEnter event on one grid to control the other like this: Private Sub ContractProdgrid_RowEnter(ByVal sender As Object, _   ...Show All
Windows Forms Creating Events in C#
Is there a way to create and remove events and their handlers in Visual Studio .NET without directly editing the InitializeComponent() method The remarks in the code warn you about leaving this function alone. do it thru the IDE.  ...Show All
Windows Forms Is using certain controls legal?
This may be a stupid question but is it legal to use controls such as the Quicktime control or the WMP control in my application My entire application wa written by me except for 2 controls which I am using, I just don't want to get in trouble using them with out approval. I want to distribute my application for free over the net, and I would hate to run into any legal issues since I didn't write the conde for the QT and WMP controls. ...Show All
Visual Basic Debugger is extremely slow
Has anyone else experiance really slow debugging in VB.Net Beta 2 Yesterday was the first time I used it to step through code line by line and I was shocked. It's a simple project with one form using a datagridview and it was horrible. We are talking a 3 - 5 second delay every time I hit the F10 key to step over... Thanks, Aaron I have found a workaround posted here: Would this be sufficient for your team to try ...Show All
SQL Server transaction log
Good day to everybody, I have this problem once, but maybe i will encounter this again regarding the transaction log that I do not know why it grows bigger that it consume my harddisk space of 15gig althought my data file consume only 25mb How does it happen and why The only thing i do is to make a new temporary database, copy the tables inside on it and erase the old database whose transaction log is full, then bingo!!! I emptied my harddisk wi ...Show All
