Microsoft Development





Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.

Share tech news, updates, or what's on your mind.

Sign up to Post

environment sp 2010 workflows on 2013 - no farm admin support, full control only 2013 workflows not available. JS within a page is ok.

I have a workflow which emails out certain list record information.
In this email, I need to put a link which will start another workflow (set to manual) without displaying the initiation screen. This second one can't be set to new/modified triggers. On a private LAN - assume user who reads the email is also authenticated to the list and have permissions to the list. Mobile access etc not needed.  The link can include whatever information needs to be passed (ID, list guid, ... )

I've seen several posts about this but none seem to skip the initiation screen. I don't mind them linking to a page with parameters which tend runs JS and then afterwards directs to the home page of site if necessary. I know how to do the JS to update the record appropriately but was hoping for a workflow based solution entirely. After the JS finishes I don't want to leave the user in the editform - they should never see the editform - just click on the link in outlook and it does the rest without users being involved.

I do not want to put links in the view of the list - only in Outlook
Free Tool: Site Down Detector
LVL 12
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I want to show the results on a details page that matches what shows in the dropdown list that I have on the create page. I was able to create different text for values in the dropdown. I am struggling with showing the text on the details page that is redirected after creating the customer. The details page shows the values 0, 1, 2, or 3.

For example, the Create view has a dropdown for Prospect Status with different values. I defined those in SelectListItem in the CustomersController. The value for Prospect Status in the database is actually a 0, 1, 2, or 3.

Customers/Create in CustomersController

        // GET: Customers/Create
        public ActionResult Create(CustomerModel model)
            if (model.Confidence == null)
                model.Confidence = new SelectList(new List<SelectListItem>(){

                    new SelectListItem(){Text="", Value="0"},
                    new SelectListItem(){Text="1 - Very Stable", Value="1"},
                    new SelectListItem(){Text="2 - Stable", Value="2"},
                    new SelectListItem(){Text="3 - At Risk", Value="3"},
                }, "Value", "Text");
            if (model.ProspectStatus == null)
                model.ProspectStatus = new SelectList(new List<SelectListItem>(){

                    new SelectListItem(){Text="Prospective Customer", Value="0"},
                    new SelectListItem(){Text="Existing Customer", Value="1"},

Open in new window

Currently we have TMG as web proxy and websense as web filtering
We are going to replace TMG with Bluecoat SG Appliance.

Hence I need to know which design is considered as best in terms of secure and efficiency.

We have 1500 users.

Any help would be appreciated.
Looking for a market research firm before launching a product? Any suggestions?
We have a installation with one
TFS2015 for building a webapplikation.
the deployment ist on a seperate webserver.
Now we have the problem that the TFS can't deploy because the Certificat of the webserver are expired.
We never deploy a certificat and we don't now who is the authority for the certificate
as workaround we are now using http for deploying the application.
Search folder are a very cool tool but difficult to use. We have exchange on-premises 2016 and outlook 2016 professional.

I would like to write a VBA to: add in mail context menu the option: "create search folder #senderdomain". This should Create a search folder called #domain including all the email sent from and to that domain.

I found that code:
Sub Application_ItemContextMenuDisplay(ByVal CommandBar As Office.CommandBar, ByVal Selection As Selection)
    Dim objCommandBarButton As Office.CommandBarButton
    'Add "New Search Folder" to the ContactItem's Context Menu
    If (Selection.Count = 1) And (Selection.Item(1).Class = olContact) Then
       Set objCommandBarButton = CommandBar.Controls.Add(msoControlButton)
       With objCommandBarButton
           .Style = msoButtonIconAndCaption
           .Caption = "New Search Folder"
           .FaceId = 1744
           .OnAction = "Project1.ThisOutlookSession.CreateRelatedSearchFolder"
       End With
    End If
End Sub

Sub CreateRelatedSearchFolder()
    Dim objContact As Outlook.ContactItem
    Dim strEmailAddress As String
    Dim strDisplayName As String
    Dim strFilter As String
    Dim strFrom1, strFrom2, strTo1, strTo2 As String
    Dim strScope As String
    Dim objSearch As Outlook.Search
    'Get the selected contact
    Set objContact = Application.ActiveExplorer.Selection.Item(1)
    'Get the contact's main email address and display name
    strEmailAddress = objContact.Email1Address

Open in new window

One department in our company still maintain their customer records and contacts in a spreadsheet document. They do lots of analysis and reporting on the data for their service. The data is also used for other purposes. There are numerous proper applications on the market which also offer the same functionality for their line of business but they seem adamant in keeping their trusty spreadsheet as their main 'system'. Can there be any risks limitations or shortfalls in using a spreadsheet almost as a proper system/database just so we can make them aware and consider they review whether a spreadsheet is the right tool for recording their data. It sounds an odd approach but need to ensure we have identifed the problems in their solution, if indeed there are any.
I've got a style/control template for a ListView which is a variant on the default (attached).

However, I can't for the life of me figure out how to change the colours of the selected row in the ListView and the MouseOver item. At the moment the selected item and the hovered item's background is too bright.

I've tried adding a Style for a GridView but I get a message saying this isn't supported.

Am I missing something in the ListView control template? Where are these "default" colours coming from?
Hello, I  have a Wordpress theme, on this theme I would like to reorder the some front page Widgets.  For a visual representation please see Webpage.jpg.

I would like to reorder the action hooks in the code below.  I want to swap A with B.

I would like to move number 6 (Execute Home Bottom Section) with 4 (Execute Home Mid Section).

I can set the priorities of all other action hooks, apart from number 4.  

* Template Name: Home Page
do_action( 'genesis_home' );
//* Force full-width-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

**// Execute Home Top - Slider image  1**

add_action( 'genesis_after_header', 'wsm_home_top');
function wsm_home_top() {
	genesis_widget_area( 'slider', array( 'before' => '<div class="home-slider widget-area">', 'after' => '</div>') );

**// Execute Home Top - Additional News Banner 2**

add_action( 'genesis_after_header', 'wsm_home_featured', 15 );
function wsm_home_featured() {
	genesis_widget_area( 'home-top-featured', array( 'before' => '<div class="home-top-featured widget-area"><div class="wrap">', 'after' => '</div></div>') );

**// Remove the standard loop 3**
remove_action( 'genesis_loop', 'genesis_do_loop' );

**// Execute Home Mid Section - Three layer widget section 4**

add_action( 'genesis_loop', 'wsm_home_loop_helper' );
function wsm_home_loop_helper() {
	echo'<div class="home-mid widget-area">';
	genesis_widget_area( 'home-mid-left', 

Open in new window

I have 5 yrs records in the production table consisting of 2013 records, 2014 records, 2015 record, 2016 records,
and 2017 records and I need to move the past 4yrs records to the Archive table and also delete from the production table
after moving them to the Archive table, leaving 1 year records in the production table.

My question:
How do I achieve this in the Where Clause by moving these records nightly in batches of 1 yrs each night.
Can you give me the script.

insert into my table (col, col2,....)
select into my table (col, col2,....)
FROM [dbo].[CandidateHist]
WHERE (CandidateTS < dateadd(wk,-12,current_TimeStamp))

Delete FROM [dbo].[CandidateHist]
WHERE (CandidateTS < dateadd(wk,-12,current_TimeStamp))
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

After you archive subset of records from original production table to the archive table daily, now both tables have similar data and increasing in size, what do you do next with the records on the production table?

Would you start deleting same records  from the prod table or the archive table, but they are archive purposes but the tables are growing rapidly?

I'm just wondering why I can't get specific error messages anymore in Visual Studio when an exception occurs.

For example, I know where this error occured because I'm working in that section of the application, but it used to highlight the line and tell me exactly what caused the problem, now I get a generic error like this:

An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "" to type 'Double' is not valid.

It no longer specifies the line number or highlight the error,

I attached a print screen

Thank you for the help!
VS2010 has a feature to "Restore Window Layout" to relay out all mainframe, menu, toolbars, and dockPanes, without restarting. How do I have my VS2010 wizard-generated MFC MDI app does this programmatically? Thanks.
Hello, I am a daytrader in the futures market.  I have four strategies I had a developer create for me using the NinjaTrader version 7 platform.  I plan on marketing these as a bundle product.   I would like to know if any of your products can help me protect the further copying of the product once it is purchased.   The previous products I have purchased in the past from other day trading companies use the Machine ID validation.  Once the product is downloaded, before you can use it, you must have your Machine ID sent to them and it can only be used on that particular computer.   I am looking for that same effect.
It is VC++ MFC app in VS 2017 Community under Win 7 Pro SP1.

It is very simple to send and process WM_NOTIFY from a dialog's child MFC control to it parent (or to other window.) In control cpp you fill NMHDR structure for the control, get its parent, and send a WM_NOTIFY message like pParent->SendMessage (WM_NOTIFY,...).

In the parent you set the entry in the message map like ON_NOTIFY(Notification code, ControlID, Message Handler) and the handler is called.

But if yoy set the control ID to ID of the modeless dialog box like IDD_MYDLG and fill NMHDR with dialog's parameters, the handler in the parent is never called. Of course, there is a hack: you can use any of dialog's controls to send the WM_NOTIFY, and all will work.

My question is: Is there any way to send WM_NOTIFY from the modeless MFC CDialogEx using its own  ID?
I need to make sure that if a particular value is set in a dropdown that a textbox has some text explaining why the other value is set.  It almost works.  What I did is as follows:
On the data tab,  I selected Submit Options and said to allow Perform custom action using rules
At that point the Forms Submit button was enabled and I added a rule as follows
If SomeDropDown has "SomeValue" and "RelatedTextBox" is not blank allow the submit.

It works in the sense that it won't save the form without the related text if the dropdown has "SomeValue", but it doesn't stick on the page with a message to fix it and just closes as though it is saving the data.  When I do enter "SomeValue" the form saves as expected.

What am I missing and how do I get the "error" condition to appear?
Good day  forum

"A WFP redirect record is a buffer of opaque data that WFP must set on an outbound proxy connection at
 the redirected connection and the original connection are logically related."
 Am working with  ClassifyFunctions_ProxyCallouts.cpp of WFP driver sample  (
 What is confusing me is this, being that am working on the (FWPS_LAYER_ALE_CONNECT_REDIRECT_V4) and (FWPS_LAYER_ALE_CONNECT_REDIRECT_V6) (Kernel mode)
 How do i set up proxy connection  at this layer.
 thank you
I have an access 2010 application distributed via the packaging wizard. It works well except that shortcut menus are nos available in forms.
For example, there is no way to copy or paste with shortcut menus.
In the source file they are available.
What should I do to make them available in the distributed package?
Thanks in advance.
Everything was going well... playing around with Visual Studio 2017 for the first time...

Had a weird problem (#1, but not really what the question is about where even though I set the Assembly Name and Root Namespace names, ApplicationName was still returning "WindowsApp1" when referenced... so I thought maybe it's building using that temp name when run from VS IDE.  So I compiled it into an app and deployed it.  Same result...

So I try re-opening the project - I can't open forms!  I can a new form, but when I try to open the main form, the only "main" reference I have is main.vb.  And when I open that, I don't have any code either!  I have one other form in the app and I can't open that either (but the code is visible).

I'd really like to continue this project but I need to see the forms!  HELP PLEASE!?!

(Classic Windows Forms app).
Get expert help—faster!
LVL 12
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Hi There!

I have a customer who is a developer. They have 12 staff. 5 Developers 5 support people, 1 director and 1 sales/admin person.

They have an action pack, which covers up to 10 users of Exchange, Windows CALS etc, and that's fine.

What they are trying to do it make sure they are correctly licensed for dev machines, dev environments and testing labs.

It used to be that companies bought MSDN Subscriptions but I think those are now only for individuals and not for use in businesses at large? I had heard about MSDN Platforms but when I checked the pricing the customer just about died.

Anyone know of a more cost effective way for a company this size to correctly license their environment?
Hi , When i'm downloading the excel file,i'm getting following attached error.How avoid this error

XML file output

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<recoveryLog xmlns="">


<summary>Errors were detected in file 'C:\Users\\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\PGARRIST\Report_Isys.xlsx'</summary>


<info>Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.</info>


-<removedParts summary="Following is a list of removed parts:">

<removedPart>Replaced Part: /xl/worksheets/sheet1.xml part with XML error. Illegal xml character. Line 1, column 267478.</removedPart>


I need to write bookmark with parameter in ssrs.
and I don't know the syntax.

Can anyone help me?
How to show columns?
Hi, new member here and first post. My goal is to create a basic tab control using the Win32 API that contains a canvas for rendering OpenGL. Please see attachment for my source code. I created a tab control with two tabs; the first tab contains a button and the second tab contains the rendering context. The first tab, when active, successfully displays a button. The second tab, when active, does not display the OpenGL canvas. The only way I can get the canvas to appear in the GUI is to exclude the tab control (comment out the CREATE_TAB_PANE macro in my example to do this). I am rendering the OpenGL context within a static control. Thanks in advance for your help.
language : c++
(tools : visual studio , acrobat reader)
thanks a lot

Microsoft Development





Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.