Hi developers! I have made a POS software. I have added the functionality of "priniting to Thermal printer" and "barcodes". Firstly I added the functionality of Reciept printing which worked perfectly. Then I added the functionality of barcode scanning. As you know barcode reader device automatically scans the barcode and write the barcode in Text field or excel sheet. But in the sales screen , all the field of item/product should be populated from database When barcode is scanned. I implemented an interface(I get this code form internet) in the my Sales Screen Constructor. It workded perfectly for me, but …

Member Avatar
+0 forum 0

Hi developers! I have made a POS software. I have added the functionality of "priniting to Thermal printer" and "barcodes". Firstly I added the functionality of Reciept printing which worked perfectly. Then I added the functionality of barcode scanning. As you know barcode reader device automatically scans the barcode and write the barcode in Text field or excel sheet. But in the sales screen , all the field of item/product should be populated from database When barcode is scanned. I implemented an interface(I get this code form internet) in the my Sales Screen Constructor. It workded perfectly for me, but …

Member Avatar
+0 forum 0

I am trying to apply an automatic scrolling down and up in Datagridview Scrollbar. I've seen a related topic (using scrollbar panel) but I dont know how to convert for datagridview auto scrolling up and down. I'll be using Timer for autoscrolling. Here is the code from another topics forum. Please help. Private scrollUp As Boolean = False Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick If scrollUp Then Dim scrollY As Integer = -Panel1.AutoScrollPosition.Y - 1 If scrollY < 0 Then scrollUp = False Else Panel1.AutoScrollPosition = New Point(Panel1.AutoScrollPosition.X, scrollY) End If Else Dim scrollY As Integer …

Member Avatar
+0 forum 0

I have an assignment to create a card game that compares to dealt cards between players to see who has the highest valued card. It must first be determined by the cards value, then only if it is tied, the suits value. The code below is what I have so far. It is working, but it isnt how I need to compare the two cards together. string card(unsigned int card) //Assigns suits to values { if (card >= 52) { return "Invalid"; } return values[card % 13] + " of " + suits[card / 13]; // where card ranges from …

Member Avatar
+0 forum 0

I have a class A like this: public class Article { public Tag Test1 { get; set; } = new Tag(); } public class Tag { public List<News> Test{ get; set; } = new List<News>(); } I have a list like this: News 1 Tag 1{ News 1 **Tag** { News 1 Tag {....} News 4 Tag {....} News 5 Tag {....} } News 4 Tag {....} News 5 Tag {....} } News 2 News 3 I want to set null "Tag" 2nd on that list = null to avoid loop infinitely. like this: News 1 Tag 1{ News 1 …

Member Avatar
+0 forum 0

I am optionally display some content in the Unity Editor based on options chosen for a given component, this will be used when displaying a summary of options chosen on this current Component. How I can make a function inline that returns a string, I want this function to be inline because there will be many of these and they will only useful in the line they are used in. I have provided a code snippet that may clarify what I am trying to do. I have used lambda functions like this in c++ and JavaScript, but not in c# …

Member Avatar
+0 forum 0

please i want to be able to move down and up my textboxes in vb.net with the arrow keys and i want to also use the enter key to move to the next textbox and with that i did and it has been working but i recently place a group box unto that form and suddenly it stops working

Member Avatar
+0 forum 0

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

Member Avatar
+0 forum 0

When creating a new WebAPI Project in Visual Studio 2019 and changing authentication to Individual User Accounts, the only option is to connect to Azure but back in WebAPI projects in the .NET Framework, user accounts can be stored in-app. How to achieve this in .NET Core 2.2?

Member Avatar
+0 forum 0

This code works but I don't know how to dismantle this "sausage" code. async function showAllFilters(qry, arrayParams) { // params is [] let result; try { result = await db.query(qry, arrayParams); } catch (error) { console.log("showAllFilters error: "); console.error(error); } return result; } router.get('/', function (req, res) { // localhost:5000/api/filter let qry = "SELECT DISTINCT c.subCatName, (select COUNT(*) from tblPostCatMap as pp where pp.idSubCat = c.idSubCat) as subcatSumme from tblsubcat as c order by c.subCatName asc"; showAllFilters(qry,[]) .then(r => { // first, you get the count of records of all posts and store into count var var filterJson = { …

Member Avatar
+0 forum 0

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" )] [InterfaceType( ComInterfaceType.InterfaceIsDual )] [ComVisible( true )] public interface ITwoWay { // The Initialize method is called to establish the communications connection... [DispId( 1 )] void Initialize( String IPAddress, long Port, long MaxPacketSize ); // A convenience method that allows the POS to test the Third Party’s back-end... [DispId( 2 …

Member Avatar
+0 forum 0

hello everybody who can help with this task Now I will talk little about monoalpahapit cipher This is cipher is based on substitution the characters with another characters So in the encrypt.java file it counts how many the characters appeared in the cipher text , so in the picture that I sent to you it contains the statistics of most frequently characters, an example : suppose in the cipher text the character ( O ) appeared 16 times and it’s the most frequently character so you will back to the picture of the statistics and see what is the most …

Member Avatar
+0 forum 0

I have simple .NET Core 2.2 Web App that I have deployed to Azure App Service. App contains a simple HomeController with Index Action and Index.cshtml file. When I try to browse the page it gives me InvalidOperationException with message The view '~/src/Views/Home/Index.cshtml' was not found. I have verified the path of the file and build action (Content), but due to some strange reason it cannot find the view. However surprisingly if I change the name of the View to Index1.cshtml it works. Can anyone explain why this is happening? public class HomeController : Controller { public IActionResult Index() { …

Member Avatar
+0 forum 0

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 it can’t be converted. dataGridView1.Columns[3].DefaultCellStyle.Format = "hh:mm tt"; Any help would be appreciated! Thanks, Steven

Member Avatar
+0 forum 0

I like Agile, I really do but a few times it has me walk out on the process as a few think that everyone must "buy in." That's just part of the problems I've run into and kind of glad I'm no longer on such teams. In fact if a company does go "all in" on Agile I may want to short their stock. I think it works until they try to forget what the real goals are. The real goal is to get the product out the door. Some folk love to get wrapped up in the process. The …

Member Avatar
+1 forum 0

The insurance business was conservative quite a long time; however, the appropriation of new advances isn't only a cutting edge pattern, but a need to keep up the competition. In our computerized era, Big Data innovations help to process various data, improve work process productivity, and reduce operational expenses. Learn more about the advantages of Big Data for insurance from this material. # How Big Data is Revolutionizing Business # Current society is constantly delivering noteworthy measures of ongoing data. Processed by AI, it turns into an important data source which is crucial for most business models, as well as …

Member Avatar
+0 forum 0

As I continue my conversion from vbScript to Python I am finding the gotchas. For example... A lot of my utility scripts take a file name or a file pattern as a parameter. My script, bitrate.vbs, for example allows me to invoke it as bitrate file bitrate pattern Technically file and pattern are identical since specifying a file is really just specifying a pattern that matches up to one file. To get file listings in vbScript I would just spawn a dos `dir` command and grab the output from stdout. In Python, however, they provide what I thought was a …

Member Avatar
+2 forum 0

I am making a small example of adding, editing, deleting and saving the treeView directory tree into the SQL Server database, what must I design to store in the database and write code ?

Member Avatar
+0 forum 0

I need to check the validity of the URL to different files without opening the link document/image. I used the below code in ASP.net 4.7.2 in validation attribute. The current code is as follows : (working fine with jpg) public override bool IsValid(object DocumentURL) { try { string urlLink = (string)DocumentURL; WebRequest request = WebRequest.Create(urlLink); request.GetResponse(); return true; } catch { return false; } } This works for images but failed when I sent a link to xls file. The error message is : "The request entity's media type 'text/plain' is not supported for this resource" No mediaTypeFormatter is available …

Member Avatar
+0 forum 0

For anyone who hasn't read Clean Code but wants to, maybe a detailed summary would be an easy way to pick up the main ideas. Here's a detailed summary of Intro and Chapter 1: https://technotes.app/clean-code-introduction-chapter-1/ I was inspired to start writing it when I thought: If had to choose between - 2 books per month OR - 1 book and 5 detailed summaries per month then I’d probably choose the latter. What do you think?

Member Avatar
+0 forum 0

<Grid> < Button Content="Add" HorizontalAlignment="Left" Margin="58,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Name="t1" Text=" "/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,94,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Name="t2"/> <TextBox HorizontalAlignment="Left" Height="23" Margin="190,180,0,0" TextWrapping="Wrap" Text=" " VerticalAlignment="Top" Width="120" Name="t3"/> <Button Content="Sub" HorizontalAlignment="Left" Margin="164,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/> <Button Content="Mul" HorizontalAlignment="Left" Margin="273,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2"/> <Button Content="Div" HorizontalAlignment="Left" Margin="384,142,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_3"/> </Grid>

Member Avatar
-1 forum 0

Magento : Using app/design/frontend/default/theme/template/catalog/product/view.phtml how to display my text message on my selected products, workout : <?php $productId = '42150'; $product = Mage::getModel('catalog/product')->load($productId); if( $productId == '42150' ) { echo "Test"; } ?> if i wrong pls correct me.

Member Avatar
+0 forum 0

I have to write a python program that get a keyboad number and verfiy using the def function. Help n = int(input("Write a number") def countdown(n): if n >= 0: print('Blast off! Zero down') else: print(n) countup(n+1) countdown(3)

Member Avatar
+0 forum 0

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it in the listbox in the main form. It also allows the update/delete functions. I can succesfully add students to the list and edit them, but when I press the ok button in the update students form I get the error, "System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and …

Member Avatar
+0 forum 0

i have two listview where data display, the SALES INVOICE and CHARGE invoice now when i print it when sales is greater than charge invoice cannot be display in crystal report or charge is greater than sales cannot also display. my crystal report looks like: SALES INVOICE CHARGE INVOICE OR NUMBER AMOUNT OR NUMBER CUSTOMER NAME AMOUNT Private Sub ParaPrint() Dim ds As New DataSet1 Dim dst As New DataTable Dim lvii As Integer Dim lvii2 As Integer lvii = ListView_salesInvoice.Items.Count - 1 lvii2 = listview2_chargeinvoice.Items.Count - 1 dst = ds.Tables.Add("Items") dst.Columns.Add("namecus", Type.GetType("System.String")) dst.Columns.Add("cashforward", Type.GetType("System.String")) dst.Columns.Add("Dateprint", Type.GetType("System.String")) dst.Columns.Add("saleinvo", Type.GetType("System.String")) dst.Columns.Add("chargeinvo", …

Member Avatar
+0 forum 0

Enter_Again: xor ah, ah ; I should put 60 seconds here int 16h ; The user should press S before 60 seconds mov bl,al cmp al,"S"

Member Avatar
+0 forum 0

is there any one who can help me please? i have sensor data set and I don't know how to split this. I am using python iam=TP-001&bdaddr=F8:5B:9C:60:0F:B0&data=0201061bffee02c306007a001800000000000000520007e304100c2b36ffaa

Member Avatar
+0 forum 0

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 => x.Line).ToList(); Console.WriteLine(output); File.WriteAllLines("D:\\sortedCsv.csv", lines.Take(1).Concat(sorted), Encoding.Default); } What I receive is an error: input string in incorrect format and I dont know how to fix it.

Member Avatar
+0 forum 0

I tried achieving using list index position but that's not the good way of coding, as we will never know which position is the column located. Honestly, I tried to come how to achieve in python in getting correct values for each column but in vain Need help in python how to get value for each ![Screen_Shot_2019-04-02_at_9_28_20_PM.png](/attachments/large/4/c360b7f4bd678f42dffcd650aabc62ba.png) Expected output as ![Screen_Shot_2019-04-02_at_9_34_44_PM.png](/attachments/large/4/62a05994baf66cc0f0e98e23f06a9cd1.png)

Member Avatar
+0 forum 0

Hi, Could you please help me figure out how I could bind "SelectedItems" of a listbox? Here I have a 'listbox_2' that contains a list of fruits and vegetables ;) There's another 'listbox_1' that contains groups of fruits and vegetables (under a list<of string> format...maybe is it my first error? Should it rather be a list of fruits/vegetables?) and a recipe. I would like that on each group selection (in listbox_1), the corresponding fruits and vegetables would be selected (in listbox_2)...and make it possible to modify that list ![1418914.jpg](/attachments/large/3/7c135ca245d40ab9be011efa632f5632.jpg) Unfortunately, the way to achieve this behavior stays obscure to me...could …

Member Avatar
+0 forum 0

The End.