MUSE Matt's Q&A profile
Smart Device Development Split screen in native
Is it possible to split the PPC screen so that an application can be running on 3/4 of the screen, while a custom tool bar remains visible either above or below it I need this badly; I hope it's possible... Thanks, Pete M Hi, When you say custom toolbar do you mean a tool bar in the application If that is the case then that can be done with a toolabr in the main frame window, while you use the view for displaying the actual window. Thanks ...Show All
.NET Development How to lock up a file
I am writing some C# code which processes a set of files in a source directory and then moves the files to a destination directory. The code must be able to handle a situation in which one of the files might become locked while the files are being processed. I am not concerned at this point with how to handle the exception when a particular file is locked. What I need to know is how can I lock up the file You see, I must test my code against a file that is locked up. I tried locking up a file by selecting it, and then right clicking on the file and selecting rename. I also tried opening the file for edit. Neither of these two methods will ...Show All
Visual Studio Express Editions Can not add event handler
Hello, I am using Visual Web developer 2005. I have a datagrid, and I am trying to delete a row, so I need to add an event: Protected Sub delete_row( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.GridViewDeletedEventArgs) Handles GridView1.RowDeleted End Sub When I write this code, "gridview1" becomes sublined. That is why I try to declare an event handler by writing: Protected WithEvents gridview1 As System.Web.UI.WebControls.GridView But then the designer returns an error "gridview is already declared". What can I do to solve this situation Thanks, Alex Hover your mouse over the subli ...Show All
Windows Forms DataGridView Switching Rows and Columns...
Hello Everybody, I hope you can help me with a problem I have. I want to write a roster (time table) program based on SQL Server Express and a client written in C#. It would be nice to view the Data of more than one employee at one time, e.g: Date 1. 2. 3. 4. 5. 6. ... ---------------------------------------- Bill TW TW TW X X NW ... George KT KT KT TW X X ... Actually, the data comes like that from SQL Server (of course it comes like that): Date Name Shift 1. Bill TW 2. Bill TW 3. Bill TW 4. Bill X 5. Bill X 6. Bill NW ... ...Show All
Visual Studio Express Editions How to do a simple program
Hi! I'm new in programming in vc++. Can anybody help me, i want to create a program that show a window wherein it has a drawing space in that window and whenever i click on the left mouse button inside the drawing space it automatically gets the x and y coordinates of the point then it draws a small red circle. It also has a quit button. I have done this using Visual basic but when i tried doing it in vc++ i don't know where to start. please please i need some help. thank you. I used the mfc application(.exe) and i used the dialog to create my interface. Is there a way where I can draw a circle inside ...Show All
Visual Studio Express Editions Parameterized Queries with Access OleDB in C# Express Beta 2
I've noticed that Parameterized Queries do not work "No Value given for one or more required parameters" I start by creating a query for a data grid. My query looks like this: SELECT id, [item_ number], item_desc, item_loc, item_status, user_id FROM item WHERE (item_number = ) The query will not execute from the Query Builder, even though it does prompt me to enter a value. A text field is NOT added to my FillBy tool strip. The generated code looks like this: private void fillByToolStripButton_Click( object sender, EventArgs e ...Show All
SQL Server Autosize reportviewer control
I want the reportviewer to display the report exactly over the entire screen. If I try to use "width=100%", the report viewer control expands beyond the screen area making us to scroll to view the "View Report" button. However, in the report manager, the same report gets displayed exactly occupying the screen size no matter what resolution the screen size is. How is it done Thanks. Hi, I think by setting the width we can control the size of the reportviewer control not the report data itself. By setting the width to 100%, we can arrange the width of the area which includes the parameters, the view report ...Show All
Visual C++ Copy Constructor
If I have a class with a vector<int> as a member variable, if I dont provide a copy constructor, will the compiler's default copy constructor work fine .(In the sense, will it invoke the vectors copy constructor and do a proper deep copy) Thanks KarthikR ...Show All
Windows Forms problem of binding combobox to datatable
i create a datatable by manual, then bind a combobox to it, but an exception was been throwed my code is here: Dim dt As New DataTable("Count") dt.Columns.Add("Index", System.Type.GetType("System.Int16")) dt.Columns.Add("Name", System.Type.GetType("System.String")) Dim i ...Show All
Visual Studio How to protect company systems source code?
Hi all, Is there a way to protect the company systems from the development teem to copy the company developed systems source code Is MS-VSS is the right way We are using VS 2003 I'm not sure what you're trying to do, but VSS may not be the answer. VSS doesn't have security measures that will prevent a developer to steal source code and publish it outside your company (copy/mail). You can prevent other users to access the files stored in VSS databases by setting correctly the Windows permissions on the database's file share and the NTFS permissions on the files. You can't prevent ...Show All
Visual Studio Express Editions How to use the timer correctly?
Hi, Im working on an VB.NET Application. Now I've got an Problem: I want that the Browser "webbrowser1" reloads the Document every minute. But I don't know how to use the timer correctly. Could someone explain the component to me, please Thanks Fabian It's pretty simple. I'd declare your timer as a member variable. Protected Friend WithEvents WBTimer as As New System.Windows.Forms.Timer Then when you want to initialize it, remember that its time unit is milliseconds. For a one minute interval: Wbtimer.Interval = 60*1000 Wbtimer.enable= true WBtimer.start() But you aren't finished yet....... Y ...Show All
.NET Development System .NET features and future
As many of you may already know, the release of Visual Studio .NET 2005 is right around the corner… hooray! As we put the final touches on “Whidbey” for the November 7th launch we are starting a parallel effort focused on planning for our next major release of Visual Studio, codenamed “Orcas”. As we switch hats from ”Whidbey” release to “Orcas” planning, the System.Net team would like to hear directly from networking application developers on what they would like to see from System.Net in the future. Some questions that we have been asking ourselves that you may also want to cons ...Show All
Visual Studio Serious Build Engine Error in August CTP - BUG?
Using Aug. CTP/Visual Basic: I get - not reproducable, but somtimes - the following Build-Error. It seems that the Error occures when I use the Import-Statement for System.Runtime.Serialization.Formatters.Binary. Removing this line of code all works fine. Is this a known bug/issue in Aug CTP Does anyone know what the error message means Thx for Feedback redfox === Error 2 The "ResolveAssemblyReference" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A) at EnvDTE.OutputGroup.get_File ...Show All
.NET Development Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @StreetName + '%') But I get a FormatException. I don't want the user to have to type % in the parameter field. Any suggestions Thanks, Lee I have split this post into a separate thread, and ...Show All
Visual Studio Team System Differences between FxCop GUI and VS 2005
Hi all, is there any place where I can find what the main differences are between FxCop GUI and VS IDE (as far as code analysis goes) For instance, I see that VS doesn't show the URL for the documentation on a given rule. What else is missing Is the "suppress message" in VS relative to the "exclude" in FxCop If so, how do can I force developers to type in the reason why they're supressing a message And how can I see a list of all the messages suppressed It seems to me that code analysis support is just half-baked in VS, and in such case, I see no use in migrating from FxCop GUI to VS. Any comments on that ...Show All
