orouit's Q&A profile
Windows Forms Windows Form Designer generated code
Hi! I'm developing now some UserControl and have a question about Designer generated code. After some control was placed on some Form, Designer generates code which will be placed into the InitializeComponent() function. The question is How can I effect the code which will be generated by Designer after the control droped onto the Form Thanks in advance, Alexey I always thought I could find anything, but after continues searches I still have no result. Would you be so kind and give me a link to that article Thanks in advance, Alexey ...Show All
Visual Studio Error using sub reports in server mode
I currently have a report engine that generates the rdlc file dynamically. I render the report with the report viewer control in Server mode. I have a subreport that exists on the report server that I am trying to include in my report but when I do I get the following error: Error: Subreport could not be shown I have been able to create and run this report successfully in the designer and my rdlc file I create dynamically is essentially the same as the one that runs fine in the designer. The error gives me very little to go on so I am having difficultly troubleshooting this error. Any suggestions would be greatly appreciated. You can programmatically call ReportViewer.ServerReport.Render(). Th ...Show All
Smart Device Development textbox flickering
I want to use a multiline textbox for editing purposes. the best way to reduce flickering of the textbox once the text reaches a new line is this code. textbox1.SelectionStart = textbox1.TextLength; // put the cursor at the end of line textbox1.SelectionLength = 0; textbox1.SelectedText = str; textbox1.ScrollToCaret(); is there a better way to eliminate totally flickering I saw people are using API calls. if you have a working example would u mind to share with me Thank you You need to pass those 2 arguments as IntPtrs. The null argument is easy... just explicitly cast it to an IntPtr. Unfortunately the string is a bit more of a pain. The easiest way to do it would be something like this: Str ...Show All
.NET Development broadcast messages to all connected clients
Hi, i want to devlop a message server,which can broadcst messages to all connected clients. i have a VB application which is client side,i am updating the sql server 2000 database through webservice,written in .net. whenever a client updates the database.all connected clients should get a pop up message in their machine. how to implement this.. please give a solution........ Thanks & regards jecco That is OK, you can achieve stability in UDP with very less work. The main theme of the question was Broadcasting which is not provided by TCP at all and you have to Loop through all the connected client instances to send the same message to all of them which c ...Show All
Visual Studio 2008 (Pre-release) The located assembly's manifest definition does not match the assembly reference.
I am currently working on a WPF application in which I need to reference a custom control within the XAML. I am using the following line to reference the custom control: < ResourceDictionary x:Class = " Client.JetStream.Wpf.OfficeStyleWindow " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:ctl = " clr-namespace:Controls.Local " > < ctl:TitleBar DockPanel.Dock = " Top " Title = " {TemplateBinding Title} " Icon = " {TemplateBinding Icon} " /> The custom control is in the same assemb ...Show All
SQL Server Get week number with changed @@datefirst question
I want to get the week number (according to ISO rule i.e. if most of the working days fall in the JAN set it to as week number 1). I know one stored procedure is available at MSDN to achieve this task. It works fine for me if the @@datefirst is set to 1 (i.e. Monday) but i have a strange requirement of calculating the week number according to ISO rule but the start date of week can be any day for example Saturday. When I try to run that procedure with my unique criteria I get wrong week number for some years Can any one tell me the more generic solution Your help is appreciated thanx What I understood is, 1. Need to find the Week Number for the Given Date 2. If the Jan-01 of the year fall after Wednesday then it wil ...Show All
.NET Development Uninstall CTPs/RC1? failing.
I am currently running into an issue with the uninstall tool. It recognizes that I have a version of Net 3.0 install and attempts to uninstall it. Soon after it prompts me for vs_setup.exe, which I do not have on my machine in that location. I choose to browse, and find one under %windows%\Microsoft.Net\Frameworks\v3.0, unfortunatly I receive and error stating this is an invalid msi file. I notice under this folder I also have wcf, wcf(2), wpf, wpf(2), which seems kind of odd. Attempting to uninstall from Add/Remove programs also fails, stating that I need to uninstall WCF which is also not possible. Any help would be greatly appreciated Joe If the uninstall tool is not working try the following: ...Show All
Visual Basic Installing 90 trial version of VB 2005 Pro
I have this file on my hd: En_vs_2005_Pro_90_Trial.img what do I do with this file now Is it supposed to be an iso Or failing that use some CD Burning software which recognizes Img or Iso format files to burn a CD and then once burned run the setup.exe. The versions of of CD/DVD burning software from Roxio, Nero both support ISO images. ...Show All
Visual Basic windows folder
hi, simple question this time: how can i get the folder where the windows is installed into thnx Environment.GetFolderPath( Environment.SpecialFolder .System) will return "C:\windows\system32" Path.GetDirectoryName (Environment.GetFolderPath(Environment.SpecialFolder.System)) will give you C:\windows - Windows being of course your actual instalation directory which is sometimes winnt ...Show All
Visual Studio Tools for Office VSTO version 2003
Where can i download VSTO version 2003(VS 2003) I can not find the link to download. Only VSTO version 2005 is available. If you're trying to download from an MSDN subscription, try contacting the on-line Concierge or some other support channel on MSDN. Please note, however, that VS 2003 has probably been discontinued from MSDN. If you don't have an MSDN subscription then I don't believe it's possible to download VSTO at all, except for the "second edition" (VSTO 2005 SE) for creating Add-ins. ...Show All
Visual Studio Express Editions Null Reference Error
This is still being a problem for me. Public Shared Sub loadcw( ByVal vary As String , ByVal num As Integer ) Dim tmp As CheckBox Dim tmp2 As CheckBox Dim tmp3 As TextBox If vary = "C" Then tmp.Name = "C" & num tmp.Checked = True ElseIf vary = "W" Then tm ...Show All
Visual Studio Team System Using variables in scripts
Hello, I've been reading Gert's post about using variables in scripts ( http://blogs.msdn.com/gertd/archive/2007/01/08/variables-to-the-rescue.aspx ) and have been trying it out. I don't think it works. Here's the steps I followed: Created a new project Imported a schema Built the project [it was successful] Added a new blank script to the Post-Deployment folder Edited Script.PostDeployment to include my new (still blank) script Built the project again (still successful) Added the following line to my new script: :setvar drive "C:" Built the project again This time the build failed with the error: Error TSD164: Syntax checking failed : Incorrect syntax near :. So it seems to me that u ...Show All
Windows Forms Cached versions - limit to 2 or 3?
If a user installed 10 versions of the app, there would be 10 cached copies on their PC. How can I limit that to only the latest 3 or 4 with the Project Properties in Visual Studio Ian Hi, with ClickOnce, there can be a maximum of two versions of your application installed on client at once - the current version and one before that. You can revert to a previous version using "Add and Remove programs". However, there can be "unlimited" application setup versions on the installation server... Andrej ...Show All
Community Chat SaveProjectAs
Ok...After hearing some complaints on this these boards about not having a "Project Save As" that saves the entire project to a new destination and name...I created this addin for VS05 that does just that. The addin creates a 'Save Project As' menu item off of the file menu and allows the user to select a VB or C# project file and then select a new destination directory and a new name for the project. All standard dialogs used. you can download the xcopy deployment files from: http://codegallery.gotdotnet.com/SaveProjectAs The zip file contains two files: SaveProjectAs.AddIn and SaveProjectAs.dll and all you have to do to get it to work is to unzip the files into your addin directory... Please use this thread or ...Show All
Visual C++ Get the line of code something was executed on.
Language: C++/CLI .NET ---------------------------------- When you write an application and it throws an error it usually displays an error dialog. In this dialog it contains a description and a detailed report. In this detailed report it contains the line of code that the error was thrown on. What I want to do is get the line of code anything is executed and display it in my application. So for example, I want to show what line of code my function was called on and display it in a report to the user. Is there anyway to do this without hard coding it into the code (There must be since it is done in error dialogs, but I mean, how is it done ) Wow, thank you. That was exactly what I wanted. I can now do: txtbox->AppendText(__LINE__ ...Show All
