297 questions
0
votes
1
answer
72
views
Handling PCOMM events in Windows Forms application
Is there a way to register/trap the PCOMM events in a Windows Forms application?
I invoke the PCOMM Application using the Interop.AutConnMgrTypeLibrary, on a button click on the form. This all works ...
1
vote
1
answer
71
views
How to create a Word Doc Footer with multiple font/color styles using Vb.net
I'm trying to create a word doc Footer programmatically in vb.net that has 3 lines or more with 3 different font colors and font styles. I can only seem to get the first color and style to ‘stick’ the ...
0
votes
0
answers
73
views
Using a custom controls DLL in a Windows Forms C# application
We are migrating a VBA application to a Windows Forms C# application. The old VBA application used a custom controls DLL provided by vendor. How do we use such controls (I guess MSForms) with Windows ...
0
votes
1
answer
2k
views
Could not load file/assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. The system cannot find the file specified
I am using VS 2022 to develop windows application. In which I want to write some data into Excel. I have installed NuGet package Microsoft.Office.Interop.Excel Version 15.0.4795.1001 and I have ...
0
votes
1
answer
61
views
C# Excel Change Char Color
I want to change all red characters to blue characters in the Excel file and then save it.
I kept trying, but the method seemed to be wrong and didn't work..
Please advise.
color = xlRange.Cells[i, j]....
0
votes
0
answers
515
views
Endpoint Not Found Exception
Does anyone have any idea about the error shown here?
Local IIS is working fine, but after hosting on the production server, I am getting this error:
EndpointNotFoundException: There was no endpoint ...
2
votes
0
answers
129
views
Strange interaction between Visual Basic controls and .NET controls
I have a VB6 form like this:
The form is composed of a classic ActiveX CommandButton and a .NET UserControl (specifically, a WinForm) containing 2 WinForm Buttons. The UserControl is, of course, COM ...
0
votes
0
answers
324
views
Converting a VBA Macro to C#
I need some help, I'm trying to convert my existing VBA macros into C# and using them with a WinForm app. I've gotten most of this macro converted, but I'm running into a wall when I try to convert ...
-2
votes
1
answer
76
views
C# - natively create a form window as a child to an existing window
I have a C# (4.72) library that creates a window using native API’s (pinvoke). I inserted this window into an existing application successfully. So, I have a child window inserted into the existing ...
1
vote
0
answers
560
views
could not find xlsx file path during running of program
So, originally my program used a static spreadsheet named test, but to further enhance my program, I wanted it to make it to where the name within the textbox is the name of the file to use for the ...
0
votes
0
answers
332
views
Using COM objects in a Winforms C# application
I have an SDK provided by a biometric device manufacturer. That SDK contains a lot of DLL's whose main DLL, the one that is added as a reference to the project, is called zkemkeeper.dll.
The ...
1
vote
1
answer
1k
views
App build using .NET Core 6 Winforms application need .NET Core Desktop runtime [duplicate]
We are building an app using .NET Core 6 Winforms. This app would be hosted on a network file share. If users need to access this app, they would need at least .NET desktop runtime to be installed on ...
0
votes
0
answers
698
views
WPF airspace issue and WinForms IDesignHost
I'm trying to migrate portions of an app to WPF. One of the near-impossible parts is an IDesignerHost (i.e., a Windows Forms Designer). So for that, I want to use a WPF window with a WindowsFormsHost ...
2
votes
2
answers
1k
views
progress bar on taskbar icon using winforms .net 6 vb.net
I am having a hard time finding a solution to display the status of a progressbar on the taskbar icon on Windows 10/11. Do you have suggestions.
I use Winforms with VB.Net .Net 6.
0
votes
2
answers
276
views
Microsoft Office Professional Plus 2019 Spellchecker dialog in a windows form application, the "Not in Dictionary" text area is empty and disabled?
I have Microsoft Office Professional Plus 2019 installed in Windows 10 Enterprise.
I used "CheckSpelling" method in calling a spellchecker dialog in a c# windows form application, however, ...