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

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).
NFR key for Veeam Backup for Microsoft Office 365
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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 Team,

Requirement :   I want to roll up the measure values(Qty/Amt) from Week-->to Month-->to Quarter-->to Year.

Issue : measure values are not rolling up.

Methodology Used :

Used roll up function in sql server and pushing the aggregated values in to temp table(#) . Then pushing the values from temp table  in to respective physical tables based on the column values (Fiscal_Year/Fiscal_Month/Fiscal_Quarter/Fiscal_Week).

Reason to use this method :  
Underlying table( mba_related_sales_by_day ) has billions of records . Henceforth can't afford to do repeated aggregations from Year table  to Quarter table  to Month table  to week table  as this consume lot of time . In order to reduce the timelines of the ETL processing ,used this method.

Please correct my code and help me  with the solution. Will appreciate your help in this regard.

Here is the code used in stored procedure.

IF OBJECT_ID('tempdb..#tmp_mba_related_sales_agg') IS NOT NULL
	DROP table #tmp_mba_related_sales_agg;

Create table #tmp_mba_related_sales_agg
datasource_id int null,
calendar_day smalldatetime,
fiscal_year int null,
fiscal_quarter nvarchar(100) null,
fiscal_month nvarchar(100) null,
fiscal_week nvarchar(100) null,
business_unit_id nvarchar(100) not null,
sales_item_hierarchy_level int not null,
sales_item_id int not null,
related_sales_item_hierarchy_level int not null,

Open in new window

I declare a serial connection
Public WithEvents serialCOMDiscover As New IO.Ports.SerialPort

Open in new window

and I use the following code in one form to listen for the interaction:
  Private Sub DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles serialCOMDiscover.DataReceived
 strDataCOM1 = serialCOMDiscover.ReadExisting
                wirelessArray = strDataCOM1.Split(New Char() {Chr(13)}, StringSplitOptions.RemoveEmptyEntries)
end sub

Open in new window

I would like to be able to still use this connection in another form (a different form) in case I need to write something over to the COM port.
Morning techs,

I work for a large Computer Aided Dispatch software support company.  We supply the HW and SW that runs in Police and Fire Departments all over the world.  

At my Tier, the Tier one we basically gather logs and screenshots from the dispatchers computers to escalate tickets to the Engineers.  There is an error report functionality but the DISPATCHER (whom you know is extremely busy) must MANUALLY run it themselves at time of event.  

Are there any *light* tools out there that can be installed onto the dispatchers computers that would log error reports automatically?

Computers are running Win 7 with just the dispatching SW

Thank you,
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?
I just started checking out MimiKatz and all that it can do. My question is simple (and complex to answer), what are some methods that can prevent/secure any cleartext passwords stored in memory and prevent an attacker from being able to retrieve those?

it seems that MS only release SQL server data tools for VS 2015 so that we can admin and develop even SSIS project within VS 2015, how about VS 2017?

it seems we don't have this option to develop SSIS package inside VS2017, am I right?
I am a C#.NET developer but have not yet touched Core. I am in the midst of a job changes and have some time, which I could put int learning the basics of .NET Core.

Is that a good idea?

I do not se many member in the few .NET Code topic areas, unless I am missing the bigger TA's.

On Demand Webinar: Networking for the Cloud Era
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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
Hello There,

I am trying to create two column report for labeling purposes, I followed instructions on the following link :

but the data keeps appearing on one column and not on both columns, I changed all sizes and tried tables and lists same results, it just wont populate the second column : ( .

Any help is very much appreciated.

Thank you in advance.
Guys, i have a question as specified above!

 '' Enable Double-Buffering for everything.
    Protected Overrides ReadOnly Property CreateParams() As CreateParams
            Dim cp As CreateParams = MyBase.CreateParams

            cp.ExStyle = cp.ExStyle Or &H2000000
            Return cp

        End Get
    End Property

Open in new window

I am currently looking for a way to detect if the "Pause Printing" option in the "See What's Printing" window is checked in Windows.

I've searched high and low, and looked into the Win32 native printing API (winspool) to see if there was such a detection available, but to no avail.

Is there anyone who has experience with a successful implementation of this detection?

I'm looking for a solution in either C/C++, or C#.
Hello all, I'm new in Exchange Server, and I'm installing at my office Exchange Server 2016, when I test it with the microsoft connectivity analyzer with the option "Exchange ActiveSync"  at I get the next tons of errors, and I dont know how to solve them :( , hope some one can help me, thanks in advance

Attempting to test potential Autodiscover URL
Testing of this potential Autodiscover URL failed.

Attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.

The Microsoft Connectivity Analyzer is checking the host for an HTTP redirect to the Autodiscover service.
The Microsoft Connectivity Analyzer failed to get an HTTP redirect response for Autodiscover.
Additional Details
An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body of the response: HTTP Response Headers: X-FEServer: BLMEGNAHCXE Content-Length: 0 Date: Wed, 28 Jun 2017 01:53:57 GMT Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET
Elapsed Time: 178 ms.

Attempting to contact the Autodiscover service using the DNS SRV redirect method.
The Microsoft Connectivity Analyzer failed to contact the Autodiscover service using the DNS SRV redirect method.
Additional Details
Elapsed Time: 90 ms.
Test Steps
Attempting to locate SRV record …
need custom osd rename L-CITY-serial
L for laptop So for desktop +select city -7 serial computer

I already design that in powershell but it works in local client machine it doesn't work via sccm tasksqence. maybe need to know some tasksqence variables to do this . mdt , udi sccm
Hello Experts,
In continuation to :
I have a further enhancement request,
I have 2 Columns in SQL
ADGroup & O365Group

These columns contains values, which are separated by comma (,) these are existing groups in AD & O365
I want them to be integrated into the script so that when the new user is created he is added to the respective groups in both the places.

Thanks in advance.
Free Tool: Site Down Detector
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 have an unbound object frame which is an Excel Chart and want to connect the datasheet to an Access query in the database so it is always linked to the data source.   For now I have copy/pasted the information from the query to the datasheet and set up my chart but how do I directly link to the query so it updates in real-time?
When I use FileInfo to return the size of a file for me, it is returned in bytes. The code is simple enough.
FileInfo fi = new FileInfo(filePath);

Open in new window

The code then returns 16599774 bytes for the file in question.
size in bytesI then convert it to Megabyte by using the following code in an extension method.
return (bytes > 0) ? (bytes / 1024f) / 1024f : bytes;

Open in new window

I return the MB size as follows:
$"{Round(fileLength.ToMegabytes(),1).ToString()} MB";

Open in new window

I see that the size returned is 15,8 MB. When I look at the file properties however, I see this:
file propertiesWhen I view the file in Windows Explorer, I see a different size again
explorer sizeMy question is this:
1. Why the difference in file sizes between 15.8 MB and 16 599 774 bytes that I am seeing in code and in the file properties? Does it have to do with the data types? The bytes being long and the MB being double?
2. Why is the file size in Windows Explorer different again at 16 211 KB?
I understand why there is a difference between Size and Size on disk, but not between bytes and MB.
I want to create a program or a service which keeps an eye on the usb ports, and sends an email when the usb keyboard would be removed or tampered with!

Can it be done in the task scheduler, so that an usb event kicks off the task of sending an email to a certain address, in an some email application ?

Or do You know off an utility which can do it?
Hello, I have Windows 10 and Windows 7 systems  in a SBS2011 domain environment and at least once a day the windows explorer freezes and I have to reboot. After selecting reboot it hangs at reboot mode. I have to force it to shutdown and and start it again for it to work.  Most of the time windows explorer does not work and also internet access goes away too. I even can not access the C-Drive and the Network Drives. Nothing at all.  I have Symantec Endpoint and Malware Byte endpoint protection installed on these systems. Please help.

Thank you
I have a build definition for the build of a web project. The Visual Studion Build argument is set as below:
/p:Configuration=Release /p:WDPMergeOption=CreateSeparateAssembly /p:DeployOnBuild=true  /p:WebPublishMethod=Package  /p:PackageAsSingleFile=true  /p:SkipInvalidConfigurations=true  /p:PackageLocation="$(build.artifactstagingdirectory)\\"

In my log it says that the build has succeeded but there are no resulting dlls in my bin folder for me to deploy to the remote server. Since I am looking for single assemblies, I am looking to see *.compiled, *.aspx.cdcab7d2.dll ect.

Where am I going wrong with this?This is what I want to see. I am not seeing any of these dlls
I have a computer with windows 10 & suddenly the windows start button & search dialoge box will not respond at all.  Neither will the sound icon on the right side respond to any click on the mouse.  I have run spyhunter scan & pc-matic scan but that didn't help, so I am needing some assistance on this issue.

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.