Microsoft Development

48K

Solutions

32K

Contributors

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

I have an MDI Form and a Login Form in VB.NET. When the user enters the data correctly, I present the mdi form that is the main one. When the user closes the MDI Form I want to present the Login Form again. So I want to know what to do to be able to present the same instance of the Login Form. I have tried several methods and none of them work for me.

Login_Form calls MDI_Form, when closing MDI_Form, present Login_Form again.

Please give me examples and what would be the best solution.

Regards...
0
Cloud Class® Course: Microsoft Azure 2017
LVL 12
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Hi,

Anyone can advice how to modify below script to find few hundred nested groups?

Tks.

Lucky  

Function Test-ADGroupMemberInfra  {
                Param ($User)

                Trap {Return "error"}
                $output= $User
                $output+= " * "
               
If (Get-ADUser -Filter "memberOf -RecursiveMatch '$((Get-ADGroup "CorpSvcs_IOE_Infra&VA").DistinguishedName)'" -SearchBase $((Get-ADUser $User).DistinguishedName)) {$output+= "True "} Else {$output+= "False "}

                $output
}


Test-ADGroupMemberInfra -User "jimmy05" >> d:\grp1.txt
0
SSRS Report Builder - Export to CSV issue; Double Quotes exist for each record.

We have a report that is scheduled to produce a CSV file.
This file is consumed by another application and requires specific formatting in order to successfully process the file.
The following entry has been configured within the 'rsreportserver.config' file:

<Extension Name="CSV (No Header)" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
                        <OverrideNames>
                              <Name Language="en-AU"> CSV No Header</Name>
                        </OverrideNames>
                        <Configuration>
                              <DeviceInfo>
                                    <NoHeader>true</NoHeader>
                                    <Extension>CSV</Extension>
                                    <Encoding>UTF-8</Encoding>
                                    <Qualifier></Qualifier>
                              </DeviceInfo>
                        </Configuration>
                  </Extension>

The file that is being generated from this contains double quotes at the start and end of each record (see below).
"""FORMAT BATCH IMPORT, STANDARD 1.0"""
"DREF1,DDATE1,DSOURCE,DCLRENTITY,DENTITYPE,LLDGCODE,LACCNBR,LAMOUNT1,LNARR1,LNARR2,LNARR3,LPRESCSTAT,LGSTTYPE,LGSTRATECODE,BIMPNAME,BCLRENTITY"
"180603,06/06/2018,AB,123,A,AB,123456789,-1234.56,Team Journal,21/05/2018 to 03/06/2018,12345,N,I,NA,TEAMJNL,123"

The output we need is shown below:
"""FORMAT BATCH IMPORT, STANDARD 1.0"""
DREF1,DDATE1,DSOURCE,DCLRENTITY,DENTITYPE,LLDGCODE,LACCNBR,LAMOUNT1,LNARR1,LNARR2,LNARR3,LPRESCSTAT,LGSTTYPE,LGSTRATECODE,BIMPNAME,BCLRENTITY
0
Hello. I need to create Offline Media to install OS and apps on some same notebooks. I need to enable Bitlocker. I have read it possible enable BitLocker in Task sequence in MDT tool. But my question is: where is kept the recovery key of Bitlocker if notebook isn’t connected to domain and all process of deployment is done from usb?
 Do you have any suggestions or best practices in this matter.
Thx in advance
0
Dear Experts,

I have an asp.net website that uses identity 2.1 (I'm pretty sure > 2.0 anyways as near as I can tell). It is written in visual basic. I ran into a weird issue the other day where people were logging in and getting this viewstate error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

So I followed the advice I found in the microsoft article and added a machine key to the web.config file so that no matter what it (hopefully) shouldn't get that error again.

Once the machine key was changed to one that I set now we had issues with anyone with an already existant authorization cookie on their computer, they were unable to login. I believe it's because the machine key that I set no longer matched the one that was used in their cookie. I'm not entirely clear how, but apparently it's part of how it's encrypted. If they clear their cookies, all is well - then they could login.

So one bit of advice I found searching on the web sounded super simple and super-easy. They recommended that you have some sort of set key in your web.config, like a guid or something and then you add it to your cookie also. Then, when you load the cookie, you can check the key and if it doesn't match your server key, somehow you invalidate the cookie.

I basically spent all day trying to figure out …
0
I setup main site on the IIS as an application and add virtual directories to it. My question is how do I address the MVC applications that would be published to the virtual directory. I try to use standard MVC addressing but it doesn't work.
Example
My site is http://server/main.
My virtual directory is vd1.
If I place index.html in vd1 the address of http://server/main/vd1/index.html works.
If I publish MVC application to vd1 the address http://server/main/vd1/home doesn't work
0
Hello Experts,

I have a problem with deploy a desktop application in a  client machine without installing crystal reports or visual studio.

I searched on the internet and i find a lot of suggestion , but i can't find the correct way ( i can't find the files of runtime for crystal reports)

Thank you.

Regards,
0
Testing for dataset changes on form closing in WinForms 2015.

   
    If DS.HasChanges Then
            ChangesMade = True
             'Call Option to save code
        End If
        For Each dr As DataRow In DS.Tables("tCARDS").Rows
            If dr.RowState <> DataRowState.Unchanged Then
                ChangesMade = True

            End If
            If dr.HasVersion(DataRowVersion.Proposed) Then
                ChangesMade = True
            End If
        Next

Open in new window

The trouble is that when the user moves between datarows using a datagridview or bindingnavigator the Dataset is marked as changed.  It also shows the rowstate as being modified when it isn't.  The user isn't changing anything just navigating amongst records.  I'd like to figure out how to check for any true changes rather then getting the false positive?

Any ideas?


Thanks
0
I've been trying to fix this for days now. Using Xamarin and Visual Studio, I deleted the asset catalogs/media folder then I used app icon set creator to create the icons. I then went into info.plist under visual assets and hit add catalog, then dragged the icons into the slots.

No matter how many times I try this I get the same error.

Since this is xamarin, I was told I have to create an IPA file and upload using ApplicationUploader.  The file uploads but then I get an email from Apple with a build file error shown above.

Does anyone know how to fix this?

thanks!!!!

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle

Open in new window

0
We currently use Visual Studio 2008 v9.0.  When one user opens a proc on Monday (but does not check it out as they have no intention at that time to make changes) if another user checks out the proc on Tuesday , makes changes and checks it in.  There is nothing to stop the first user from making changes to the proc as he/she  has it in front of him (fro  Monday) and overwrite the changes that user 2 made on Tues.
Is there a way to prevent this - e.g. automatically refresh, or not allow changes checked in if not using the latest file or the problem seems to be that if you have a proc open, you can directly make changes and it will then get flagged as checked out, perhaps if this could be disabled so that the only way to check out a proc would be to reopen from scratch
0
Cloud Class® Course: Python 3 Fundamentals
LVL 12
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Hi,

I'm in the process of developing an eBay application in Microsoft Access 2016. So far my project has been fine and the API calls I have made have been successful but I have now come to a stumbling block that I need some help with.

The API calls I have used so far are all for single listings so this is easy and I just pass the XML through an HTTP request. I want to make this much more efficient and use eBay's File Transfer API where I can send more than 1 call at a time but I'm really struggling on trying to understand how to build the call.

The data has to be sent as Binary Base64 which I have a converter to do this. I can build the XML that needs to be sent but I just don't understand how to send the XML from a string as apposed to a physical file.

I've read loads on the internet about having to create it as a multipart request with boundaries but really not sure how to start building that. I can provide code if need be so you can see where I am at.

I hope this makes sense.
0
I have the following code which successfully opens a hyperlink in internet explorer from an email in Outlook.

My next question is how do I interact with the webpage?

For example I would like to select option 83 from ID "ctl00_cph_MAIN_ddlHCLaction" which is a dropdown.

I have tried
oIE.document.GetElementbyID("ctl00_cph_MAIN_ddlHCLaction").value = 83

Open in new window

but I get the error

'Run-time error '-2147467259 (80004005)': method 'document' of object 'IWebBrowser2' failed.'

Sub macro()

Dim regex
    Set objOL = CreateObject("Outlook.Application")
    Set NewMail = objOL.ActiveExplorer.Selection.Item(1)
    NewMail.Display
    res = NewMail.Body
    
    Set regex = CreateObject("VBScript.RegExp")

    With regex
        .Global = False
        .MultiLine = False
        .IgnoreCase = True
        .Pattern = "HYPERLINK ""([^""]+?)""Click here to access enquiry"
    End With
    Set mtches = regex.Execute(res)
        If mtches.Count > 0 Then
            strHL = mtches(0).submatches(0)
            Set oIE = New InternetExplorerMedium
            oIE.navigate strHL, CLng(2048)
            oIE.Visible = True
        End If
End Sub

Open in new window

0
Hi All,
I am trying to get service configuration information for SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO. my code as below

void DoQuerySvc()
{
    SC_HANDLE schSCManager;
    SC_HANDLE schService;
      DT_String  szSvcName = Server.GetProductName(); // get the service name
    LPQUERY_SERVICE_CONFIG lpsc;
      LPSERVICE_REQUIRED_PRIVILEGES_INFO lpsd;
    DWORD dwBytesNeeded = 0, dwError = 0;
      DWORD cbBufSize = 0;

    // Get a handle to the SCM database.

    schSCManager = OpenSCManager(
        NULL,                    // local computer
        NULL,                    // ServicesActive database
        SC_MANAGER_ALL_ACCESS);  // full access rights

    if (NULL == schSCManager)
    {
        printf("OpenSCManager failed (%d)\n", GetLastError());
        return;
    }

    // Get a handle to the service.

    schService = OpenService(
        schSCManager,          // SCM database
        szSvcName,             // name of service
        SERVICE_QUERY_CONFIG); // need query config access

    if (schService == NULL)
    {
        printf("OpenService failed (%d)\n", GetLastError());
        CloseServiceHandle(schSCManager);
        return;
    }

    // Get the configuration information.

   
       if( !QueryServiceConfig2W(
        schService,
        SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO,
        NULL,
        0,
        &dwBytesNeeded))
    {
        dwError = GetLastError();
        if( …
0
I have one scenario in Sync Framework 2.1

Suppose we have one customer table which has two column PId,Name and order table which has two column Pid ,customerid. Customerid is foreign key of customer table. we have another table orderitem which has two column PId,OrderId. Orderid is foreign key of order table.

I have inserted two records in customer table PId name 1 Ram 2 shyam

in order table

PId customerId 3 1 4 2

In orderitem table

PId Order 5 3 6 4

in sync framework I want to upload only Ram data which has id=1 and its foreign key related tables data.
0
We are using vmware Horizon 7 linked clones, running windows 10 build 16299.

The user default printer in a view session always defaults to the local default printer of the connecting laptop.  If a view user changes the default printer, it is not retained in the next logon.

I can't tell if the view agent is doing this, or windows?  How can i override it, so the user's choice of default printer can be retained?

I have tried various fixes in GPO and registry, including...
HKLM\Software\ThinPrint\TPAutoConnect\DisableSettingOfDefPrinter=1
HKLM\SOFTWARE\ThinPrint\TPAutoConnect\UserDrivenDefaultPrinter=1

I do not want to disable local client printers completely.

Thanks
0
.I am facing some validation problem like this method  ParseUrl is only valid for http url but we are using net.tcp .

ISURL_COMPONENTS ISUrlComponents;


  if ( (ParseUrl(svTempString, &ISUrlComponents) < 0) ) then
            return GetMessageText("Msg_ProLawServiceURLInvalid_Text");  
      else
            if ( !IsObject(ISUrlComponents) ) then
                  return GetMessageText("Msg_ProLawServiceURLInvalid_Text");  
            endif;
      endif;
      endif;
0
Hello and thanks in advance for any help you can give me.

I have written a simple SSIS package in Visual Studio 8 that reads from MSSQL and outputs to Excel 2003.  The package has two dataflows each writing to a different worksheet in the same workbook.  The first dataflow works fine but the second fails with the following error:

[OLE DB Destination [344]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
[OLE DB Destination [344]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (357)" failed because error code 0xC020907B occurred, and the error row disposition on "input "OLE DB Destination Input" (357)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (344) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (357). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

During development both flows worked, but now I cannot get the second to work at all.  It …
0
Hello,

I have a testlab environment that has

A local DC (Server 2016) with ADSync to AzureAD
E3 trial subscription
Some Windows 10 Client machines on same LAN as local AD

When a user logs on the client machine, you need to enter username+password for desktop installed apps, such as onedrive and skype.
I dream about SSO and wonder if it can be used to make these desktop apps signin automatically
I'm looking for a way the user would only need to type the username+password for logon to the computer/domain, not to keep having to re-type it for each desktop installed application.

How can I get SSO working with Microsoft Desktop installed apps ?

--Paul
0
Hi

I am trying to integrate .net application with goldmine. I can create contact1 but not contact2 and contsupp. Can you please help me.
I am having problem with the first function (updateContSupp)
goldminestruggle.txt
0
Keep up with what's happening at Experts Exchange!
LVL 12
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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

0
Guys,
Looking for a market research firm before launching a product? Any suggestions?
0
Hello.
 I am using ASP.net MVC 5 to try and create a dashboard for showing temperature values of different regions. These regions of upto twenty can be added and deleted from the database.  Am using .net highcharts,   to try and create this guages dynamically as soon a a new region is added and place each of them in a div tag of its on  dynamically using javascript. Any Ideas??
0
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.

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?
listview.xaml
0
Hi,

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!
printScreen.png
0
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.
0

Microsoft Development

48K

Solutions

32K

Contributors

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.