jaegd's Q&A profile
Microsoft ISV Community Center Forums Running a macro if new mail if from a specific address
Hello, I'm currently trying to write a macro that is run when new mail is received in Outlook 2002 (possibly XP not sure though) I would like the macro to check if the new email is from a specific address (in this case sales@falcontrunking.co.uk ), delete the email, and display a message saying "There is a new message in the Sales Inbox". I know how to run a macro when a new message is received and I know how to show a message box saying "There is a new message in the Sales Inbox" but I don't know how to check if the new message has been received from a specific address. Can anyone help me This should do what you're looking for. You may need to adapt it slightly to fit your ...Show All
SQL Server Locking Issue
Hello everyone, We have an unexplainable problem concernaing locking in SQL Server 2000 sp3a. Here is what we can see using Enterprise Manager: Process ID Lock Type Mode Satus Owner Index Resource ---------- ---------- ----- ------ ------ ------ ---------- 112 KEY U GRANT Xact idx1 (fd0066dd24ee) 112 PAG IU GRANT Xact idx1 1:215772 112 ...Show All
Smart Device Development Getting the Next Calendar appointment start time using state and notifications broker
Hi, I want to get the next appointment start time usring the SN Broker. Ex. DWORD dwValue = 0; HRESULT hr; hr = RegistryGetDWORD(CALENDARNEXTAPPOINTMENTSTART_ROOT, CALENDARNEXTAPPOINTMENTSTART_PATH, CALENDARNEXTAPPOINTMENTSTART_VALUE, &dwValue); However, when I look at HKLM, System Appointments Next Start time, it is stored as a 64 bit value ( I believe a FILETIME value). How is it possible to get this value using the SN Broker and convert it back to a Time format thanks. Just wanted to add that since this is a 64 bit value, you need to use RegCreateKey ReqQueryValueEx - into __time64_t value and then in case of MFC - new C ...Show All
Windows Forms CellValidated event not firing
I have a DataGridView on my form. I have wired both the CellValidating and CellValidated events. In the CellValidated event I perform some numeric validations and Cancel if the data entry is incorrect. In the CellValidated event, I call methods to update some textboxes on the form that contain numeric values (i.e. Order Total). My problem is that I've modified the form (not the DataGridView) and now when it runs the CellValidating event gets fired but the CellValidated event does not. I can go back to a prior version in source control and get the correct behavior. Any ideas why this would start happening Hi, Are you using VB If so, it happened to me a few times that the "Handles" clause at th ...Show All
Windows Forms How: Cross Thread Operations
Hello everybody. What is the way of accessing something from another thread.... For example, I create an instance of a form and show it... Then I create a new thread and start a method in it.... On the last line in this method I want to close the previously showed form.... Could you point me some directions about this .... thank you in advance! if you close the previously shown form that initialized/instantiated the thread you are running then really you are closing your application. you can iterate through the Application.OpenForms collection which gives you the collection of forms that are open if this helps ...Show All
Software Development for Windows Vista Workflow Compile Error
I use the following code to compile my workflow WorkflowCompiler compiler = new WorkflowCompiler(); WorkflowCompilerParameters parameters = new WorkflowCompilerParameters(); WorkflowCompilerResults results = compiler.Compile(parameters, strArr); and I got a compile error "The root activity is invalid" The xoml file of my workflow begin with "<ns0:mySequentialWorkflowActivity ... ..." I think this is the problem, because this is the type I defined myself public class mySequentialWorkflowActivity : SequentialWorkflowActivity How can modify my compile code to compile with this workflow I'm using WWF beta 2.0 Thank you. the root activity ...Show All
Visual Basic Very Simple Custom Exception Throw, without building my own Exception Class?
I want to know how to easily throw a custom exception, without starting my own class or giving it a name I just want to throw up an error with text and a number. Can I replace the text and error fields of a generic error What is the absolue simplist way to do this Assume my error code is 100 and the message is 'value greater than 10'..then I'd like to do something like this: Dim myException as New Exception(100, "value greater than 10") If myValue > 10 then throw myException Thanks, Craig The following shows the use of a standard generic exception (albiet with a difference message) and the creation and use of a custom exception. That said - your are defiantely better using the ...Show All
SQL Server Slow Changing Dimension - A question
Greetings SQL friends, I am using the Ralph Kimball approach of having DIM_Effective_date, DIM_Expirey_date and Current_Flag. When I use the SCD transformation it works very well for populating the Effective and Expiry dates but how do I make it insert an 'O' for the Current Flag (for expired records) and a 'C' for non expired dimension records Your advice would be much appreciated. Greetings friends, I have solved the problem. The solution is as follows: The following components are all generated once the SCD wizard is complete (I did not add further components) The derived column component which generates the creation date time stamp for NEW OUTPUTS needs to be ...Show All
Visual Basic VB App crashing when run directly from IE
Hello, I have just written my first VB application so there is lots I don't know. I have tested it on a number of PCs and it works fine. I have uploaded the application to some webspace for others to download. My problem is that when the IE prompt "Do you want to run or save this program" is shown if I choose "run" the program just crashes. If the program is saved to a folder and then run it seems to work fine. The error message is something along the lines of: EventType : clr20r3 P1 : exchange2003imfkeywordmanager[1] P2 : 1.0.0.0 P3 : 45bd1a49 P4 : exchange 2003 imf keyword manager P5 : 1.0.0.0 P6 : 45bd1a49 P7 : f P8 : c6 P9 : system.invalidoperationexception Any ideas would be greatly appreciated as ...Show All
.NET Development How do I change my forms dataset using vb.net and SQL Express and drag-n-drop dataset wizards?
Hi all, I've been chasing down the multiple datasource issue. Where the ide was so unstable that creating a different datassource for each query was safer than attempting to modify an existing one. i.e. the datasource and all its work was being corrupted. ----- I now have a form which was created using the drag-n-drop dataset wizards. In my project I have a form which has a DatagridView based upon a dataSource /Dataset. I also have a Combo box based upon a completely different datasource/Dataset. I would like to copy the form into a new project and base the controls upon a completely new/different datasource/dataset which is a single datasource/dataset that has all my tables and underlying quer ...Show All
Visual Basic Display Same Object In Different TabControl Page
Currently i have one databasegridview in tab page1, how can i bring this databasegridview to the other tab page Thank you. Simply add the DataGridView to the controls of the tabpage you want, like this: Tabpage2.Controls.Add(DataGridView1) ...Show All
SQL Server Sample database Installation
Is anyone running SQL Server 2005 on XP Media PC I did install the program but even though I selected an installation of sample db's, they didn't install. Also, the option to install 'reporting services' was not available to be checked. I'm new at this and believe I need IIS installed. I looked and saw all kinds of IIS 'things' in a search. I don't know what I'm looking for. thx, Kat Hi Joey, thanks, I should get my xp pro laptop back this week, then I will install the Developer edition of SQL Server 2005 and get to work. Kat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are all the scrip codes for XNA?
I know almost all game develpement programs use scrip codes and I would reall like it is someone would tell me some I would like to know them all Also whats the code to make cheat codes The problem with your question is that XNA has no specific script codes. Each developer that makes a game using the XNA Framework will decide for themselves if they want to create their own scripting system for their game and they will either use an existing system (of which there are many) or implement their own. Also, there is no specific code to make cheat codes. Technically, I guess you would say that C# is the code to make cheat codes in XNA. If a developer wants to add cheat codes to his game (usually done for test ...Show All
.NET Development Unicode problem with .NET ODBC Adapter and OdbcParameter
I'm trying to use the .NET ODBC Adapter within a C# program. A simple program does an insert into table "u" having one nvarchar column "name", the actual value is passed as a parameter. So the code is quite simple: ... OdbcConnection conn = new OdbcConnection("DSN=xxx"); OdbcCommand command; string s; ... OdbcParameter p = new OdbcParameter("name",OdbcType.NVarChar,10,"name"); p.OdbcType = OdbcType.NVarChar; string sql = "insert into u (name) values ( )"; s = "A"; p.Value=s ; conn.Open (); command = new OdbcCommand (sql,conn); command.Parameters.Add (p); command.ExecuteNonQuery (); ... The problem here is, that the .NET ODBC defines the SQL datatype as SQ ...Show All
Smart Device Development GIF in Emulators
Hi, How can we display GIF images in emulators and smart phone devices I am using CF2.0, SP CE 5.0 Emulator, VS 2005 Thanks Thanks Sorry i mean SP WM5.0 Emulator I tried the code but Gif image is not not blinking or rotating ..It shows like JPG or BMP image How can i see the GIF image like the 1 we can see in a desktop Computer Thanks ...Show All
