132,729 Archived Topics
Remove Filter ![]() | |
Hello, I am creating a winform app in C# to store formatted text from a rich text box to MySQL database, which can be retrieved back to the rich text box. The database field is a VARCHAR and my code is something similar to below. But I'm getting "file not … Software Development app-store | |
Hello Dear, i have problem to multiple two textboxs ,one is Decimal and second i didnt asign ..... Please check code.. private void textBox18_Leave(object sender, EventArgs e) { decimal first; decimal second; decimal re; var b1 = decimal.TryParse(textBox18.Text, out first); var b2 = decimal.TryParse(textBox13.Text, out second); if (b1 && b2) … Software Development c# | |
In my Food Tab, I wanted to achieve this [Click Here](https://sfault-image.b0.upaiyun.com/358/064/3580648794-597611aa1f701) But I only able to get this [Click Here](https://sfault-image.b0.upaiyun.com/779/111/779111227-5976120f6955a) How can I increase the width of the JTextField which are in Food Tab ? Below is my code public class FoodOrdering { static private JFrame frame; static private JTextField … Software Development java java-swing | |
I use the this code. showing "Update" msg but not update and if i add an item then show "Update" not "save" Please help me..... Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click Dim sql = "select Count(*) from pur_invdet where purinvid= txtpurinvid.text" Dim cmd = … | |
Since OpenGL uses the strange system of 1s and 0s to represent location on the screen, I'm trying to figure out how to switch it to standard x, y coordinates like those that are used on a graph. And so far, my searches on the rest of the internet have … | |
Hi guys; I'm new in python and thread ,i start learning by create a simple code but i find some defficult this code below have some function and thread also Queue function to share data between thread this is a part of my code: def PutChar(Ch): #ask user to put … | |
Hello all, I need your help. I trying to change the font of texts displayed in the output of my program. I know that we can use settextstyle() for changing fonts. But there are only four types of fonts( GOTHIC, SANS SERIFF , TRIPLEX , DEFAULT) available. I want to … Software Development c++ | |
Write the C program that solve the quadratic equation problem The output should appear as follows: Enter A: 3 Enter B: 5 Enter C: 2 There are two solutions: -0.666667 and -1. Press any key to continue_ thank you, Software Development c++ | |
If the user enters only one character, I want it to prompt for the name again; otherwise print the persons name in ASCII. Instead what is happening is it's printing the name depending on how many characters are in the name ? nameAsk = raw_input("What is your name?") for name … Software Development python | |
I'm currently using below code for print all things in data grid view in vb.net 2012. By all things I mean all columns. Try Dim mRow As Integer = 0 Dim newpage As Boolean = True With gdvcussearchcustomer Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) fmt.LineAlignment = StringAlignment.Center fmt.Trimming = … Software Development vb.net | |
I am new in reporting with crystal reports. i am trying to genrate a report in vb.net. My data to be displayed in the report is based on a screen output. But I don't know how to bring the data from screen to report. Please help me any one so … Software Development vb.net | |
Hi DW. I would like to know if its possible to get the source path of a file copied/moved to a folder I set a FileSystemWatcher? What I mean is that get the location as to where this file is coming from if its was copied/moved into this folder. Thank … Software Development vb.net | |
Hello Guys I am new to C programming and as a part of an assignment I have made an ATM algorithm in C. Though the compiler shows no errors, the code goes into an infinite loop after the first input. Please Help. Here's the code: #include<stdio.h> #include<conio.h> void main(){ float … | |
I know I'm just missing the mark here, but what I am trying to accomplish is simply adding the results of two text boxes. Example: Form has two text boxes and 1 label The user enters a number (any number from 0 - 10) into each textbox when the user … Software Development vb.net visual-basic | |
I want to crop an image manually using the mouse. Suppose the image has some text, and I want to select some text from an image, then for that purpose I want to crop that area by using the mouse. Software Development image java java-swing | |
I am parsing below sample file in below code snippet. {"requestType":"INVOCATION", "hostName":"localhost", "serviceName":"bucky", "serviceType":"DISCRETE", "serviceParameters":"sampleData", "servicesList" :[ { "serviceName" : "ABC", "serviceParameters" : {"para1" : "value1", "para2" : "value2", "para3" : "value3"} }, {"serviceName" : "CBA", "serviceParameters" : { "para1" : "value90", "para2" : "value", "para3" : "value"} } ], … | |
Cant print crystal report viewers records after 32767 page ... im using crystalreportviewer.printtoprinter command Software Development vb.net | |
 Why can not save to the database? my script Imports MySql.Data.MySqlClient Imports System.Data.Odbc Public Class Arsip Const DSN = "DSN=arsip" Dim conn As OdbcConnection Dim cmd As OdbcCommand Dim da As OdbcDataAdapter Dim dr As OdbcDataReader Dim ds As DataSet Dim table As DataTable Sub koneksi() conn = … | |
 why? help sir Software Development vb.net | |
This is one small snippet of after event usage. You could express if you find this kind of simple code to be usefull as snippet. Notice also vegaseat's sticky message threads in begining of Python forum in addition to code snippets. | |
[CODE] import java.awt.*; import javax.swing.*; import java.awt.event.*; class log extends JFrame { JButton b1=new JButton("ok"); JPanel panel=new JPanel(new GridLayout(2,2)); public log() { panel.add(b1); add(panel,BorderLayout.CENTER); b1.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent ae){ JPanel pan=new JPanel(); JFrame frame1 = new JFrame(); JButton b2=new JButton("ok"); pan.add(b2); frame1.setVisible(true); frame1.add(pan); frame1.setSize(250,100); b2.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent … Software Development java java-swing | |
 Can not call form1,, help please Software Development vb.net | |
Hi all, This is my array of hash [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] I want to convert it into [2 => { "0"=> 2000}, 125=> {"0"=>300}, 661=>{"0" =>750, "2"=>100}] Is any simple way without using so much loops Software Development ruby | |
Hi Everyone, Can anybody suggest me. I have mysql with two database operations and production. My operations db have master master syncing on live server . I want to make production's master slave syncing onsame live server . Is it possible. How can do it?. Please help me. Thanks in … Software Development mysql | |
Hello guy's,can any one here knows how to get the data/logs from biometric using zkemkepeer at real time am using vb6. This code below is just getting all the data from the device.Please help me.Thank You Dim dwEnrollNumber As Long Dim dwVerifyMode As Long Dim dwInOutMode As Long Dim timeStr … Software Development visual-basic | |
I'm not quite sure the difference between strcmp and == operator when comparing 2 different strings, I was told to do this but == works as well with less typing. [code=C++] if ((strcmp (a, b[i]) == 0)) { someMethod(); } else someOtherMethod(); _______________________________ if (a==b)) { someMethod(); } else someOtherMethod();[/code] … Software Development c++ | |
Hello. I'm doing a lab assignment and I have several subclasses extending the base class. I'm not sure how to "override" the methods and implementations in the supers, because every time my driver class calls a method on my subclass, the superclass method gets called. Heck even within the subclass … Software Development java | |
Hello Dear Friends, I need some help to check avilidity of the username on Leave event of a textbox in Database SQL Server, but i cann't get. it code is bellow private void textBox6_Leave(object sender, EventArgs e) { cmd = new SqlCommand("SELECT * FROM usertab WHERE username='"+textBox6.text+"'",con); SqlDataAdapter da = … | |
I have a home.fla file ``import flash.events.MouseEvent; import flash.display.StageDisplayState; import flash.display.MovieClip; stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; SearchBut.addEventListener(MouseEvent.CLICK, clickSearch); TestBut.addEventListener(MouseEvent.CLICK, clickTest); //DemoBut.addEventListener(MouseEvent.CLICK, clickDemo); var MC:MovieClip; MC=new MovieClip(); var myGlobal:Number = 100; this.addChild(MC); var flag:Boolean; flag=false; //this.addEventListener(Event.ADDED,onFileAdded); // //function onFileAdded() { // //} MC.addEventListener(Event.ADDED,MCAdded); this.addEventListener(Event.ADDED,onFileAdded1); function MCAdded(e:Event):void { var f:Boolean; f=true; } function onFileAdded1(e:Event):void … Software Development | |
a program wherein you input a 8 character string..and then validate if its a valid identifier..a valid identifier is a string that starts with an alphabet and underscore(_)..invalid identifier starts with a number and a double underscore(__) Software Development c++ | |
Hello Teachers I create a project in vb.net 2010 with access database. I want to show data in listview. It Is show in listview but a problem I entry **Id wise**. So, when I click on the show data button I see the **Id** . How to show the id … | |
I'm a beginner in C++. I saw \b and \r in a program source code. I've seen \n and I know its purpose. But why do we use \r and \b in C++? Please clear my doubt. Thank You. Software Development c++ | |
I wonder how to handle exception in `ResponsesEntity`. When it receive wrong url, it supposes to go to the `catch` block and display the `log`. But I keep getting error message in console. The `try-catch` not working as it not display log message. @GetMapping("abc/{Id}") public ResponseEntity info(@PathVariable("Id") String id) { … Software Development java | |
hi.I want play linux shells command with python.for example i did it: [CODE] def add(userName, pasword): import os os.system("useradd -d /home/%s -m -p %s %s"%(userName, pasword, userName)) [/CODE] but some where i have problem. for example when you want change the users password you have to send the command for … Software Development python | |
Hey guys, hope you all are having a nice day? I want us to discuss about game development projects. As a beginner, participating in game development project is a good way to learn. I am part of a game devlopment project/ Tutorial with the title [How to create a Multiplayer … Software Development | |
I am developing c# window based application. I want to show alert notification for due date for every order . I am using xampp and sql database. MY Table contain - Bill no, Customer Name, Received date, Delivery date. Please help me . Thank you in advance . Example. It … Software Development c# | |
![]() | Hello, I am creating a code that allows the user to insert data into textboxes and then have it stored in an Access database. The code that I used worked previously but since I added the second query, nothing is added to either tables. Here is my code: Private Sub … Software Development microsoft-access open-source vb.net |
i have installed nasm in ubuntu in linux but dont know how to and where to write code of assembly language and run my code please give me information as soon as possible. | |
hi there, I'm coding in windows, c++, but when I traslate my code to ubuntu, g++, I get this error: [B]lvalue required as left operand of assigment[/B] This is the line where I get the error: [COLOR="Red"][/COLOR][CODE]&*raiz=&*p;[/CODE] What could be the problem? *raiz and *p are pointers to an avl … | |
how can I use Alt+Del to Delete listview item ... Now I just select the row and press del key delete the item, But I want to delete item by press alt+del key. How it is possible Please help me.... What I have tried: Private Sub ListView1_KeyDown(ByVal sender As Object, … | |
Greetings, Can anyone tell me why my loop does not actually add anything for interest? I'm thinking it is because of the way my interestRate variable is setup as a class variable (static). Here is the code snippets /**************************************************************************************** HNUnit4Ch13Investor.java xx All variables should be declared private Declare a class … Software Development java | |
Hi guys. I'm having a very serious problem. I've created Client,Server Socket applications and they work great on local mechine and I also created a test Windows Phone 7 app and configured the static IP address and the wp7 and server does connect when I run WP7 on a simulater, … Software Development client-server vb.net | |
The purpose of the program is to store values in array from a file salesData.txt which contains the values as shown below. The program should stop at the sentinel value that is 0.0. The code is not working as expected. . This is the question. Create a program that reads … Software Development c++ file-system ios | |
Hi, I have a DGV (dgvListOfJobs), populated from an SQL database to show the user a list of 'jobs' (i.e. rows). I also show 7 other DGV's (dgvMonday, dgvTuesday, etc) for each day of the week so the user can drag a job from the list and drop it onto … Software Development vb.net | |
Hello, First off, i did try looking around the forum but i couldn't understand. Here's a few question which i need help with: 1) (adding node at head) i don't know how does the head will hold the reference to the next node, the code is like this: [CODE] //at … Software Development java | |
I have a JSON file, and I need to convert some of the entries into anchor tags. I think a regular expression is the way to go, but I'm terrible with them. I need to convert: "id":"1","template_name", into: "<a href='getTemplate?1'>template_name</a>", The text "id" is hard-coded, present in every instance where … Software Development html-css json shell-scripting | |
Hi Maam and Sir. I need your expertise on vb.net. I have two data grid with database on their own. I want to copy/update the data from one database to another. The data grid have product codes and prices. I want to copy/update only the prices from the first data … Software Development vb.net | |
I want to write out a DXF file with line arc and maybe spline. My issue is documentation; While I have looked at AutoCAD's site I feel that there isnt enough to say "here is a BMP of a circle. Lets take it and convert it using this code". Its … Software Development delphi | |
Hi all I'm creating a warehouse management system, then i want when new orders are created, a customer's name be selected from a list box and that customer's selected name from a list box be the table name that will hold records of the table's order with a random number … Software Development open-source sql vb.net |
The End.