SQLBOY36's Q&A profile
Visual C# ErrorProvider makes default language loosing properties...
Ok, I have a very weird problem. I have a windows forms with some basic controls in it, textboxes, buttons, labels. with only one tab (very basic). My problem is when I'm switching language, i'm loosing control properties in my default language. Here's the behavious when the errorProvider is in my form. 1- I drop a combobox in my form (in the default language), change the dropdownstyle value to dropdownlist. 2- In the initializecomponent, I can see myComboBox.dropdownstyle = dropdownlist; If i switch to another language (IE: Spanish), I can see the myComboBox.dropdownstyle = dropdownlist again in the initilizecomponent. The problem is when i'm switching back to default language, it is adding the dropdownstyle in the sp ...Show All
Visual Studio 2008 (Pre-release) Markup Extension for Booleans
Hi, Is there a markup extension that allows me to insert boolean values into a property value Something like: <Class Property="{x:Static true}"/> Thanks, Kent Because his property is actually of type "object" as in: public class MyCustomControl { public object BooleanProperty { get { ... }; set { ... }; } } In your version this would be assigned the string "True". - Doug ...Show All
SQL Server How to remove Projects and reports from web browser
I am creating, building, and deploying reports via a web browser interface in SQL 2005 Visual Studio. There are a few projects that I no longer want the masses to see when the go to \\servername\reportserver . I have deleted all files associated with the projects and reports, and removed them from within the report server, but when I open the web browser I can still see the old projects and open the reports. Where is the browser getting this information even though the data doesn't even exist as far as i can tell, and how to I actually delete those entries that i no longer want seen. I have heard that I can go the actual web page itself, and delete the items using "show details", but I am unfamiliar with where exactly that ...Show All
Windows Forms Where are the events for a FolderBrowserDialog?
EDIT: Here is the solution: // Show the FolderBrowserDialog. DialogResult result = folderBrowserDialog1.ShowDialog(); if( result == DialogResult.OK ) { this.textBox1.Text = this.FolderBrowserDialog.SelectedFolder; } Hi, the following code snippet in C# retrieves the selected path without events: string selectedPath; using ( FolderBrowserDialog dlg = new FolderBrowserDialog ()) { if (dlg.ShowDialog() != DialogResult .OK) { return ; } selectedPath = dlg.SelectedPath; } // Process selectedPath here Andrej ...Show All
Visual Studio Express Editions Send data to form based on selection in datagridview
I have a datagridview on one form that present companyID, CompanyName and CompanyLocation from my database and want my users to select one row and duble click on it to open another form where the data will be presented in textboxes. Right now the datagridview is read only and Selection mode is Full row select I want something like this If user D.klick Row with CompanyID 3 then Open Form2 and populate txtCompanyID with companyID 3, txtCompanyName with Companyname where companyID is 3 and so on. I appreciate any help I can get. /Rikard aka Biocide Hi This should do the trick: Private Sub DataGridView1_CellClick( ByVal sender As System.Object, ByVal e As System.W ...Show All
Internet Explorer Development Possible to include an I.E. information bar overide?
I am developing a website which features both a javascript image gallery as well as a DHTML drop-down menu for navigation within the home page, however when viewed in I.E. 6 the 'information bar' appears which I'm sure will turn off viewers who unfamiliar with the site and misinterpret this warning as something to be avoided...and simply move on to a competitor's site....(unless viewed in 'another' browser!) Question: is there anyway possible to design the page (with similar image/navigation features) so that viewers will not encounter this annoying feature (so it doesn't appear at all) Any help would be appreciated, thanks! I am doing something similar. I have a hyperlink to close the window: ...Show All
Software Development for Windows Vista Normative Schema for WF XAML?
Hi, I don't think this question has been asked since last November. Is there a schema for XAML I'm working on some bits to generate workflow types and would to do less reverse-engineering of what Dev Studio produces. Thanks. - Erik I don't agree. I understand that XAML itself is an outer wrapper for WPF or WF, but that doesn't mean that "xs:any" is the best Microsoft can do to document XML formats for those subsystems. From the stuff I've seen in XAML so far, I haven't found anything that couldn't be represented in a proper XML Schema document. I don't really need a proper XML Schema for XAML/WF -- I just want documentation about the format. I can build my own schema if needed with whatever constraints ...Show All
Visual Studio 2008 (Pre-release) create a toolbar in my xaml design to drag from
im trying to create a toolbar in my design to enable me drag and drop controls. i was able to drag the controls around the screen, but that's not what i want. i need to keep the original controls in the toolbar while being able to drag a copy of them to another location. i really need help.. thank you hi, thank you for ur reply u've been very helpful. ive tried ur code, but there is no e.leftButton or DragCanvas.Add supported :s what shall i do thanx ...Show All
Windows Forms Several startup forms??
Hi there, My project has a Main class, that is the startup form. During the application runtime, I found out that when I called Main.sth= sthsth from another object of another class nothing happened. I've run it step by step and I realized the application created a new Main form. Do you know why this happens I'm also handling the event of the formclosing( to save some stuff in the DB) but, sometimes, when this happens, the program keeps running like nothing happens, like another form was closed. ...Show All
Visual C# Sample code problem: creating threads
I found some example code in a web page titled “How to create a thread by using Visual C#” and located here: http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B815804 The instructions in this tutorial are easy to follow and I think I followed them correctly. It took maybe 3 minutes. When I try to run the new project, it pops up the form, then a few seconds later a window titled “InvalidOperatorException was unhandled.” The Window has an option to “Copy exception detail to the clipboard” so I did that and pasted the data in below. The line of code highlighted is: this .progressBar1.Value = newval; I did it twice and obtained exactly the same results. Did I make an error Has anyone ...Show All
Visual Studio Team System diffmerge.exe overwriting file
I'd like to use diffmerge.exe to merge changes from one file into another, as part of our upgrade from VSS to TFSVC. We have already branched our code into TFS and made a few changes to get the code to work with 2005, but some development is still going on with the 2003 version in VSS. At some point I need to merge the changes, and so I'd like to be able to say 'Merge the 2003 file into the 2005 file' which I thought I could do using: diffmerge.exe /merge {1} {0} {1} {1} With {0} being the source (2003) and {1} being the target (2005). This works fine if I specify a new file as the output file, e.g: diffmerge.exe /merge {1} {0} {1} {1}.new But if I leave it as in the first example I get an error saying that the encoding on the ...Show All
Windows Forms Error: The deployment identity is not the same as the original deployment identity
What is this error Thanks, Lorenzo PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://172.16.19.33/Prisma/Prueba1.application Server : Microsoft-IIS/5.1 X-Powered-By : ASP.NET Deployment Provider url : http://lnsistemas-08/Prisma/Prueba1.application Server : Microsoft-IIS/5.1 X-Powered-By : ASP.NET ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://172.16.19.33/Prisma/Prueb ...Show All
Visual Studio MPF GetFileNamespace method contains a bug
Hi there, In MPF file <VSSDK>\2006.09\VisualStudioIntegration\Common\Source\CSharp\Project\TokenProcessor.cs there is a line of code (313) : string projectPath = Path .GetDirectoryName(node.ProjectFile); This line returns an empty string. I think there shoud be a following line instead: string projectPath = node.ProjectFolder; From my point of view that is a bug. Isn't it Hi Ole, Thank you for the tip – I‘ve found this problem too. I have implemented following logic of AddFileFromTemplate method (see below). As you can see, I use my own private GetNamespace method because of GetFileNamespace one of TokenProcessor class does absoutelly strange things. J Also I recreate a new instance every tim ...Show All
Visual Studio Crash in setup.exe after VS2005 SP1 failure due to insufficient disk space
Dear all, Sorry if this question has already been asked but I cannot install VS2005 anymore on my machine. The scenario was: - Installation of VS2005 - Attempt to install VS2005 SP1. - VS2005 SP1 setup reports insufficient disk space to copy a file and ask to retry after making space on disk - "Retry" pressed after making space on disk - VS2005 SP1 setup reports an error and stops installation - Uninstallation of all VS2005 components - Attempt to install VS2005 The result is a crash in setup.exe. Error signature: EventType : visualstudio8setup P1 : 183 P2 : 8.0.50727.42_rtm_x86ret P3 : msi P4 : inst P5 : f P6 : ca_installassemblydef.3643236f_fc70_11d3_a536 P7 : - P8 : 1603 P9 ...Show All
Visual Studio Express Editions some (n00b) questions
ok sorry if it are stupid questions :( but atm theyre important to me :P 1) how do i create random numbers 2) im making a game atm and with the random numbers i want that everytime the number in the label changes(with a timer), there is a picture in the picturebox(so for example when nr1 is in the label i want a pict of a dog in the pictbox, when nr2 of a cat) without using whole time if label1.text is 1 then dog pict appears, if label1.text is 2 then cat pict appears... 3) is there maybe also some nice learning guide or something for C# (not the video one, i want to learn it at my own speed ;) (yes the video one goes to slow)) thx in advance well that was just an example, of course you wo ...Show All
