132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fredw300

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
Member Avatar for Hak_1
0
5K
Member Avatar for zebnoon1

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#
Member Avatar for zebnoon1
0
192
Member Avatar for John_165

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
Member Avatar for JamesCherrill
0
917
Member Avatar for JModak

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 = …

Software Development listview vb.net
Member Avatar for dspnhn
0
2K
Member Avatar for Nether_1

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 …

Software Development c++ opengl
Member Avatar for rproffitt
0
555
Member Avatar for sekmani

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 …

Software Development python queue
Member Avatar for sekmani
0
2K
Member Avatar for Arbus

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++
Member Avatar for afv
0
4K
Member Avatar for qqwushi12345

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++
Member Avatar for mohanned_2
0
4K
Member Avatar for Siberian

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
Member Avatar for Gribouillis
0
241
Member Avatar for sashiksu

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
Member Avatar for Elvis J.
0
6K
Member Avatar for Abdul_41

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
Member Avatar for Santanu.Das
0
173
Member Avatar for Mr.M

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
Member Avatar for xrjf
0
302
Member Avatar for Sumit_12

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 …

Software Development algorithm c
Member Avatar for Gribouillis
0
1K
Member Avatar for ChadW

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
Member Avatar for Akbar_6
0
9K
Member Avatar for Navnath999

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
Member Avatar for Sri_6
0
4K
Member Avatar for can-mohan

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"} } ], …

Software Development c++ json
Member Avatar for can-mohan
0
5K
Member Avatar for Programmer_2

Cant print crystal report viewers records after 32767 page ... im using crystalreportviewer.printtoprinter command

Software Development vb.net
Member Avatar for ddanbe
0
148
Member Avatar for Obbie_1

![Untitled.jpg](/attachments/large/4/6c6056e3fdbd847b94af20fe43f18581.jpg "align-center") 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 = …

Software Development dataset vb.net
Member Avatar for Mr.M
0
223
Member Avatar for Obbie_1

![gh.jpg](/attachments/large/4/8742b15dbecb5444d6086d0a2f3fa080.jpg "align-center") why? help sir

Software Development vb.net
Member Avatar for Mr.M
0
219
Member Avatar for Talha_11

how much should i know to became java developer.

Software Development java
Member Avatar for sathish kumar_1
0
245
Member Avatar for TrustyTony

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.

Software Development python tkinter
Member Avatar for Gribouillis
0
5K
Member Avatar for rithish

[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
Member Avatar for ajax_1
0
2K
Member Avatar for Obbie_1

![as.jpg](/attachments/large/4/e42faf81a2adc0852d2179e721ce2085.jpg "align-center") Can not call form1,, help please

Software Development vb.net
Member Avatar for ddanbe
0
172
Member Avatar for rchawdhari

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
Member Avatar for rchawdhari
0
510
Member Avatar for rchawdhari

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
0
284
Member Avatar for Knaven Rey

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
Member Avatar for rproffitt
0
1K
Member Avatar for rugae

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++
Member Avatar for Nikolay_2
0
4K
Member Avatar for Curious Gorge

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
Member Avatar for Curious Gorge
0
373
Member Avatar for zebnoon1

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 = …

Software Development c# dataset sql
Member Avatar for Andy_12
0
354
Member Avatar for Ramasamy_1

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
Member Avatar for rubberman
0
247
Member Avatar for kenyo_070289

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++
Member Avatar for ZaiBo
0
318
Member Avatar for JModak

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 …

Software Development display listview vb.net
Member Avatar for xrjf
0
314
Member Avatar for paruse

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++
Member Avatar for Shafiq_1
0
38K
Member Avatar for John_165

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
Member Avatar for JamesCherrill
0
2K
Member Avatar for funfullson

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
Member Avatar for Krystor
0
2K
Member Avatar for checkapos

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
Member Avatar for happygeek
0
287
Member Avatar for My_4

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#
Member Avatar for ddanbe
0
241
Member Avatar for leyla

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
Member Avatar for Fecs
0
4K
Member Avatar for rsu

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.

Software Development assembly ubuntu
Member Avatar for yahya_3
0
6K
Member Avatar for montjoile

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 …

Software Development c++ ubuntu
Member Avatar for Tushar_4
0
2K
Member Avatar for JModak

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, …

Software Development listview vb.net
Member Avatar for xrjf
0
1K
Member Avatar for SkateX

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
Member Avatar for SkateX
0
907
Member Avatar for Mr.M

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
Member Avatar for Mr.M
0
592
Member Avatar for Khushali_1

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
Member Avatar for rproffitt
0
353
Member Avatar for Tim_8

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
Member Avatar for xrjf
0
839
Member Avatar for wilsonz91

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
Member Avatar for JamesCherrill
0
2K
Member Avatar for Thomas_32

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
Member Avatar for rproffitt
0
430
Member Avatar for Rica_1

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
Member Avatar for xrjf
0
1K
Member Avatar for riahc3

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
Member Avatar for ez4u2c
0
2K
Member Avatar for tshukela.george

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
Member Avatar for xrjf
0
422

The End.