Mike Hildner's Q&A profile
.NET Development Dataset Scalar query - riddle you this.
Hello all. I am struggling with datasets and the disconnected data architecture and hoping you kind folks can help me out. My question today is how do you create a scalar query from the information inside your datasets. For example, I have a datatable inside my dataset called customers. I want to create a calculated query which returns the number or count of the customers I have in my customer datatable and bind that value to a textbox so when a customer gets deleted/removed from the dataset, the calculated value will change in the textbox. I am trying to deploy the same concept as using a bindingsource. So, basically, when the customertable gets modified the scalar query will refresh the value of the textbox to show the appropria ...Show All
Visual Studio Express Editions which form event should i use?
Hi, I am going to create some fading effect while exit the form, which form event should i put in the code to start the timer (the effect code is put in the timer) I tried "Form1_formclosing" event but does not work.... Any one can help Thanks. Hi, using timer is not good idea, because before first timer tick form will be already closed. Here You have a good code : Private Sub MainWindow_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Dim egg As Byte = 0 For egg = 0 To 9 Me .Opacity = 1 - egg * 0.1 Me .Refresh() System.Threading.Thread.Sleep(50) Next End Sub ...Show All
Software Development for Windows Vista Implement a Workflow Parameters Editor
Hi, I want to implement a Workflow Parameters Editor, like the one in the 1.2 beta version. When the developer click on the "Ok" button of the editor, it will analyze if all the properties have been written, else it write them. Do you think that it is possible without writting lots of code lines Thanks for you help! This is acheivable, but not trivial. You will have to write a fairly big amount of code to parse code beside file and issue missing parameters. Using codeDom will simplify code parsing task, but will introduce additional issues and challenges. This is not easy to accomplish. ...Show All
Windows Forms Setting printer duplex programatically
How do you programmatcally set a printer to duplex The information I've found online indicates that GetPrinter/SetPrinter should do the trick, but so far I've had mixed results. I'm automating Microsoft Word to print documents. Some of the documents required to be duplexed. So far in my research I've found the following web pages that provide somewhat helpful information. http://support.microsoft.com/default.aspx/kb/315720 How to enable and disable a printer by using the SetPrinter function in Visual C# http://support.microsoft.com/default.aspx scid=http://support.microsoft.com:80/support/kb/articles/q140/2/85.asp&NoWebContent=1 How To Modify Printer Settings by Using SetPrinter http://support.microsoft.com/default.aspx ...Show All
.NET Development Calendar, Date and Time
I have to create a chat project. I am working on chat admin page. I have to be able to let the user use the calendar to select the date from the calendar and also user will select the time to schedule a chat. This is quiet similar to the outlook calendar scheduling. with the start time and end time. How would i do this. Also how would i populate the time in the drop down list box with am and pm Is this something that i have to have the data in the database This is my first time. Could somebody please guide me through this I would sincerely appreciate your help. Thanks Where can i find this control I am using visual studio 2003. It is for web application. Also if you can show me or send me some ...Show All
Microsoft ISV Community Center Forums Copy cell from one workbook and paste it in a different workbook
Hi all, I have a excel macro that reads and format tables. I would like to be able to paste the format tables in anyone of the opened workbooks. I want the user of my macro to select where to past the format tables by clicking in an abritary cell in any of the opened workbooks. I tried to do this with 'Inputbox', see code below but then I was locked to choose a cell within the workbook from where I ran the macro. Any ideas out there If bush = 1 Then Set MyChoice = Application.InputBox(Prompt:="Select the starting cell " _ & "from where the data should be printed", Type:=8) End If Grateful for help on this \Jonas Hey Jonas, This is a question of where do you place your code. If the code yo ...Show All
.NET Development date time
Is any way to make an application that gets the correct date time even if the user has changed it from the taskbar No doubt. Unfortunately, the DateTime.Now method returns the system time as set by the user "from the taskbar". ...Show All
Customer Care Framework MS Customer Care Framework
Hi, I have a MSDN CD released on May 2006 which has below mentioned softwares Biztalk Server 2004 ISA Server 2004 Exchange Server 2003 ISA 2004 SP4 Customer Care Framework Connected Services Framework 2.5 Host Integration Server 2004 Identity Integration Server 2003 with SP1 Office Live Communications Server 2005 SP1 Office Sharepoint Portal Server 2003 MOM 2005 with SP1 Speech Server 2004 R2 SMS 2003 with SP1 System Center Data Protection Manager 2006 Out othese i am trying to install Customer Care Framework and evaluate it. But in the CD i can find only installables for CCF app demos. I am not able to find any installables for CCF in the CD. But i can see developer edition for Biztalk server, CMS etc. Can anyone provide me ho ...Show All
Windows Forms language heredity form
i have tow form one form heredity from another form iwant when change the language in parent to change in child form with change language from arabic to english and from english to arabic iwant example thank you Check the sample at http://www.microsoft.com/middleeast/msdn/cpsrt.aspx#6 .It contains an Arabic\English UI. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem drawing into stencil buffer
I'm trying to draw a alpha-blended texture into the stencil buffer in order to mask a region of the screen. My test stencil texture is pretty simple; it's black with a large white circle in the center (same for the alpha channel). When I render the texture to the color buffer, I see a nice white circle in the center of the screen. However, rendering it to the stencil buffer creates a jagged circular mask region in the center of the screen. It still functions as a mask, but the borders of the circular region are jagged and inconsistant. Here's how I'm setting up the render states, etc.... Any ideas // Setup state to render to stencil buffer only graphics.GraphicsDevice.RenderState.ColorWriteChannels = ColorWriteChannels .N ...Show All
Smart Device Development Form closing event not fired
Hi, I have an application with only one form. If the user wants to close this form I want to ask him, if he would like to save his work. I'm trying to do this in the form's closing event. But this event is not fired. Has anyone any ide ralph Brendan Grant wrote: Does this app target the 1.0/1.1 or 2.0 framework If 2.0 consider using the FormClosing event instead as the Closing event has been obsoleted. Brendan, This is not the first time you answer a Compact Framework question as if it were a full framework one. Please, take care to read the question and to make a note of the forum it has been posted to before answering ...Show All
Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?
Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All
SQL Server Error when attempting to use SQL Server Import and Export Wizard
I'm unable to use SSIS packages after installing SQL Server 2005. Specifically when I first loaded a new Integration Services project in SQL Server Business Intelligence Development Studio the default SSIS package could not load, I get Package.dtsx in my tabbed document view but in the body of this window is a error message: "Microsoft Visual Studio is unable to load this document. QI for IEnumVARIANT failed on the unmanaged server." If I try to use the SQL Server Import and Export Wizard shortly after the window to select your data source I get a pop-up error message: This wizard will close because it encountered the following error: For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft%u00ae+Visual+Stu ...Show All
SQL Server Connect to SQL Server on a machine on another network?
Hi, I am hoping you will be of assistance to me and provide a little advice on what exactly is possible using SQL Express / SQL Server 2005 with regards to remotely connecting to a server. I am a final year undergraduate student studying computing sciences in the UK. As a final year project I am attempting to create a client-server database, where the client (a WM5 PDA) can connect to an SQL server hosted on a different machine (a PC). However, I must be able to connect to the server when the PDA is being used on any Wi-Fi connection. Basically I want the PDA to be able to connect to a database kept on the PC at home when you're out and about using the PDA's wi-fi. Is this possible If so, could you explain in 'dummy' terminology h ...Show All
Visual FoxPro VFP and SQL server 2005. Please HELP me out!!!
Hi, for the 3 weeks I m on a research nightmare. I m trying to use SQL Server 2005 and VFP and I don't know why but it is really difficult for me!!! I ve experience on VFP and SQL but very long time ago! What I m trying to do is a multiuser application were concurrent transactions will occur in a table. I ve read all about ISOLATION LEVELS etc. as much as my stomach can take about Microsoft SQL Server 2005. But in case of the following scenario I can't figure out what to do: A.USER A is taking a snapshot of table Customers. B. USER A, in Session 1 is taking a cursor of Customers tables, bringing it to the forntend (frontend will be VFP 9) and editing Customers ...Show All
