mbudiman's Q&A profile
Visual C# DateTime
Hi. What I want to do is display the current time, or the current day in a MessageBox.Show method. Can someone tell me how to do this. I know it has something to do with the DateTime method. Thank you for any help provided. // displays the current date number MessageBox.Show(DateTime.Now.ToString( "dd" )); // displays the full name of the day ( ie Monday ); MessageBox.Show(DateTime.Now.ToString( "dddd" )); ...Show All
Smart Device Development Can the .NET compact framework meet my application requirements?
Hi all, This has been a subject I've been researching for a while now and I am still unsure on how best to meet the requirements I have. We have a need to design a mobile application that can run on PDA's or Smartphones or both. This application needs to be able to interface with the device built in camera (if one) and needs to be able to interface with some kind of GPS device. This GPS device needs to be accessed externally via bluetooth ...Show All
Visual Basic Display a list of files being copied during the copy process.
Im using the My.Computer.FileSystem.CopyFolder object to copy the contents of a folder on a CD-ROM to a folder on the harddrive. Is there anyway to have a label on my form that changes with each file being read. All my code is atm is this: My .Computer.FileSystem.CopyDirectory(UpgradeProgPath.Text, CurProgPath.Text, True ) Just a simple label that says "Copying: filename.ext" IE: Copying update.exe And have it change for each file ...Show All
Windows Search Technologies IFilter Preview
What interface and registry settings do I use to supply the picture for the Preview box in the Windows Desktop Search window I tried adding an IViewObject2 to my IFilter DLL but it never gets called. We do not have an official way of doing previews at this time...as our preview architecture will be changing in the future. There is an rather in-depth unofficial description of previewers and other things here http://spaces.ms ...Show All
Windows Forms usercontrol with a combo databinding problem
Hi all I'm a new winforms developer, but I've been using .net for a few years doing web development. I recently made a usercontrol, a combo box pre-filled with state codes and state names, which uses a collection class. My test app has a datagrid that when clicked, pops up a detail form for edit of the clicked record. The main form exposes it's dataset, and the child form gets passed the currency manager and dataset for e ...Show All
Windows Forms Change cursor to hand on context menu
Hi, How to change mouse cursor to hand on context menu Thank's Alexei Hi begginer You could change the cursor to your choice by using this code in form load Cursor = new System.Windows.Forms.Cursor(@"yourcursor.cur"); Regards Joy ...Show All
Software Development for Windows Vista [Editor] Property Attribute
I would like to re-use the "InterfaceType" editor and the "MethodName" property editing capability available in a MethodInvokeActivity. Is this available for new activities to re-use If it is possible is there an example that shows how I do it Thanks Pete Pete, To reuse the type selector, you just need to attribute your activity property with the Editor attribute: [Editor(typeof(TypeBrowserEditor), typeof(UITypeEditor))] To have a drop dow ...Show All
Microsoft ISV Community Center Forums history of vba
does anyone have something about vba's history I can't find anything about vba ...Show All
Visual Basic Calculation
I have a problem calcualting the tax for sale and the number of gallond of gas a person put in. Here is the code so far i have. Public Class Form1 Dim price As Single Private Sub btnCalculate_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click Dim subtotal As Single subtotal = 0 subtotal = price Dim txtNumberGallons As Double txtNumberGallons ...Show All
Visual Studio 2008 (Pre-release) inheriting from itemscontrol - not able to bind to itemssource
I have a situation where I want to wrap a (custom)panel with some stuff (scrollviewer, track and some buttons). Therefore I created a new class that inherits from ItemsControl. In it, I use a style to set my panel as the itemshost. However, when I use this usercontrol, the itemssource is always null! < cft:TijdslijnVisualisatie Grid.Column = " 0 " Grid.Row = " 1 " DataContext = " {Binding ElementName=Comp ...Show All
SQL Server 100% Stacked Column chart
I'm not able to get my 100% stacked column chart to display the "y axis" in a range between 0-100%. It continues to display 100%, 1000%, 10000%. Yes i have divided the data by 100. (see below). thanks. here is the data on the 100% stacked column chart that i'm working on: here is the sql result set -- this is the same resultset and query used in crystal. resultid prodid complete_date prodname 101 52 2006-02-08 09:37:13.000 NU ...Show All
Visual Studio Tools for Office auto open vba form on excel workbook start
i have a form in excel VBA which i want to open when the workbook it is in opens. any ideas thanks. You can do this by setting the Visible property on the VB Editor main window, like so: this .Application.VBE.MainWindow.Visible = true ; ...Show All
Visual C# Accessing properties dynamically
Hi folks Newbie question - please be kind! I want to access properties dynamically. I have the property name as a string "MyProp", and I want to get the value myClass.<MyProp> . My background is in dynamic languages where you would simply eval() a string to do this kind of thing. How is it done in C# I don't have a lot of time to spend on this, so I'd appreciate any pointers... Thanks Mike - very cl ...Show All
Windows Forms DataGridViewImageColumn problems
When I add a DataGridViewImageColumn through the designer it appears in my U/I and running the application correctly draws the result. However, when I move on to other tasks and then come back to that grid, the column is gone. Looking through t ...Show All
Visual Studio Team System Collaboration Over Internet
Does the current beta 2 version of TFS support project collaboration over internet I follow the installation guide comes with the distribution and the visual installation walkthrough at http://www.oazabir.com/vsts/index.html , but the result is pretty much a system that could only support team collaboration for members in the same domain rather than a system that could bring developers together from all parts of the world via internet. ...Show All
