64,152 Solved Topics
Remove Filter ![]() | |
Hi, Please help on this. How can I let the buttonmenus shows when the toolbar menu is clicked? Here is my code: Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) Select Case Button.Description Case "Maintenance" 'I want to display submenus when this is clicked! 'button menus: '1.) Employee '2.) company '3.) department … | |
Hello everyone, I have question about how AudioTrack instance should be used for streaming applications. Below my code example and some brief explation about code ... /* some work before */ InputStream in = client.getInputStream(); AudioTrack output_stream = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_8BIT, 8192, AudioTrack.MODE_STREAM); byte[] buffer = new byte[8192]; … | |
what if i have two dropdown lists.....which has list items with same values ? is it harmful ? mean list item with same values of 2 different drp dwn lists ? and what does it mean actually ? usage ? | |
Here is a basic join code for two database tables, I want it to compare the two tables with a users email, it would have to be the current user logged on. How do i do so with php? SELECT column_name(s) FROM table_name1 INNER JOIN table_name2 ON table_name1.column_name=table_name2.column_name | |
Hello I have made a php file upload for the visitors of my site to upload small videos too, now I want the users that are logged into their account to have the videos they upload be linked to their user id, so anyone vewing the small video can know … | |
Hi all, I need help with this code: DataAdapter1.Fill(DataSet1); DataSet1.Tables[0].DefaultView.Sort = "sortcolumn"; BindingSource1.DataSource = DataSet1.Tables[0].DefaultView; After execution, the "DataSet1.Tables[0].DefaultView.Sort" property is reset to empty string. What might be the cause of this, and how can this be avoided? Thanks | |
I am trying to serialize data in my XNA project. I have a Texture2D background property that I use during runtime, but I also have a 'string property' to hold my Background name. This will allow me to serialize the asset name so I can later use the info to … | |
Hello All, this is my first post, so bear with me... My problem is with the following code. I have a simple menu setup to do some number conversions, and everything compiles properly. When i run the code, i end up with the Java VM (in bluej) just running endlessly, … | |
Hi Everyone. It's been a while since I was on here last, but ran into an interesting problem with a nested for loop that I cannot solve. Hoping someone here will know the answer. I placed breakpoints in my code at the For x=1 to 10 line and after to … | |
I have a xampp database user log in with username and password, but i want to send each user an ID after registration and this ID should auto increment in my database. at the moment i can only achieve this if i include a field on the registration form, but … ![]() | |
I'm making a B2B portal that can see just loggedin business customers that I add to base, I finished almost all, but there is one problem. When customer add some goods to his cart, goes to checkout and confirm his order he will have a link to invoice.php?ids=156 and that … | |
Hello, I need to write a program to take in a name (max 101 characters) and out store in into an array so that I can output it like a list. These 2 programs are apart of a bigger program that keeps asking if you want to add another name … | |
Hi, I am trying to create the most general function possible to test if an object passed into it has mutability or not. With some prior help from pytony, it seemed that the best way to do this is to try to set and attribute. If the attribute can be … | |
Hello, I am currently working on a project and I am stuck at the moment. Basically I have a few JToggles buttons, a jbutton and a text box. When the user select a jToggle button, write some text in the text box and clicks on the Jbutton, the text on … | |
serious noob question, but i'm following my android book and it is doing something with a class that extends list activity. is that a file that i have to create on my own, or is that provided once i create a new android project? i can't seem to find it. | |
Hi People, Got an issue with css in php. Actually I'm trying to create and send a html email. My front-end form consists of To(textbox where recipients email address will be entered) and then I've embedded ckeditor in place of Textarea where I will be typing the message... Now this … | |
Im new here and i want to make this code more simple: If tabC.TabCount = 1 Then NClose.Enabled = False CloseNote.Enabled = False CloseNoteContext.Enabled = False CloseNoteX.Enabled = False Else NClose.Enabled = True CloseNote.Enabled = True CloseNoteContext.Enabled = True CloseNoteX.Enabled = True End If I try this `NClose.Enabled, CloseNote.Enabled, CloseNoteContext.Enabled … | |
I get a stackoverflow exception on following commented line. namespace Football_Manager_WFA { public partial class Settings : Form { Color def_bgdColor = SystemColors.Control; Color def_fontColor = Color.Black; // ERROR static FontFamily fontFamily = FontFamily.GenericSansSerif; Font def_fontType = new Font(fontFamily, 8.0f); } } | |
I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've … | |
Hi everyone. I am making a random music player. How can I play music randomly? My WMP(windows music Player) is Invisible in order to become a background music. What code should need to aplpy to create this program? Here is my Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e … | |
The following are the requirements of the program and all code can be written within one C++ source file for the purpose of this assignment. 1. Declare three structs to store Athlete, Event and Registration details. The struct definitions are provided in Appendix 1. 2. Write the driver code (main) … | |
hi there, I am making an animation which include music. I want my program to stop the animation when the music stops. Anybody know what code do i need to apply through if condition? I need your help... =( tnx. Here is my code: Private Sub Form1_Load(ByVal sender As System.Object, … | |
Hi i have a datagrid in my c# windows form and i want to merge the row he can input data in w1, w2, w3 and .., and save. weeks Item 1 | Forecast | w1 | w2 | w3 Item 1 | Stock on Hand | w1 | w2 … | |
/*Ok I have code that's behaving unexpectedly The following program is supposed to print prime numbers for n1=100,n2=1000,n3=10000 and n4=100000 except that for n1=100, it prints the squares of primes less than 10. I can implement this same program in c++ and wouldn't get such output. I need another pair … | |
Hello, I am doing a school project and need assistance on validating raw input, this is very simple stuff, but can someone answer this for me? The statement is: ordertype = str(input("Is the order pickup or delivery?")) Only two values could be entered: P or D (or p or d), … | |
Hi All , I need to get multiple result from same table my table structure is id category parentid 1 dress 0 2 men 1 3 mtshirt 2 4 women 1 5 wtshirt 4 If I give wtshirt it should produe result as wtshirt-men-derss how can I write query for … | |
Hello guys, i want to populate a textbox based on the selected index of a combobox. For example, the textbox will only be displayed if the selected index is "5". But the problem is, i generate a series of comboboxes through a loop which is based on the number of … | |
how can i let image overwriting when uploading? and if uploading an image titeld different how can i make it to change to specific file tite?im trying to make an image replacement to change images on the web page like for example logo. how can i make the file name … | |
My initial thoughts on the default constructor are that it was called automatically. From what I can see, it seems that this is so but a constructor called automatically doesn't initialize int or char variables for exampe, to Zero as I originally thought. It appears that they initialize the variable … | |
I am trying to find the minimum number when the user enters any 5 numbers I am not sure why this code is not working, every time I run this function I always get 0. Can someone please tell me what is wrong! int i; int num1 = 5; int … | |
-->>Hi everyone,I'm having this problem with updating records in my application my code is: SQL = "UPDATE Ministers SET User_Name='" & txtUser_Name.Text & "',Password='" & txtRetype_Password.Text & "',Prefix='" & cmbPrefix.Text & "',Passport='" & NewPicture_Name & "';" Call dbConnect Conn.Execute SQL Conn.Close Set Conn = Nothing -->>The SQL and Conn variables … | |
any one help me in completing my program on FLAMES game i am not getting how to complete it please help me | |
I have this code: static String format(String number, int decimalLength) { char[] decimal; System.out.println(number); String[] formatA = number.split("."); System.out.println(formatA.length); StringBuilder cents = new StringBuilder(""); int dollars = 0; dollars = Integer.parseInt(formatA[0]); decimal = formatA[1].toCharArray(); for (int i = 0; i < decimal.length; i++) { if (i < decimalLength) { cents.append(decimal[i]); … | |
[FONT=Comic Sans MS]Hi everyone, I'm shreya. I'm doing my bca (bachelor in computer applications)-4th sem. I'm required to do a mini project on dbms using msaccess and backend as vb. I'd be glad if you can suggest a project. I have 3 months to complete this project. I hope I'll … | |
Hello, I am having trouble passing a file into parallel arrays. Based on the code below, I get a bunch of jumbled numbers on my cout screen that don't even show up in the input file. I have attached a PNG of the console output. I am at a loss … | |
I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've … | |
i have a signup form which needs user to submit his academic information also. academic info table in database is like this : tbl_acadinfo  now how would i fill this table via asp.net (as a part of signup form with title ACADEMIC INFO) ? bcz educationlevels are many … | |
Hi everyone, I just found something interesting in my code but I ain't sure why JavaScript. var input= 0; // But in my case, the input variable is getting the value from a field in a form if(!Number(input)){ document.write('it is not a ZERO'); } This is something similar to my … | |
Hi all, just wonder is there any way to have a constructor parameters that having another classes with parameter? for example like class Player { public: Player(char = 'X', char = 'O'); }; class Board { public: Board(int, Player); }; | |
i have this page in hard form and i need to make a table for it in DataBase (Sql Serber 2008), i tried alot but couldn't find any way to make table for it in data base. + i have also user table in DB, so userid should b also … | |
Dear All, I have a question about array which let me confused and I think it needs deep understanding of arrays. I would like to know why it is possible to use array of char as pointer without a fixed size and also without dynamically allocating memory for it and … | |
Hi there. I have a problem in randomly falling an object. I want my program to randomly fall an image and I only have 1 image fall. The code I've used for falling an object is here. `Inline Code Example Here` Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As … | |
I am having trouble with this page: <?php session_start(); // LOGIN PAGE... include('/mods/core/core_login.php'); // SQL stuff. mysql_connect('SQL host','Username','Password'); mysql_select_db('DB_NAME'); $ci = rand(1, 10); if ($ci == "1"){ $img = "http://images.awsomechat.comuv.com/cap_1.png"; // URL of image. $ans = "LoIs DDiO"; // Answer to image. }elseif ($ci == "2"){ $img = "http://images.domain.com/cap_2.png"; // … | |
I have written a program for the 8-Queens problem.It prints all possible solutions. queens() finds all the possible solutions. ok() tells whether the given column and row is safe or not. The very strange problem is: 'Count' won't increment. I have no idea why. #include<iostream.h> #include<stdlib.h> #include<conio.h> int arr[8][8]={0}; int … | |
Hello, I've got a code (modified but not written by me) which uses a timer to find the idle time, and I added the code to make the computer go to sleep mode if the timer matches the time value set. However, when I resume the computer, it goes back … | |
I just launched my first website I fully wrote myself in php/mysql - [www.TomPaineToday.com](http://www.TomPaineToday.com). After testing it on my own computer for a while, I decided I might as well launch it and see what problems I run into. The first issue I came across was that my link redirect … | |
how can we make Function in php this is the line to be read = 'i am going to [USA]' only required the USA to be print nothing else Please help ![]() | |
Hi, I'm making a program using Visual Studio 2010. I'm strugging with how to correctly use classes and their instances. For example; What is the difference between using the following ways to call function from one class within another... Example 1: Dialog.h #include OtherClass.h MyOtherClass myClass; Dialog.cpp myClass.MyFunction(); Example 2: … | |
Hi all. I'm working my way through "Accelerated C++" have a question regarding chapter 5. The program calculates students final grades by taking a median of the homework grades. I am trying to alter this program so that it uses *list* instead of *vector*. The issue I'm having is with … | |
My school and the education board uses Turbo C++ as the compiler. I have Windows 7 64 bit. Can anyone tell me how can I install Turbo C++ on my computer. |
The End.