4,588 Topics

Member Avatar for
Member Avatar for Rushabh Verma

I´m need to parse a json object into a c# class, my problem is that json object has a nested array and it´s throwing some errors when parsing. I have tried a couple of options: a) do foreach in the elements of nested array, and add them to a new …

Member Avatar for rproffitt
0
423
Member Avatar for Rushabh Verma

I have a C# project that creates a COM object for use with a POS terminal. Before I give it to the customer, I want to make sure that it will work as a COM dll. The RegAsm says it works. using System; using System.Runtime.InteropServices; namespace POS { [Guid( "0135bc5c-b248-444c-94b9-b0b4577f5a1a" …

0
265
Member Avatar for steven8579

I have an sql database names SubJobs with a column named Date. The data type is Time(7). I have a datagridview named DataGridView1. I want it to display a time like 04:30 PM. I’ve tried the following command to format the column but it gives me an error saying that …

0
352
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

0
218
Member Avatar for Sebi_1

//I want it to ask me for a number at first. Let's say I pass "5" and then type more numbers so I can add them as elements. And in final to make it show reversed elements. Thank u so much!

Member Avatar for rproffitt
0
242
Member Avatar for Tim_18

Hello, I am very new to programming as I am only a few weeks into my C# class. I have a project and after reading and reading my book, sadly I am stuck. Here is what the project calls for: I need to create a program that converts inches as …

Member Avatar for smerilatt
1
3K
Member Avatar for zachattack05

I have a string representing a date time, and a datetime local variable property. The string representing the datetime could be null or an empty string. To check for this, I thought I could check for a null or whitespace value and assign the appropriate value using this code: ReturnValue.ArrivalDate …

Member Avatar for tinstaafl
0
3K
Member Avatar for shafici

first of all: I plugged USB modem to my Computer and I want to communicate that usb modem using C# Code as follows:- first connect to USB then access its services like internet and checking balance using Code. if any Idea please give me ENGs

Member Avatar for rproffitt
0
1K
Member Avatar for pratikmishra22@yahoo.com
Member Avatar for javi.crecenteespino

Hello people. Sorry for my English, I use google translator .. Please Can anyone convert this code to C # or vb.net? import sys VERSION = 0 SUBVERSION = 2 def usage(): print "[+] WPSpin %d.%d " % (VERSION, SUBVERSION) print "[*] Usage : python WPSpin.py 123456" sys.exit(0) def wps_pin_checksum(pin): …

Member Avatar for happygeek
-2
11K
Member Avatar for judithSampathwa

hi there, I have a mask text box with the mask as $9999999999.99 as money. when i type in a value as 12345.67 it appears as $_____12345.67 and when i save it to the database it is saved in the correct format as 12345.67 as money as the data type. …

Member Avatar for Renathu
0
8K
Member Avatar for Michal_5

Hi All. I have a problem with col sorting of my csv file public static void SORT(string input, int col_num) { string[] lines = input.Split(new[] { Environment.NewLine }, StringSplitOptions.None); var data = lines.Skip(1); var sorted = data.Select(line => new { SortKey = Int32.Parse(line.Split(';')[16]), Line = line } ).OrderBy(x => x.SortKey).Select(x …

0
258
Member Avatar for prudvi_1

can anyone help me with Add to cart functionality in xamarin(i.e) C# code using SQLite

Member Avatar for Dani
0
304
Member Avatar for mike888

Hi, I have a problem with my homework assignment. I am able to access the database and insert new customer but it doesn't work when i try to update any record. if anyone can tell me what is wrong with my code. thank you so much this is all my …

Member Avatar for vishal_30
0
11K
Member Avatar for ddanbe

Why is it that C# disappeared from the Programming menu? Something to do with upcoming changes?

Member Avatar for Dani
0
2K
Member Avatar for talon88

using c# socket programming. For the program on computer A, i would probably need to create a windows form, to allow me to trigger computer B software to run by clicking. How do i implement the async socket into window form? How can i start the connection of both computer, …

Member Avatar for talon88
0
598
Member Avatar for overwraith

How do I start a MonoDevelop software program as a system service on Windows, Linux, and Mac? Windows appears to not have a system service setting. I have a WCF service that essentially runs from command line. Even if I have to run from command line, I will need to …

Member Avatar for RabidDog5150
1
2K
Member Avatar for overwraith

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for RemH

Hi Everybody, I Just started C# and have an issue with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace testurl { public partial class WebForm1 : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } public void Button1_Click(object sender, EventArgs e) { string …

0
388
Member Avatar for Pankaj18
Member Avatar for rproffitt
0
158
Member Avatar for CSharpUser

If I'm not asking this in the correct forum, please point me in the right direction. I am using System.DirectoryServices.AccountManagement.GroupPrincipal FindByIdentity in C# to create an object containing the group members (user IDs and names) for the target group. My goal is to iterate through the resulting list of UserPrincipals …

Member Avatar for rproffitt
0
699
Member Avatar for s_ghonem

i am using zk sdk to connect to fingerprint i tried Connect_Com(1, 1, 38400) BaudRate is the same in the application and the fingerprint i am using com1 the deviceid =1 but the connection between fingerprint and pc failed do u have an idea about configurations needed to the serial …

Member Avatar for Rupesh_3
0
10K
Member Avatar for Lokesh_S

Hi, I'm generating word doc on the fly by using html in asp .net with C#. And I want to add image at top but after creation of word doc I'm not able to see that image. I don't want to use Word or any third party dll. Please Help …

Member Avatar for RabidDog5150
0
829
Member Avatar for jeffersonalomia

Hi, I would like to ask a question about returning the column value(s) returned by stored procedure in c#. I have created the code but somehow I encountered an error saying: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: Subquery returned more than 1 value. This …

Member Avatar for RabidDog5150
0
995
Member Avatar for ddanbe

Sometimes you have long processes and you even want display them up to the millisecond. Here is a way to do it.

0
1K
Member Avatar for DaveAmour

I've been studying TDD for a few years and read quite a few books but none that good to be honest. Can anyone recomend any good ones. I'm not interested in BDD but am keen on anything that tackles the many problems of mocking intrinsic MVC objects.

Member Avatar for dkalpesh1992
2
468
Member Avatar for lancelot_1

import requests.packages.urllib3 requests.packages.urllib3.disable_warnings() from flask import Flask from flask import request import requests from requests_toolbelt import MultipartEncoder import requests app = Flask(__name__) import requests import json from datetime import datetime botEmail = "" # botun email adresi accessToken = "" # Botun access tokeni host = "https://api.ciscospark.com/v1/" # CISCO Spark …

Member Avatar for rproffitt
0
326
Member Avatar for nitin1

Hi, How can I pass a c# string to C++ side of the app? Right now, I have all handling in Const char * format . When I pass c# string, c++ working fine when using Platform::String . But there is no good way of converting Platform::String to const char …

Member Avatar for ddanbe
0
5K
Member Avatar for batoolhussain

Hi Every one, i have a server and a numbers of clients and i have a C# program on that server. My question is how to run that program on these clients without installing the visual studio on the clienets computers????? you very much

Member Avatar for KushMishra
0
419
Member Avatar for 9tontruck

Hi, I am working on parsing pdf layers from a pdf file into separate images. It was really hard to find an library that does this and now I am digging into iTextSharp which seems like it's handling layers. public static void CreatePDF( string fileName, string destinationFolder ) { PdfReader …

0
518

The End.