adamscabana's Q&A profile
Windows Forms MouseUp Event onToolStripButton
It seems to be unable to trigger the MouseUp event on ToolStripButton, unless the MouseDown was happened on that ToolStripButton too, but I noticed this isnt same as others controls, which they trigger the MouseUp event even the MouseDown wasnt happened on them. I am doing manual Drag & Drop, so anyone can give me some advice The background here is the concept of capture. ToolStripItem does not support capture. When you MouseDown on a control, the control sets Capture = true, which means all mouse messages go to it until someone else sets Capture = true OR the MouseUp handler is executed and Capture is ...Show All
Visual Studio Express Editions Windows SaveFileDialogs
Hello, I'm working on a VB project, and I'm trying to use the Savefiledialog boxes so that users can... well save files, but i want to send the name of the file that they are saving to a text file. Just the name, not filepath EX: i want it to send: name.txt But it sends: C:/somedirs/name.txt The code that I'm using is If Me.SaveFileDialog1.ShowDialog() = DialogResult.OK Then Dim sw As StreamWriter = New StreamWriter("In_Use.stk") sw.WriteLine(SaveFileDialog1.FileName) sw.Close() end if (using) Imports System Imports System.IO Any help is greatly appreciated Thanks so much -Rober ...Show All
Visual Studio Tools for Office install addin in all office applications
Hello. I have a problem with installing my addin in all office programs at the same time. I want my button to display in word, outlook, ppt and xls … The button is only visible in word. In outlook other functionality is working (ex: catching the save-event) –but the button is not visible. In ppt and xls there is no button and no functionality… Oh – what to do <<O h – what to do >> Ask in a topic-specific forum, for starters. An Addin that spans all Office applications is NOT VSTO-related. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft. ...Show All
Visual C# message box in webapp
I need help. I need a message box OK/Cancel button in a web application (JavaScript ) to confirm a deleting row the problem is that i have not button "Delete" but i have a datagrid with a button column. Thx PS-could you post code and explanation In the ItemCreate event from the DataGrid put this: Control myControl = (Control)e.Item.FindControl( "MyControlID" ); myControl.Attributes.Add( "OnClick" , return confirm('Are you sure ');" ); ...Show All
Visual Studio Express Editions error [weird]
well i was about doing my everyday business when suddenly my C# common language (w/e that is) messes up, it doesnt support the font 'Arial' anymore, when i goto debug it'll say something like 'panel1 does not support font arial', changing the font fixes the problem Another problem this error causes is any other app written on C# that people have sent me does not work either, and i bet its for the same reason I repaired .net 2.0 using the installer but that still didnt fix the problem Just to let you know, i also didnt have the Italic setting on when writing this That is weird. I haven't heard of this before. Sounds like an iss ...Show All
Visual C++ Emacs Keybinding indentation problem
I set the keybinding under Tools --> Options --> Environment --> Keyboard to include Emacs style. Now the indentation's are definetly incorrect, here is an example of how it thinks it should look: int main() { int i = 0; //This line is definetly indented wrong } That is definetly not right. Any advice Thanks, Halsafar Okay other problems with this and a minor fix: Home/End = Start of document and End of document which is not how I know Emacs to be. Should be simply end of line/start of line Minor fix: Turned off auto-brace indenting, now the braces ...Show All
Visual Studio 2008 (Pre-release) Exception loading a window
In opening the main window of an application I am getting an exception. This appears to be in deserializing the BAML for the window, and gives no clue on where the source of the issue is. If someone in MS could look at the stack trace and point in the right direction that would help. Declarative programming needs much beter diagnostics than procedural coding since I have no idea what part of the file is causing this. at System.Windows.TemplateNameScope.System.Windows.INameScope.RegisterName(String name, Object scopedElement) at System.Windows.Markup.BamlRecordReader.DoRegisterName(String name, Object element) at System.Windows.Markup.B ...Show All
Windows Forms MDI child window and buttons not responding
I am writing an order entry app. The main data entry windows is an MDI child window, which contains a tabcontrol with 5 tabpages, each representing a step in the order entry process. At the beginning of a cycle only a single tab page is shown; when a step is completed the next tab is shown. When an order is entered completely the tab pag ...Show All
Visual Studio 2008 (Pre-release) Quality of Drawings Q
Hello, I’m new in WPF, all my previous exp with drawings for Win is Win API, GDI+. I'm surprised by the quality of drawing in Avalon. Please note, I do it from my code: Ellipse es = new Ellipse(); es.Width = 20; es.Height = 20; es.Stroke = Brushes.Green; es.StrokeThikness = 0.5 MyPanel.Children.Add(es); What I got in result is a crappy GDI+ like pseudo circle... I sow some real nice examples of drawing with XAML (I can't use it by some reasons) - does that fact that I'm calling wpf from my code cause that, or I’m doing something wrong here Thanks. Alex, Drawing a circle u ...Show All
Visual Studio Team System Beta 3 Setup Error: Windows SharePoint Services is not configured as recommended by Team Foundation Server
I am trying to install Team Foundation Server Beta 3 as single server installation and installed all required software components. However, during the installation, it gives me "Windows SharePoint Services is not configured as recommended by Team Foundation Server" error under "Recommened Components" dialog box. I exactly have followed an instruction specified in setup guide for Team Foundation Server Beta 3 for SharePoint services installation. Could anybody tell me what the problem is Thanks in advance. Eric Read the installation guide. "When the installation is complete, a Web browser window opens and dis ...Show All
Visual Studio Team System Displaying custom build steps in the IDE build progress page.
When I start a build on my teambuild server from VS.net I get the build progress page, I'd like to know if it's possible to display custom build steps in the "Build steps" list of this page. I'm doing a lot of customized tasks in the < AfterDropBuild > section of the CustomAction.targets file and the build step that correspond to this is "Copying log files to drop location". I'd like to add build steps like "Building setup", "Deploying binaries", etc... Any idea See my post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=263931&SiteID=1 --MikeH ...Show All
Windows Forms Invalid cast exception when sorting a BindingList(Of T) class during IComparer
Ok, I have read, I have searched, I have converted C# to VB, but I cannot figure out what I am doing wrong here. This all based on the following two articales: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnforms/html/winforms02182005.asp http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx I have a custom business object "SPSFoundItemInfo" that makes up the elements of a custom collection class called "SPSFoundItemList" and I implement IComparer in "SPSFoundItemComparer". See all the code below. The problem is, on the bolded & underlined stateme ...Show All
Visual Studio SQL Expression field with ACCESS database
We just ported our Crystal Reports application from Visual Studio 2003 to Visual Studio 2005. We are using a MS Access database. For the most part, everything seems to work as before, except the SQL Expressions no longer are considered valid. The error message says that it is a Query Engine Error: DAO Error Code 0xc03. Any ideas about what would cause this or how to get around it The database and tables have not changed. Hello, I tested this out and it worked fine for me. My SQL Expression was very basic though. Do you have sample text for a SQL Expression that failed for ...Show All
SQL Server How to generate a report containing multiple single page reports
I am using SS 2005 RS. I am able to generate single page pdf reports by passing "id" as a parameter. Now I need to send multiple ids as parameter and generate one big report which would contain reports for all the ids supplied on separate pages. Is this possible If yes, then how do i do this. What I have tried so far is, I created new report with a list control and added single page report as a subreport to this list control and grouped this list control using id parameter. When i send multiple ids in the parameter, for example 3 ids, it generates 3 page report but only for the first id. So it generates report for the first id a ...Show All
.NET Development ToShortDateString()
Using ToShortDateString with the culture set to en-GB should rerturn a string in the format dd/M/yyyy (UK English) but instead the string is formatted M/dd/yyyy (US English). Does anyone know if this is a known bug Web.config setting < globalization culture = " en-GB " uiCulture = " en-GB " /> ToShortDateString call birthDate.Text = Profile.birthDate.ToShortDateString(); Hi Neza, Thanks for contacting with Microsoft. I'm trying to reproduce your problem, but everything goes well. Would you please leave your email for me to send your the CurrentTest sample c ...Show All
