C# Xamarin Forms InAppBilling PurchaseAsync not returning after handle of playstore
I am using jamesmontenegro InAppBilling and I have a small issue regarding payments. The code is working fine but after the payment is handled by Google Play Store, the app doesn't handle the procedure and doesn't return if the purchase was successfully…
Check if Checked doesn't work
Why doesn't this work? if (postonly_check.Checked) { fee_double = 0.025; } I researcht and anybody said that postonly_check.Checked works.
get data from sql table throwing null exception even when try block is present
In my WinForms app, i have this below code which fetches the lot number from MSSQL table when the button is clicked , private void getlotnumbers() { try { SqlConnection con = new SqlConnection(cs); …
How to read Excel Marco (.xlsm) file
Hi all, I have code like below to read Excel Macro (.xlsm) file; Microsoft.Office.Interop.Excel.Application objExcel = new Microsoft.Office.Interop.Excel.Application(); object missing = Type.Missing; …
Clickonce update problem
I'm not good at clickonce so I need help to solve my problem. I made a application, and I trying to deploy my app via clickonce. But, I do not want to auto update by clickonce.(this clickonce from .net framework folder) So I uncheck all of…
how to use http listner in windows forums c# app
Hi, I am trying to convert twain(windows forums) into API using HTTP listener in windows forums. But my window keeps freezing. I believe my code is not sending event messages to a main window handle forum when a window is created on that thread when…
Set foreground of child window in Visual Studio
I want to set the foreground of a window in Visual Studio. What i've tried: When i have 2 windows "docked" side by side i can't set the foreground of a window under the mouse in VS. I'm using GetCursorPos and WindowFromPoint which usually…
C# - (this T obj) - feature name
Hello, I have a function like this. Works well, but why? public static string ToXML<T>(this T obj) I call it without parameter! I think the reason is this What is this mechanism called? How can I see if this exists, perhaps via…
Logging problem using the Reader.Read() and lots of processing inside
Hi everybody, I've been working on changes in the application written by someone else. The way the program is structured is that the query is executed into a reader (it may return up to 300 rows). It then reads data and saves them into public fields of…
![](https://techprofile.blob.core.windows.net/images/17PWevy_h0aRIIloWinFXA.png?8D8285)
Quaternion
Hi, what's the difference between concatenate and multiply quaternion in C#?? Thanks
C# - Create unique one-of-a-kind numbers, like GUID
Hello, <message> <header> <to>companyReceiver</to> <from>companySender</from> <type>saveInvoice</type> </header> <body> <saveInvoice> **<invoice…
Can't enable debug layer
I'm using TerraFX DirectX wrapper in a Desktop.WinUI project / .Net 5. I've enabled the debug layer with the following code. cs ID3D11Device* CreateD3DDevice(out ID3D11DeviceContext* pImmediateContext) { …
![](https://techprofile.blob.core.windows.net/images/GBSkt_2_AwAAAAAAAAAAAA.png?8D959C)
![](https://techprofile.blob.core.windows.net/images/GBSkt_2_AwAAAAAAAAAAAA.png?8D959C)
Deserialize under other class name, or change class name in serialized document c#
I c# would like to change the name of a class that is being persisted through serialization/deserialization (using a binary formatter). If I simply refactor the name to another name, the desirialization of the file won't load (nor did I expect this). …
Pass parameter to ViewModel through DataTemplate?
I want to pass an ID value from the MainWindow as a paramter to the ViewModel used in a TabControl within the MainWindow. The TabControl displays the associated View using a DataTemplate. How can I accomplish this? MainWindow looks like this: …
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
How to call the Function in MVVM pattern design
I have a byte array to image converter method that converts image stored as byte array in SQL server database to image type for display in the image control. I am confuse on how to call the method to display the image. I am using mvvm pattern. Here is my…
How add my picture from source property of image control (WPF) at Access Database?
Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). First question: tell me what the data type should be to save the image in Access(2007) for example "ole object" or "memo" or…
![](https://techprofile.blob.core.windows.net/images/vp-G0Inlv0Wd6bS0QH0sWg.png?8D9F84)
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Stack Data Structure
I got the difference between queue and stack, but my question is do we really need stack in real life? Except computer algorithms, when LIFO will come handy?!
OpenSubKey() Registry key's “Absolute Path”?
Using Microsoft.Win32.RegistryKey C# functions which require a registry path, like OpenSubKey(), using a path like @"SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" generates an error stating “Absolute path information is…
![](https://techprofile.blob.core.windows.net/images/7B6egP2_AwAAAAAAAAAAAA.png?8D90A3)
![](https://techprofile.blob.core.windows.net/images/7B6egP2_AwAAAAAAAAAAAA.png?8D90A3)
C# - BlockingCollection
Hello, public static async Task BC_AddTakeCompleteAdding() { using (BlockingCollection<int> bc = new BlockingCollection<int>()) { // Spin up a Task to populate the BlockingCollection …
How to populate datagrid and controls together
I am having troubles populating my datagrid along with the controls in my wpf page, when the the page loads, and also how can I navigate from record to record when I click the next and previous buttons, I want the highlighter to move to another record on…