43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aabbccbryanmark

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Burger extends JFrame implements ActionListener { JLabel lblForAll, lblBelow, pic, pic1, pic2, pic3, pic4, pic5, pic6, pic7; JRadioButton rBtn, rBtn1, rBtn2, rBtn3; JCheckBox cBtn, cBtn1, cBtn2, cBtn3; JTextField txt, txt1, txt2, txt3, txt4, txt5; JButton btn1, btn2; ButtonGroup btnG; int ham=25, egg=15, …

Software Development java java-swing
Member Avatar for aabbccbryanmark
0
2K
Member Avatar for ChrisHunter

Is there a way to remove blank worksheets from an excel report that is generated in SSRS? I've done some research and i could find solutions such as removing blank rows and even entire sheets but only via marcor's in excel, which won't work in my case as the report …

Software Development microsoft-office
Member Avatar for ChrisHunter
0
1K
Member Avatar for tony75

Hi I try to Search for xp_cmdshell string in log.txt file but i got error? my $file = "c:/logdata.txt"; open (IN,$file) or die "Can't read $file: $!"; my $tag = "xp_cmdshell"; open(IN,"<",$file) || die "could not open $file: $!\n"; while (<IN>) { if (grep(/$tag/,$_)) { #Do something } } Close(file);

Software Development file-system perl
Member Avatar for tony75
0
211
Member Avatar for ImZick

Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced

Software Development listview vb.net
Member Avatar for ImZick
0
571
Member Avatar for helixkod

I have an XML file that is in this format: <root> Test string <Signature> WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==</Signature> </root> I was able to produce the SHA256 and produced a string by using the following: string CalculateSHA256(const string& input) { SHA256 hash; string digest; StringSource _(input, true, new HashFilter(hash, new HexEncoder (new StringSink(digest)))); return …

Software Development c++ encryption xml
Member Avatar for plenty.groover
0
409
Member Avatar for archangel1177

In a previous thread I was trying to get some code to work as a search function and after messing with it for a while I finally got it to work-sort of. What I have is a search function and when I run the code it does find the part …

Software Development visual-basic
Member Avatar for TnTinMN
0
205
Member Avatar for Man1919

Hi! I am Working on TimeCode Slate Project (Working with: Arduino Uno Rev. 3), Now I working on the led display(8 digit 7 segment) code. I'm trying to modify this timecode display code from: "Dan Thompson - Timecode Based Stopwatch" http://danthompsonsblog.blogspot.co.il/2008/11/timecode-based-stopwatch.html to work with led display (Originally, the code from …

Software Development c++ display
Member Avatar for Man1919
0
404
Member Avatar for ankit.4aug

Hello..i tied a lot but i am not able to get the answer.. i am writing a program in which user input the array with space as delimiter eg- 4 3 5 2 3 so this value should be stored in array as a[0][0]=4 a[0][1]=3 a[0][2]=5 a[1][0]=2 a[1][1]=3 a[1][2]=0 please …

Software Development c++
Member Avatar for tinstaafl
0
501
Member Avatar for kumar_g

Hello Friends I am VB.NET Programmer and currently working on a project where i have to copy the rar/zip file from any folder. While pasting it, it should extract the rar/zip contents automatically. I am done with my extracting part but Here are some problems i am facing Problem 1 …

Software Development vb.net
Member Avatar for tinstaafl
0
288
Member Avatar for JavaGr33nh0rn

My homework goes like this: Write a program that accepts as many integers the user wants to input. Determine the highest and lowest numbers and subtract all other numbers from the highest number. example: numbers to be entered: 6 number1 :15 number2:20 number3:29 number4:38 number5:12 number6: 42 Output: Highest: 42 …

Software Development java
Member Avatar for JavaGr33nh0rn
0
337
Member Avatar for enkitosh

I'm very confused about void pointers and this notation here below. I do understand that when you have a void pointer you eventually cast it to some kind of type int, double. What I don't understand is what is happening here : copySize = *(size_t *)((char *)oldptr - SIZE_T_SIZE); copySize …

Software Development c
Member Avatar for enkitosh
0
291
Member Avatar for ImZick

Hi, Sorry i need to ask for a help again. I have a listview and a search button i want to populate my listview when i click a button to search the field name "Last Name" for example i want to search "Sample" then it will populate my listbox with …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
503
Member Avatar for Papa_Don

Group, Via Visual Studio 2010, I've created a SQL Server database with the appropriate fields, data types, etc. I'm now ready to begin some testing, however I need to put some information in those datafields. I'm having trouble doing this. I DID NOT set the tables to display in the …

Software Development sql vb.net visual-studio
Member Avatar for Reverend Jim
0
311
Member Avatar for gabriel.riveraperossenkopp

I need to write a code with a constructor class in order to see the whole phonelist using an array that reads from a document txt, able to add a person and phone number, search just one person in the phonelist and able to modify their phone number. here is …

Software Development java oop smartphone
Member Avatar for elhkei
0
719
Member Avatar for xHellghostx

I am having a problem to understand how class inhertance works in Java.. Now I want to get information from a class to another and let's say we have class A and class B class A contains a string an int and a byte class B contains a String and …

Software Development java oop
Member Avatar for stultuske
0
283
Member Avatar for Papa_Don

Group, I have a form that opens with a panel and multiple textboxes displayed that I created via the GUI. Once the user enters the desired information within this panel, a button is click and a new panel appears with the same textboxes displayed as the original. This panel and …

Software Development gui vb.net
Member Avatar for Papa_Don
0
173
Member Avatar for somjit{}

in an assingment, i have to implement a deque ( double ended queue ). the underlying datastructure is allowed to be arrays or linkedlist. only that im not allowed to use any prebuilt java api that does the above. (like the java.util.LinkedList api) implementing the above using doubly linked list …

Software Development api google-api java linked-list queue
Member Avatar for somjit{}
0
194
Member Avatar for HctiMitcH

I am working an a simple project that required a vb.net login form. I added a login form that was preinstalled in visual studio, ex. Menu>Add existing item>login form. I am using visual studio desktop 2012 and I made the project for .NET 4.5. I then realized that my target …

Software Development vb.net visual-studio
Member Avatar for HctiMitcH
0
439
Member Avatar for craig.durnin.1

Literally, I have been asked this question ""The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, … ; the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms – i.e., Fib[n] = Fib[n – 1] + Fib[n …

Software Development c c# c++
Member Avatar for plenty.groover
0
2K
Member Avatar for milkman93

Hey Guys, I'm want to output a calculation to a JLabel. Example: double num1 = 14; double num2 = 3; double ans; ans = num1/num2; JLabel jl = new JLabel(); add(jl); jl.setText("The Answer is: " + ans); Currently the answer for this will be 4.666666667. Now if this was a …

Software Development gui java
Member Avatar for milkman93
0
5K
Member Avatar for jovstudios

Dim Dbl1 As Double Dim Dbl2 As Double Dim Aux1 As String Dim qtyadd As String Dim subtotaladd As String Dim itm As MSComctlLib.ListItem Dim i As Integer Set itm = ListView1.FindItem(txtCode.Text) If itm Is Nothing Then ListView1.ListItems.Add , , txtCode.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add , , txtproductname.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add , , txtqty.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add …

Software Development visual-basic
Member Avatar for AndreRet
0
163
Member Avatar for anestistsoukalis

I think that the main problem on my code is that iam trying to pass a struct through another struct . Is there a problem if i use "->" instead of (*). ? Because it keeps showing me an error that say's : invalid type of argument '->' Iam trying …

Software Development c
Member Avatar for anestistsoukalis
0
213
Member Avatar for 2mhzbrain

experts please help on querying and counting the frequency of data, i want to count the number of data appearance then put it on like this: Name----Lastname----Relationship----Freq Egie----Tayag-------Brother---------2 i will place the result on a report counting the number of a person's visit on the theme park. TIA ^_^ SELECT …

Software Development visual-basic
Member Avatar for 2mhzbrain
0
156
Member Avatar for verbalurbs

Hello I am trying to display an ID which is a primary key in my table by selecting the corresponding name in my table. the names have been saved in a combo box and depending on the name selected the textbox will display that Id. the code I have so …

Software Development sql vb.net visual-basic
Member Avatar for martinhosking
0
409
Member Avatar for 3e0jUn

So I have a code that prints out the `sys.argv` when the program is ran. How can I parse $ python ./arch.py install * to show `["./arch.py","install","*"]` Instead of `["./arch.py","install",#other files in directory]`?

Software Development python
Member Avatar for deceptikon
0
201
Member Avatar for Elixir42

Everything was running fine, then I made a simple change. Like adding a class or two and bang!!! C2995. Can you spot where I have obviously gone blind and cannot see the error. I have header gaurds throughout the solution, so I dont understand why this is happening. Here are …

Software Development c++
Member Avatar for Elixir42
0
451
Member Avatar for murnesty

I recently learn about the polymorphism and I don't know what is the purpose to use this feature. From http://www.cplusplus.com/doc/tutorial/polymorphism/ , it uses the child class rather than the parent class. I thought most of the time we inherit and we only use the parent class to access the child. …

Software Development c++
Member Avatar for murnesty
0
159
Member Avatar for kimangel

Hi Experts, my sql query below returns 0 value, though I have entries in my data base. Please help me check my codes below; Private Sub cmdSearch_Click() Dim sTrID As String sTrID = txtSearch.Text Dim Total As Integer Set rs = New ADODB.Recordset rs.Open "Select Count(DateIn) as Total from Time_In …

Software Development sql visual-basic
Member Avatar for kimangel
0
304
Member Avatar for solomon_13000

The problem with my code is that the update method doesn't get invoked even after I notify the observers. Did I miss something in my code? package com.observer3; import java.awt.FlowLayout; import java.util.Observable; import java.util.Observer; import javax.swing.JLabel; import javax.swing.JPanel; public class A extends JPanel implements Observer{ JLabel lbl; public A(){ setLayout(new …

Software Development java java-swing
Member Avatar for solomon_13000
0
432
Member Avatar for sukhanya

I have 'bit' datatype in db. I convert its equivalent datatype to 'bool' in c# when i declare. protected bool e_Status; And when I set the property for the above, public bool Status { get { return e_Status; } set { e_Status = value; } } Now how do I …

Software Development c#
Member Avatar for sukhanya
0
844
Member Avatar for taekiewzz

i am doing a windows application program and these are the code inside System.Diagnostics.Process.Start("ConsoleApplication1.exe"); Thread.Sleep(500); System.Diagnostics.Process.Start("ConsoleApplication2.exe"); Thread.Sleep(500); System.Diagnostics.Process.Start("ConsoleApplication3.exe"); as if one of the console application program face error it will show in the cmd, so how would i going to capture those error in cmd and show in the message …

Software Development
Member Avatar for taekiewzz
0
222
Member Avatar for Papa_Don

Group, I have 36 string names that I'd like to create. In general these string names can be very similar. I thought I'd try creating a loop to do this for me. But I can seem to find the correct syntax to do this. To clarify, these string names can …

Software Development vb.net
Member Avatar for TnTinMN
0
618
Member Avatar for shaun.b

Just wondering if anyone knows how to not save a document after creation when using Microsoft.Office.Interop.Word. Basically i am using mail merge to print off a report from c#, the document get made, values are passed to it no problem and i can then print it without any issues, however, …

Member Avatar for shaun.b
0
1K
Member Avatar for Ann95

An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error. How can I resolved this error in VB 2010?

Software Development vb.net
Member Avatar for TnTinMN
0
638
Member Avatar for clouds_n_things

So, quick question, (has to be just something I'm missing), if I want to concantate a string and integers in a url, is there a way to do so? I'm sure there is...I mean this IS python! from urllib2 import urlopen width = input("Please enter a width specification here: ") …

Software Development python
Member Avatar for clouds_n_things
0
182
Member Avatar for uknown2

I have less than a day to understand and learn evrything there is to know about arrays and to be able to know what the output for a code on arrays will give.. I was hoping someone will be able to suggest any good sites etc.. from which i can …

Software Development java
Member Avatar for JamesCherrill
0
177
Member Avatar for HankReardon

Hello, I am taking my second Java course this semester CSC-251 (advanced Java). I took introduction to computer programming last summer. With three programming courses under my belt will I be able to find a job out there in the real world? For a little background information about myself. I …

Software Development career java
Member Avatar for deceptikon
0
353
Member Avatar for kyle.mace.35

Alright so my problem is I am getting an error that says undefined reference to all of my functions related to DoubleLinked, DoubleLinked<string> dict, dict.add, etc. If anyone knows why that would be great. Thank you. Oh and if i add () to DoubleLinked<string> dict then i just have undefined …

Software Development c++ linked-list
Member Avatar for kyle.mace.35
0
384
Member Avatar for clouds_n_things

So I'm writing a personal bank tracker for myself, and I'm having a bit of trouble with a line of code. The ID_Pin method below is equal to 0000, however when i try to create an instance (any instance of the Account class), it returns the "Access Denied" bit that …

Software Development python
Member Avatar for clouds_n_things
0
177
Member Avatar for chdboy

CODE: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") Dim adaptor As New SqlDataAdapter Dim dataset As New DataSet con.Open() con.Close() con.Open() cmd = New SqlCommand(str, con) cmd.Connection = con cmd.CommandText = "SELECT Firstname FROM …

Member Avatar for chdboy
0
176
Member Avatar for carrl00

i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import …

Software Development java java-swing
Member Avatar for M4trixSh4d0w
0
152
Member Avatar for vivek.vivek

Hi, I need to print lines if it appears more than 3 times in a file looking only at the second column. I have written the below code. But it will look for the complete words in a line. #!/usr/bin/perl use strict; use warnings; my $file = 'file.txt'; my %seen …

Software Development perl
Member Avatar for 2teez
0
197
Member Avatar for joejodre

plz i need a pascal prog which input 2 values,call dem A and B.print the value of the largest variable. (2)modify the prog above to accept 3 values A,B,C and print the largest.tanx.

Software Development pascal
Member Avatar for pritaeas
0
157
Member Avatar for danielgr

Hi, I have a webservice which needs to be serialized. At the moment I can call the webservice as: Call10.Process("field_a","field_b") and the function looks like this: Public Function Call10(ByVal User As String, ByVal Password As String) As String If User = "user" Then MsgBox("Correct User") End If If Password = …

Software Development vb.net
Member Avatar for danielgr
0
185
Member Avatar for anisha.silva

HI, I have a class Customer and Vehicle. Fist a customer needs to be added to the application. when a vehicle is being added the customer id needs to be added also so i wrote the code as below @Override public void addVehicle( String make, String model, String year, String …

Software Development java
Member Avatar for anisha.silva
0
368
Member Avatar for HankReardon

Hello, What is the best way to check my code? I have written a program that counts the swaps required to sort an integer array using the Bubble, Selection, Insertion and Quick sort methods. How can I be absolutely certain that my swap counts are correct? Will someone take a …

Software Development java
Member Avatar for HankReardon
0
3K
Member Avatar for bornwith

I am trying to change a computer's IP address from inside a VB project using netsh. I can get the cmd prompt to open but it doesn't pass the arguments. Any thoughts? Thanks Private Sub BtnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTest.Click Dim IPmsg As String Dim …

Software Development lan-wan vb.net
Member Avatar for bornwith
0
3K
Member Avatar for StefanRafa0

hello guys i want to make progress bar in netbeans i trying with this code but the progres bar doesnt work property just showing 100% when finish and doesnt have animation of doing that progress: public final class Music extends javax.swing.JFrame { public static class Start implements Runnable { @Override …

Software Development java java-netbeans java-swing oracle
Member Avatar for mKorbel
0
286
Member Avatar for Papa_Don

Hi Group! I need to write the data from multiple TextBoxes (which I've moved to individual string names) into one text file (miscflds.txt). These individual strings will need to be written one on top of the other. To be clear, it will need to look like this: Item A Item …

Member Avatar for TnTinMN
0
618
Member Avatar for krystosan

why does this gives error `print "module {0}".format(key)` , i hope this is nt the python version problem...

Software Development python
Member Avatar for vegaseat
0
345

The End.