dsani's Q&A profile
Visual C# When does imageindex actually update the button image?
Good day all! I'm brand new to Visual C#, so this is likely a beginner question, but it's stumping me. I am trying to create a button that, when you click it, it changes the button image for a couple of seconds, then reverts it to normal. I loaded up an image index with several pictures to use, but am getting a strange issue. When the button is clicked on, it waits the amount of time I request (2 seconds), but the picture never changes. (I know it goes through the code, because it does other things unrelated to the button at the same time.) The code is really as basic as (forgive capitalization issues): button1.imagendex = 6; thread.delay(2000); // some other code happens here totally unrelated to the button button1.imageindex = 10; I'm tr ...Show All
Visual Studio Team System How to keep the changeset history in TFS when I make a merging or branching?
I found that it's difficult to keep all history when I made a merging or branching. Both processes got the history lost. For example, the new branch just starts with a new changeset history. How to solve this problem Can I export the history firstly then import it into the new branch Thx in advance. That's really bad! I do NOT understand why MS guys design that merging or branching gets the history lost. So far, I only found that moving a branch could keep the history present, but if I need two same branches, like a "copy/clone" operation, it's likely impossible, right ...Show All
Visual Studio Express Editions Is there a trick to avoid the installation of service pack 2?
Hello, I have a few questions. Question 1 I have just tried to install Visual C++ express edition. Why do I have to use service pack 2 I do not want to install it. It took me 30 minutes to install service pack 2 and I will never use it. Why is that Is there a trick to avoid the installation of service pack 2 Question 2 Someone is writing a software package for me and the compiler of Visual C++ express edition has to be built into the software. Only the compiler! I intend to use the package for my own use, but let's say I am going to sell the package later while the compiler is in it, is that ok 1. All of the Express editions require SP2 to install. There are security update ...Show All
Visual Studio Express Editions extreeeem noob
how do you run a program after you compile it Press F5. If you need more ways for running your application, please search the forums first since you will find more details there. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C# validating gender
I am using this code to validate my records .. but the problem come always from gender ... I want it to be male or female but alwayes when I type male it does not pass the validator.. help me this is m code if (Request.QueryString["username"]=="123" && Request.QueryString["password"]=="123") { if (Request.QueryString["id"] =="" || Request.QueryString["id"].Length>4) { Response.Write("-2"); Response.End(); } if (Request.QueryString["name"] =="" || Request.QueryString["name"].Length >50) { Response.Write("-3"); Response.End(); } if (Request.QueryStr ...Show All
Windows Forms VS2005 Express Edition
Hi, After installation of VS2005 Express edition, I receive these error messages when I try to design a new Form of a new "Windows Application" project. I tried to reinstalml VS2005 (with the option "Repair") and nothing changes ; there is always the same error messgaes. Who can help me Thanks by advance. Maurice. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.Windo ...Show All
Visual Studio How can I build one project in a .sln?
Hi; What is the <MSBuild ... /> syntax if I want to build just one project in the solution file thanks - dave To rebuild (not build) a project are you saying use: <MSBuild Properties="Configuration=Release" Projects="WindwardReports.sln" Targets="WindwardReports:Rebuild"/> yes ...Show All
SQL Server DTExec via xp_cmdshell
In my previous post here: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1044739&SiteID=1 Michael Entin provides a number of responses to my questions regarding programatic execution of remote SSIS packages. Having experienced some significant reliability problems with the Microsoft.SqlServer.Dts.Runtime components from an ASP.NET process (the page either times out, or inevitably just stops responding), I have been prototyping the DTExec command option which Michael suggests as being a better approach to remote programability. So, off I've been prototyping this all day today... I have a stored procedure that wraps a call to xp_cmdshell which takes the DTS (DTEXEC) params as a big long argument. This scenario would h ...Show All
SharePoint Products and Technologies Document Library WebPart and Folder Navigation
Hi, I have created a Document Library and am using folders rather than columns for organization. This is largely because when users upload more than one document at a time they are not prompted to tag them with metatdata and then lose thier files amongst the existing documents. It is difficult for them to then find the documents and edit the properties after the fact. With this being said, it is more convenient for them to navigate to the appropriate folder and then upload the multiple documents. The one issue with navigating the folders is with the Document Library Web Part. I can't find a way for them to navigate up a directory. The "Up" button is no longer in the toolbar. The breadcrumbs don't work like they do if you ...Show All
Visual C# Utils Class inquiry
Utils Class appears to be undocumented. MSDN says that it is intended for use by the OS system only (VB compiler) and not supposed to be called directly from C# code. I came across exactly the opposite and when I tried to invoke it in Intellisense it appeared the class has a lot of useful method I badly need. It appears some of them are self-explainatory but others are a bit more obscure. Anyhow, I wound not mind to read more on that class. Where can I find a source Thanks. Download Reflector (you should be able to google it rather easily) and see what those utility functions are doing under the hood. ...Show All
Windows Forms Item cannot be added to a read-only or fixed-size list
I have a dataset with two tables that I want to populate. I have a BindingSource for each table. I can add to the parent table via the BindSrc1.Add() no problem. If I open an existing record, where I have at least one row in the parent table and 0-* rows in the child table, I can also add rows to my child table via BindSrc2.Add(), no problem. The way I add to the child table is, I display the child records in a DataViewGrid, but to add, I open an dialog box for data entry. This works fine, as I said, when there is an existing parent record already existing (in database). the problem occurs when I want to create a new parent AND child record at the same time. I add my parent row to the BindSrc1, no problem. When I attempt to add to child ...Show All
SQL Server ERROR IN SQL SERVER ENGINE
I have a problem starting my SQL Server engine. Its service has been stopped. It was working properly till evening “ December 8, 2006 ”. But when I came to office at 10:00 AM, it did not start. When I checked the service in “Services.msc”, it was stopped. So, I tried to start the service “ SQL Server (MSSQLSERVER) ”, but it failed with message “ Error 1069: The service did not start due to a logon failure ”. I opened “Event viewer” and looked the list in “Application” log to find out what had happened. There was an entry for “SQL Server” source with type “Failure Audit”. There was a message “ Login failed for user sa ”. What went wrong….Can someone help me Plz its urgent…. Hi randyvol, First of all, thank you fo ...Show All
Windows Forms Tabcontrol
Hi, how do i bind a tabcontrol to a table containing the tabpage names if my table has 4 rows, 4 tabpages should be created. can i do this binding Sorry the tabcontrol does not support data binding. You will need to loop through the tables and add a tabpage and some controls. Here is a minimal example Dim conn As New SqlClient.SqlConnection("Server = .; Database = NorthWind; Integrated Security = sspi;") Dim ds As New DataSet Dim daEmployees As New SqlClient.SqlDataAdapter(" Select * from Employees", conn) Dim daOrders As New SqlClient.SqlDataAdapter(" Select * from Orders", conn) Dim daOrderDetails As New SqlClient.SqlDataAdapter(" Select * from [Order Det ...Show All
Visual C# Why ProjectGUID in vcproj changes always in SHARED projects (VS2005)
Hy, i have several solutions using more then one SHARED projects (libs, dlls, etc. ) between this solutions. I connect them in one solution for each software-project. Everything works fine, but since VS2005 something new happens: After working with one solution and changing to another one, shared project files always changing (and MUST be checked out) because the ProjectGUID randomly changes in the vcproj-file. Why does this happen How can i disable this, because everytime i change my solution, i must checkout the project file and blocking other developers! And by the way: What is the intent of the file "<ProjectName>.vcproj.<DomainName>.<UserName>.user" Do we need this How can i disable the creation of it Must ...Show All
Visual Studio ** RESOLVED ** Getting report to log on (VS2005 BO XI R2)
I am making progress. I can now get the report to come up without the "Load Report failed" error. I will highlight what was causing that error. However, I still have an issue where the report comes up still asking for a password. The connection occurs in my FOR LOOP. However, when I break on that line, the table count = 0. I am still missing something. [code] Option Strict Off Option Explicit On Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Friend Class CRViewer Inherits System.Windows.Forms.Form Private Sub ConfigureCrystalReports() CRViewer1.ReportSource = Nothing CRViewer1.SelectionFormula = "" Dim myConnectionInfo As ConnectionInfo Dim myConnectionInfo2 As ConnectionInfo Dim ReportPath As S ...Show All
