Leandro Rodrigues's Q&A profile
Visual Studio Can I edit localy and upload changed version when doing check in
I don't know if SourceSafe can do this, but how can I create a SourceSafe project that targets a project (web or win forms) stored on a server, so when the developer will be working on this project, he will get the latest version (download files to his computer), check out some files to block update on the server files that he is making changes, compile and run locally, and after testing he will check in and automatically upload files back to the server. Can SourceSafe or any source control software do this If no, what is the best way to work on a team environment where a project is stored on a server and everybody needs to have the working builds and debug from its own machine without compiling code that is still in development by othe ...Show All
Visual Studio 2008 (Pre-release) Changing ListViewItem to ListViewItemEx in a ListView
Hi, I have done an extension on the ListViewItem that I called ListViewItemEx and now I want any listview to use ListViewItemEx instead of ListViewItem. When I set the ItemsSource in a ListView, I no longer want to have ListViewItem but ListViewItemEx. Is it complicated I should I proceed /// <summary> /// List View Item extension /// </summary> public class ListViewItemEx : ListViewItem { ... } Thanks in advance. Hi, I understand that, but how can I create a ListViewEx that only allows the Items property to contain ListViewItemEx objects I'm not too sure where to start, that's all. Thanks ...Show All
Visual Studio Express Editions Excel Help
I want to create a Excel file from data contained in a ACCESS database query! I am having trouble to find some examples on this. This should be pretty easy, nothing fancy. Excel file should be able to be saved. Any help would be appricated I want to data the data out of access and create a new spread sheet with the data gathered. I am an average user. I have done a little more research, and I think that I want to view the data first in a datagridview then save the datagridview into excel. Does that help ...Show All
Visual Basic Unexpected exception occurred during upgrade engine operation
Hi, During a every conversion of a 'VB6 project' to 'VB 2005 Express', I'm always getting folowing error: --------------------------- Visual Basic Upgrade Wizard error --------------------------- Unexpected exception occurred during upgrade engine operation: Kan niet aan de bron binden (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE)) --------------------------- OK --------------------------- My System : Windows 2000 SP4 (Clean Install) - Visual Basic 2005 Express ed. Any ideas howto resolve this Thx. Hi, Copy Following lines: ;--------------------------------------------------------------------------------------------------------------------------------------- ...Show All
Visual Basic Limits on Memory Use?
Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All
Visual Studio Express Editions Converting Integer To String?
I have just started learning Visual C# and I have been watching the learnvisualstudio.net video's provided by Microsoft. I have got to the point where im trying to convert an integer into a string. According to the video's and common sense the following code should work private void button1_Click(object sender, EventArgs e) { // Declarations int Int_Seconds = 0; string Str_Seconds = ""; //Code Int_Seconds = int.Parse(txt_seconds.Text); Str_Seconds = Int_Seconds.ToString; MessageBox.Show(Str_Seconds); } but when I try to run this project I recieve the following error message. "Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke th ...Show All
Software Development for Windows Vista Controlling MSWebDVD buffer
Hello, I want to use DirectShow (the MSWebDVD control) in a vb project and I need access to the buffer. Basically, I want the program to automatically skip from one part of a movie to another while the movie is being played (say from 10 minutes into the movie to 12) and I want it to happen seamlessly. To accomplish this I need to alter the choice of data that is being buffered. I need the buffer to load the information needed to play the video that will come after the section is skipped (So, in the previous example, it would buffer the data up to 10 minutes and the next data that would be buffered would be that which is after 12 minutes). Is there a way to control what is going on with the buffer If not, can anyone suggest something els ...Show All
Windows Forms Create toolstrip with default buttons
Hi, I want to create a new toolstrip with some default buttons (something like the bindingnavigator). I create a new class exToolstrip Public Class exToolstrip Inherits ToolStrip I add the toolstripbuttons in the InitializeComponent Public Sub New() MyBase.New() InitializeComponent() End Sub Ho wever, in my testproject i can't change the inserted toolstripbuttons or reorder them. this is normal, but i want something else: in the bindingnavigator, for example, you can change the buttons because the buttons are not in the bindingnavigator itself, but are added in the form in the InitializeComponent class. I want to make a control to do the same. Any idea thx in advance, Stijn Hi ...Show All
SQL Server Exporting results grid to CSV file, header isn't exported
Hi all.. By using SQL Server Management Studio 2005 (and even in SQL Server 2000 Query Analyzer) when a result of a query is shown in the grid, and then export that data to a CSV file, column names aren't exported. Is there a way to do this Thanks Jaime Tools->Options->Query Results->SQL Server->Results To Grid->Include column headers when copying or saving the results -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Jaime Stuardo@discussions.microsoft.com > wrote in message news:aca62042-3d42-4836-83b9-be26a1f0e3ff@discussions.microsoft.com ... Hi all.. By using SQL Serve ...Show All
.NET Development Can threads programatically be targeted/scheduled/preferenced to specific CPUs in .NET?
I have not so far been able to dig up anything on whether it is possible to create and start a thread on a specific CPU (on a multi-CPU/Dual Core type system), via .NET's system libraries. I just obtained a machine with a dual core processor, and, well, cool, Windows task manager now provides dual performance gauges for the 'twins' and has a new context menu item...for setting the 'affinity' of any given application for an available CPU...Since windows provides such services, I was thinking probably there are system calls that programs can utilize to obtain comparable funtionality, but within a single app domain (seperate threads within the app). Maybe the individual targeting of a CPU is only supported on an application wide basis...but i ...Show All
.NET Development .NET Framework 2.0 runtime error
Hello Everybody, I get the above error in my event log when i try to run Windows Application on client machine which has Framework 2.0 installed. It works fine in my dev machine which has VS2005 installed but bombs when i try to run the app with a Microsoft report a problem dialog box. The app was frist started in .NET 1.1 and then was migrated in middle of developement to .NET 2.0. I have looked on the web and asked loot of other developers but nobody seems to have a clue . Hope to get some reply from here. Anand You get an invalidoperationexception. Write an error handler to report the complete exception with call stack or use a managed debugger. ...Show All
SQL Server Is it possible to do?
I am searching through forums but cannot find the answer. I have reports on the Intranet. I do not need to restrict it. Everyone should be able to see everything. The problem is that if I assign anonymous access to the reporting server, I cannot manage it. Whatever I do, it would give me an error message saying that account IUSR_SERVER has not rights to do anything. I cannot use form authentication because I send parameters using url. Any solution that I could use Can I create a user that has restricted access to reporting and use authentication using url Any other ideas Thank you. Igor L. Kravchenko. I understand it. Is there any way that I can ...Show All
Visual Studio 2008 (Pre-release) Detecting cached domain logon
Hi, I'm working on project, in which I use WCF for communication. User is authenticated by using Windows Authentication. I have to detect that user has logged into the computer using cached credentials (connection to Active Directory was unavalible). How can I programmatically detect it on service (or client) side. Is it possible at all thx, Mark It's not possible through WCF, unless you plug in your own code. Calling LsaLogonUser() with MSV1_0_SUBAUTH_LOGON on yields a MSV1_0_LM20_LOGON_PROFILE whose UserFlags field will contain LOGON_CACHED_ACCOUNT if cached credentials backed the logon. Vista adds a UserFlags field to the SECURITY_SESSION_LOGON data returned by LsaLogonUserSession ...Show All
Windows Forms Strange Graphics Error
I've built a WinForms C# app that implements MDI to allow multiple files to be loaded at once. Each form contains a tab control with 5 pages. All has been working fine until I added a custom user control to the first tab page. Now, if I open a file and leave it on that first tab page and then open a 2nd file, strange things start happening with the graphics of the application. I've taken two screen shots to better illustrate the problem: http://mwtech.com/downloads/personal/Strange_Graphics_Error1.jpg http://mwtech.com/downloads/personal/Strange_Graphics_Error2.jpg I'm thinking that the problem has something to do with the user control because the error does not occur if I first switch to another tab page of the open file. I wish I could ...Show All
Visual Basic How to get DataGridView into Database
How I get this into Database Thank you. Public Class Form1 Dim PocetRiadkov As Integer Private Sub Table1BindingNavigatorSaveItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Me .Validate() Me .Table1BindingSource.EndEdit() Me .Table1TableAdapter.Update( Me .Database1DataSet.Table1) End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'TODO: This line of code loads data into the 'Database1DataSet.Table1' table. You can move, or remove it, as needed. Me .Table1TableAdapter.Fill( Me .Database1DataSet.Table1) End Sub Private Sub Button1_Click( ByVal sender As System.Obj ...Show All
