M a t i a s's Q&A profile
Microsoft ISV Community Center Forums How to get the date of the next coming Monday?
Hello, everyone here! I need to set up a routine followup schedule in my Access 2003 database. The start date of a subject is the first Monday after being enrolled. So I am wondering if there is a simple way (like a function or something) to request the date of the first coming Monday. Thanks a lot for any suggestion! lunaa Thank you so much, ADG! I will plant your codes in my database~ lunaa ...Show All
Smart Device Development Sample Windows Mobile 5.0 Pocket PC SDK Projects
Hi all, I was just having a gander through the sample projects provided with the WM5.0 SDK and noticed that the CPP (C++) projects seems far superior to those of CS (and VB). For example, the listView example project allows ListViewItems to be editted (pops up the SIP to enter text) within the control by tapping the relevant ListViewItem three times - is this not possible (editting the Text of a ListViewItem) then with in C# (Does C++ over more power in terms of developing mobile apps ) Excuse my lack of knowledge here, but C++ is not classes as managed code is it Also, if the platform supports TextBox controls, you can set a ListViewSubItem to be of this type ...Show All
Windows Forms How can I hide the caret of a RichTextBox control?
Hello, Can you please tell me how can I hide the caret of a RichTextBox control completely while my app is running Thanks. This will completely hide it: Set the timer1.Interval = 1; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WindowsApplication2 { public partial class Form1 : Form { private bool hidden; private const UInt32 WM_LBUTTONDOWN = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting the mouse position in screen coordinates using C++ (no .net)
Hi, I'm quite new to DirectX, and C++... I'll start with what I'm trying to acheive: I'm aiming to get a bunch of textured cubes on the screen, and for the user to be able to pick them up and move them around, using the mouse. I've got the cubes (well, squares at the moment), and I can get input from the mouse so that when the mouse moves the camera moves. However, in order for the user to pick up a specific cube, I need to know which one the mouse is over at that point in time, therefore I need to get the screen coordinates of the mouse. All I seem to be able to get at the moment is the change in x and y of the mouse since the last poll for input. If anyone can tell me how to do that that'd be great! I've read stuff about getting th ...Show All
SQL Server Need Information about Processing and Aggregations (Update / Referenced Dimensions / Many to Many)
HI! I am looking for some information about processing of complex big models with partitioning. facts: we need a lot of aggreations have several dimension with 2 mio. members have partitioned the cube and want to process only a few and not all partitions want to process dimension by update (does not unporcess old partitions) or increment update have some dimensions with references relationship to the partitions may have linked measuregroups questions: update dimensions processing does this unprocess a cube or partition we have the problem that our partitions get unprocessed maybe if its referenced by ohter dimension or it is an parent child dimensions are there any circumstances where a ...Show All
Visual Studio Visual Studio 2005 - Installation doubt
I've installed SQL Server 2005 Client that have installed "Microsoft Visual Studio 2005 Premier Partner Edition - ENU" with only sql server related project avaiable. Now I wanna install "Microsoft Visual Studio 2005 Professional Edition" for VB and C# projects. Is it possible or I have to uninstall the other version of Visual Studio All software comes from company's MSDN subscription. You shouldn't have any issues. They all use the same version of Visual Studio 2005. The only thing being added is new tools to the tools provided by the IDE. I have done the exact install you are talking about SQL server then VS 2005 many times and never had issue. Hope this helps. ...Show All
Windows Forms TreeView and ListView Border Colour
Hey guys, I have a panel sitting next to a TreeView on my form, and I want it to closely match the TreeView in terms of appearance, so I've set the background to SystemColors.Window. All good so far, except the TreeView (and ListViews too, I've noticed) has a light bluish-grey border on Windows XP (and I guess it's greenish-grey if I were to switch to the 'olive' colour-scheme). This border colour doesn't seem to be available in the SystemColors class, nor can I find a match in the ProfessionalColorTable class. Is there *any* way (even using P/Invoke) that I can determine the colour of the border of a TreeView in .NET Cheers, Matt ...Show All
Visual C# Byte[] to bitmap
I have a problem... I have an access database (database.mdb) where I have an ole-object. In that field there is a bitmap I will have get this field and I get an array of bytes Later, I will get the bitmap of this array: if (!(oStudent.Photo == null )) { if (oStudent.Photo .Length > 0) { System.IO. MemoryStream stream = new System.IO. MemoryStream (oStudent.Photo); stream.Write(oStudent.Photo, 78, oStudent.Photo.Length - 78); Image img = Image .FromStream(stream); //bmp.Save(stream, ImageFormat.Bmp); //bmp = new Bitmap(stream); stream.Close(); } } picPhoto.Image = bmp; On several other websites they say that this code is correct, but still I have an e ...Show All
Smart Device Development How to check whether my PDA is connected through GPRS using .NET Cf code?
Hi, In my application, i want to check whether my PDA is connected through GPRS How do i check this Are there any registry entries for this Hi Do you want to check whether the PDA has an active GPRS connection If you do so, and you are using Windows Mobile 5.0 then try the following State and Notification Broker properties: SystemState.ConnectionsCellularCount - gives you the number of open cell connection (GPRS/UMTS...) SystemState.ConnectionsCellularDescriptions - name of the open connection ...Show All
Visual Basic Unread Emails
In my application I have a button that wil launch the user's default email program. Is there anyway to hook in to the email program to determine how many unread emails exist so that I can display that value in my app thanks tattoo ...Show All
Software Development for Windows Vista CredProtect etc
I wonder if anyone is using CredProtect, CredUnprotect etc in association with ICredentialProvider and ICredentialProviderCredential Hi Philip, I wish I'd seen this earlier -- 6 months isn't exactly a fast answer, sorry. Currently we are using CredProtect etc. in a few places internally. We plan to update the sample credential providers to show this usage soon (as soon as we fix the last few Windows Vista issues). At the time we wrote the samples, CredProtect didn't exist. In fact, it was in writing the samples that we realized the need for a public way to encrypt the credentials. Hope this helps, Stacey Doerr ...Show All
Visual Studio 2008 (Pre-release) date problem in wcf
i have strange scenario. i have class employeeinfo methods: Datetime birthdate From windows form : i created proxy client and assigning a value to the birthdate datamember. and pass the class to the wcf method when i access the value in that method i am getting the value 1/1/0001 which is the minmum value. i am getting string values only date time datatype values are missing. (using Encoding as Text in configuration file) pramod oh, you describe match the common seen dataset problem which discussed here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1249302&SiteID=1 basically when you use untyped dataset and you need to generate proxy, you need to use /r:[yourpath]sy ...Show All
Visual Studio Team System MDX Query for Number of bugs found and fixed in each build
Hi All, I am trying to create a chart which displays the number of workitems/Bugs which have been opened and fixed in each build. So on the X axis, display the build numbers, and on the Y axis display the number of bugs opened and resolved. I have been able to create the charts separately - ie bugs opened (FoundIn.build) each build, and in a separate report resolved (using Integrated.build). But I can't seem to find a way to combine the two into one chart. If I was in SQL, I think could do a cross tab query to return all the build numbers, then the number of bugs opened and bugs resolved for each build. How do I do the equivalent in MDX Could I do this using calculated members I tried the following query and this returns the ...Show All
Microsoft ISV Community Center Forums Filter string in GetOpenFilename method
L/G, I wrote the macro below in order to be open particular type of files in Excel. In fact it is a text file, but it has always the same name, let's call it "AAAA". I would like to have a filter in order to be able to see only this file in folder when i use GetOpenFilename. But the filter string in GetOpenFilename method doesn't work. The code shows all the files in the current directory. What is the right filter string Any help will be appreciated. Here is the code Private Sub OpenAAAA() Dim strAaaaFullFileNm As String Application.StatusBar = "Opening AAAA" ChDrive ThisWorkbook.Path ChDir ThisWorkbook.Path strAaaaFullFileNm = Application.GetOpenFilename("AAAA file, AAAA", 1, &qu ...Show All
Visual C# How to write typedef structs and unions in C#
I have this code from a C++ project I want to migrate to C#. How would I write this in C# typedef struct _hdr_struct { char fileType[ 4]; union { char fileVersion[ 4]; struct { char v; char major; char dot; char minor; } version; }; } HDRSTRUCT, *LPHDRSTRUCT; // Then later char buffer[ 1024]; // code to fill the buffer LPHDRSTRUCT lpHS = (LPHDRSTRUCT) &buffer; char major = lpHS->version.major; I appreciate short and to the point answers... but any chance for a little elaboration on that Maybe clue me in o ...Show All
