15,892,674 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mehboob Shaukat (Top 32 by date)
Mehboob Shaukat
10-Feb-23 2:14am
View
01 is MainActivity and 02 and 03 is ShowPage Activity and fragments are there. With green background is 1st page and and next 02, 03, 04, 05 and so on. As you see from pages I mentioned only headings yet. I want that when I click on second content from MainActivity than I should move to page five but I move to page one
Mehboob Shaukat
10-Feb-23 2:07am
View
Yes, 01 is MainActivity
Mehboob Shaukat
10-Feb-23 1:31am
View
This is the link of my drive you can check
https://drive.google.com/drive/folders/1PHRzRg9EQ1rhmRsNCQ33rwyJ-nv7YVkC
Mehboob Shaukat
10-Feb-23 1:19am
View
Deleted
This is the link of my drive from where you can check.
https://drive.google.com/drive/folders/1PHRzRg9EQ1rhmRsNCQ33rwyJ-nv7YVkC
Mehboob Shaukat
10-Feb-23 0:46am
View
How can I show you UI Please tell me?
Mehboob Shaukat
9-Feb-23 22:13pm
View
why not! Currently I'm having trouble attaching the image but I'll try the other answer to show you a screenshot of the UI. But the problem is suppose i am designing app for story books and c01 is name of first story content and c02 for second story content and so on. The first story is of 4 pages and the next story is starting from the 5th page. I want when I click on c01 the first page should open which is correct but when I click on c02 the 5th page should open but it doesn't. Even when I click on c02 the first page opens. One thing I'm wondering is if there is a Go to Page option like in the Books app. Maybe now I can explain my problem and I hope you understand.
Sorry for long reply but I try to describe my problem. Thanks for reading it.
Mehboob Shaukat
9-Feb-23 14:11pm
View
Excuse me, but what should I do? And how?
Mehboob Shaukat
7-Feb-22 16:38pm
View
Sir, I edited the post with the whole information Please visit one time and tell me some solution. Please try to solve this issue.
Mehboob Shaukat
7-Feb-22 16:31pm
View
Deleted
void display(Employee emp)
{
cout<<"ID: "<
Mehboob Shaukat
7-Feb-22 16:28pm
View
Deleted
void display(Employee emp)
{
cout<<"ID: "<
Mehboob Shaukat
7-Feb-22 16:26pm
View
#include<iostream>
using namespace std;
class Employee
{
private:
string empId;
string empName;
int joiningYear;
int joiningMonth;
int joiningDate;
public:
Employee()
{
empId = "<<empty>>";
empName = "<<empty>>";
joiningYear = 0;
joiningMonth = 0;
joiningDate = 0;
}
Epmloyee(string id, string name, int year, int month, int date)
{
empId=id;
empName=name;
joiningYear=year;
joiningMonth=month;
joiningDate=date;
}
void setValues(Employee *emp2)
{
empId=emp2->empId;
empName=emp2->empName;
joiningYear=emp2->joiningYear;
joiningMonth=emp2->joiningMonth;
joiningDate=emp2->joiningDate;
}
string getId()
{
return empId;
}
string getName()
{
return empName;
}
int getYear()
{
return joiningYear;
}
int getMonth()
{
return joiningMonth;
}
int getDate()
{
return joiningDate;
}
Mehboob Shaukat
6-Feb-22 21:32pm
View
Hey sir, I'm using DevC++ 5.11 to do this.
And here typo problem can't be upper code is directly copied from DevC++.
Mehboob Shaukat
6-Feb-22 15:25pm
View
Thank you sir! But on my PC this error is showing. And now I download an application for a mobile cop compiler this shows an error missing return type for the function. What is your opinion, I'll need to reinstall my software or need to download a new copy of the software of Devcpp? Please suggest me.
Mehboob Shaukat
6-Feb-22 14:54pm
View
Sorry!
[Error] no matching for call to 'Employee(const char[12], const char[16], int, int, int)'
Mehboob Shaukat
6-Feb-22 14:37pm
View
Sir, I uploaded the overall class, please check this
Mehboob Shaukat
19-Dec-21 12:47pm
View
Okay, sir! but any solution for the second problem I mean, I want to print vowels for second name same as like this, I use this code by doing simple copy and doing some common changes but I want to start second name vowels from where first name vowels left this code is very helpful and useful but this start again from 1 but I want to start from a left number like if first name has 3 vowels and the last line is "vowel no 3: O", so second name vowels must be started from "vowel no 4: A" but this start like this "vowel no 1: A", if it is possible please answer me.
Mehboob Shaukat
19-Dec-21 12:34pm
View
hey sir!
Thank you! so much for this appreciation. This is really helpful for me. kindly briefly explain or share a readable link.
I've one more question that is, I want to print vowels for second name same as like this, I use this code by doing simple copy and doing some common changes but I want to start second name vowels from where first name vowels left this code is very helpful and useful but this start again from 1 but I want to start from a left number like if first name has 3 vowels and the last line is "vowel no 3: O", so second name vowels must be started from "vowel no 4: A" but this start like this "vowel no 1: A", if it is possible please answer me.
Mehboob Shaukat
30-Mar-21 3:51am
View
Ok sir thank you!
Mehboob Shaukat
30-Mar-21 3:38am
View
Sir I create a jar file and then create setup. This setup is run on my pc but can't run on other pc when I check installation place there is same jar file on the place of application file. So I think to create application file so I try to create this file, I use launch4j for and create this success fully. But this setup also run on my pc but can't run on other pc. It shows a message "This application requires a java Runtime Environment 1.4.0"
So I add jre link in jre tab in launch4j. But it seems same. How can I solve it?
Mehboob Shaukat
30-Mar-21 2:19am
View
Hello Sir can I ask one more question to you?
Mehboob Shaukat
29-Mar-21 0:09am
View
Hello Sir Thanks for encourage me. I don't know, how ? But when I create a jar file and create setup and then install setup every thing is same as I want. But in NetBeans some classes not run and some classes run. I thank you again...
Mehboob Shaukat
29-Mar-21 0:00am
View
Hello Sir Thanks for encourage me. I don't know, how? But when I create a jar file and create setup and then install setup every thing is same as I want. But in NetBeans some classes not run and some classes run. I'm again Thanks to you.
Mehboob Shaukat
28-Mar-21 5:42am
View
I'm using NetBeans IDE.
Mehboob Shaukat
28-Mar-21 5:41am
View
Sir how can I sent u whole files in .txt I hope you will find better solution by watching them!!!!
Mehboob Shaukat
28-Mar-21 5:38am
View
jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem5ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem5);
jMenu5.setText("Converter");
jMenu5.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
jMenuItem6.setText("Volume");
jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem6ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem6);
jMenuItem7.setText("Length");
jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem7ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem7);
jMenuItem10.setText("Weight and Mass");
jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem10ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem10);
jMenuItem8.setText("Temperature");
jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem8ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem8);
jMenuItem11.setText("Energy");
jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem11ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem11);
jMenuItem9.setText("Area");
jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem9ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem9);
jMenuItem12.setText("Speed");
jMenuItem12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem12ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem12);
jMenuItem14.setText("Time");
jMenuItem14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem14ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem14);
jMenuItem15.setText("Power");
jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem15ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem15);
jMenuItem16.setText("Data");
jMenuItem16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem16ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem16);
jMenuItem13.setText("Pressure");
jMenuItem13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem13ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem13);
jMenuItem17.setText("Angle");
jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem17ActionPerformed(evt);
}
});
Mehboob Shaukat
28-Mar-21 5:30am
View
/* * To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.Desktop;
import java.io.File;
import javax.swing.JOptionPane;
import java.awt.Toolkit;
/**
*
* @author Mehboob Shauakt
*/
public class Reader extends javax.swing.JFrame {
String filepath;
/**
* Creates new form Reader1
*/
public Reader() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jFileChooser1 = new javax.swing.JFileChooser();
jLabel1 = new javax.swing.JLabel();
txtfilepath = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu3 = new javax.swing.JMenu();
jMenuItem3 = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem5 = new javax.swing.JMenuItem();
jMenu5 = new javax.swing.JMenu();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenuItem10 = new javax.swing.JMenuItem();
jMenuItem8 = new javax.swing.JMenuItem();
jMenuItem11 = new javax.swing.JMenuItem();
jMenuItem9 = new javax.swing.JMenuItem();
jMenuItem12 = new javax.swing.JMenuItem();
jMenuItem14 = new javax.swing.JMenuItem();
jMenuItem15 = new javax.swing.JMenuItem();
jMenuItem16 = new javax.swing.JMenuItem();
jMenuItem13 = new javax.swing.JMenuItem();
jMenuItem17 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem22 = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Reader");
setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("M1.png")));
setResizable(false);
jLabel1.setText(" File path");
jButton1.setText("Select Path");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("Open");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jMenu3.setText(": :");
jMenu3.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
jMenuItem3.setText("Restart");
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem3);
jMenu4.setText("Calculator");
jMenu4.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
jMenuItem4.setText("Basic");
jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem4ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem4);
jMenuItem5.setText("Scientific");
jMenuItem5.addActionListener(new
Mehboob Shaukat
28-Mar-21 3:20am
View
Deleted
Sir This is my code. Main class run finely but other class show error thats why I past Main class code and other class code.
Main class code is following:
import javax.swing.JMenuItem;
import javax.swing.*;
import java.awt.*;
import java.net.URL;
import java.awt.Toolkit;
import java.awt.Frame;
import java.awt.image.*;
import javax.imageio.*;
import java.io.*;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Mehboob Shauakt
*/
public class pdf_reader extends javax.swing.JFrame {
/**
* Creates new form pdf_reader
*/
public pdf_reader() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jMenuBar2 = new javax.swing.JMenuBar();
jMenu2 = new javax.swing.JMenu();
jMenu3 = new javax.swing.JMenu();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
Restart1 = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenu5 = new javax.swing.JMenu();
jMenuItem9 = new javax.swing.JMenuItem();
jMenuItem10 = new javax.swing.JMenuItem();
jMenuItem11 = new javax.swing.JMenuItem();
jMenuItem12 = new javax.swing.JMenuItem();
jMenuItem13 = new javax.swing.JMenuItem();
jMenuItem14 = new javax.swing.JMenuItem();
jMenuItem15 = new javax.swing.JMenuItem();
jMenuItem8 = new javax.swing.JMenuItem();
jMenuItem16 = new javax.swing.JMenuItem();
jMenuItem17 = new javax.swing.JMenuItem();
jMenuItem18 = new javax.swing.JMenuItem();
jMenuItem19 = new javax.swing.JMenuItem();
jMenuItem5 = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
Close1 = new javax.swing.JMenuItem();
jMenu2.setText("File");
jMenuBar2.add(jMenu2);
jMenu3.setText("Edit");
jMenuBar2.add(jMenu3);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("MMCR");
setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("M1.png"))
);
setLocation(new java.awt.Point(0, 0));
setMinimumSize(new java.awt.Dimension(200, 55));
setPreferredSize(new java.awt.Dimension(200, 55));
jMenu1.setText(": :");
jMenu1.setFont(new java.awt.Font("Segoe UI", 1, 12)); // NOI18N
Restart1.setText("Restart");
Restart1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Restart1ActionPerformed(evt);
}
});
jMenu1.add(Restart1);
jMenu4.setText("Calculator");
jMenu4.setFont(new java.awt.Font("Segoe UI", 1, 14)); // NOI18N
jMenuItem4.setText("Basic");
jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem4ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem4);
jMenuItem7.setText("Scientific");
jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem7ActionPerformed(evt);
Mehboob Shaukat
27-Mar-21 17:53pm
View
Hello Sir I have many classes. I'll need to main class code share with or any other class?
Mehboob Shaukat
22-Mar-21 4:33am
View
I'm very very thankful to you sir.
Very very thank you sir
Mehboob Shaukat
22-Mar-21 4:22am
View
In my code I enter 1 using sin function it gives answer 0.8414709848078965 while original value is 0.017452 and when I enter 1 using cos function it returns me 0.540302 while original value is 0.999848 and same like this others
Mehboob Shaukat
22-Mar-21 3:51am
View
Kindly read this and tell me where I'm wrong. I'm very thankful to you.
Mehboob Shaukat
22-Mar-21 3:49am
View
Hello Dear
Here is whole code.
public class Testclass extends javax.swing.JFrame {
/**
* Creates new form Testclass
*/
double num,ans;
public Testclass() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
sin = new javax.swing.JButton();
cos = new javax.swing.JButton();
tan = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
sin.setText("Sin");
sin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sinActionPerformed(evt);
}
});
cos.setText("Cos");
cos.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cosActionPerformed(evt);
}
});
tan.setText("Tan");
tan.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tanActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(sin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTextField1)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(cos, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
.addComponent(tan, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(sin, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(cos, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(tan, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
Show More