48 Posted Topics
Re: You're are also calling accno++ inside your newaccount() function. You're including string.h but not using it string types. I believe (correct me if i'm wrong) static variables will be the same value for all instances of a class. It's not a good habit making all your variables public in your … | |
Re: Why loop through the datagridview if you can use this. txtName.Text = dgvEmployee.Rows(e.RowIndex).Cells("Employee").Value.ToString() | |
Re: Create a parameter in your crystalreport then transfer your value into the parameter. Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues Dim crParameterDiscreteValue As New ParameterDiscreteValue crParameterDiscreteValue.Value = Textbox1.text crParameterFieldDefinitions = CrystalReport1.DataDefinition.ParameterFields() crParameterFieldDefinition = crParameterFieldDefinitions.Item("Name of Parameter") crParameterValues = crParameterFieldDefinition.CurrentValues crParameterValues.Clear() crParameterValues.Add(crParameterDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) | |
I have this form that i need to save on Mysql database but i'm stuck on what I should do. This form needs to be done every 3 or 4 months. Every saved information stays saved in a row. This form has alot of radiobuttons,textboxes and comboboxes that I save … | |
Re: you first call for homepage then you close then current form. If you looking to open your homepage when ALL forms are closed then you need to check if all forms are closed during the closing event of every form. | |
Re: Not sure on Crystal Report, but it you create a parameter and you can use vb.net, send the string through the parameter and you can either padleft or padright. example: string=45 string.padleft(5,"-") will show "---45" string.padleft(5,"0") will show "00045" string.padleft(5,"1") will show "11145" string.padright(5,"-") will show "45---" string.padright(5,"0") will show … | |
Re: Your if statement is wrong. siubox.text will always equal to si. Because you declare si to equal to siubox.text so it will always calculate bubox.text=a * si try an if statement of if siubox.text<>"" then si=cdbl(siubox.text) bubox.text=a * si else b=cdbl(bubox.text) siubox.text=pi * b end if | |
Re: have u tried rsync? | |
I have multiple datatables containing multiple columns. I need to combine all of them to a single table. Here is an example: TABLE1 ================================================== -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5- ----------------------------------------------- -1---JON----23------TRUE------FALSE-------TRUE -2---JANE----29------TRUE-----FALSE-------FALSE- -3---JOE----32------TRUE------TRUE--------TRUE ================================================== TABLE2 ================================================== -ID---NAME---AGE---BCOLUMN3---BCOLUMN4---BCOLUMN5- ----------------------------------------------- -1---JON----23-------TRUE------FALSE------TRUE -4---JOEY----34------FALSE-----TRUE-------TRUE -3---JOE----32-------TRUE------TRUE-------FALSE ================================================== COMBINED TABLE ================================================================================= -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5---BCOLUMN3---BCOLUMN4---BCOLUMN5 --------------------------------------------------------------------------------- -1---JON-----23------TRUE------FALSE------TRUE-------TRUE------FALSE-------TRUE -2---JANE----29------TRUE------FALSE------FALSE------FALSE-----FALSE-------FALSE -4---JOEY----34------FALSE-----FALSE------FALSE------FALSE-----TRUE--------TRUE -3---JOE-----32------TRUE------TRUE-------TRUE-------TRUE------TRUE-------FALSE ================================================================================ Can someone … | |
I'm implementing Direct Deposits for our clients, but i would like advice on how to keep it from getting it to the wrong hands. I manage our information through our MySQL Database in a dedicated server. I would like to keep this information as secure as possible. That information should … | |
Can someone please help me on getting a formula round off to the next highest .25. example: 2.35->2.50 2.26->2.50 2.24->2.25 2.51->2.75 I can't use the Round function because if I have 2.26 then it will round off to 2.25 which is unacceptable. I have been using the Ceiling function but … | |
I've created an application where our clients can have access to our program by logging in. It uses our database for most information. I want to implement a richtextbox where it saves notes but i don't know if i should be saving that information as a file or what. Also … | |
Re: After closing the forms you will lose all data because all that data was just saved in memory therefore its only temporary. What you want to do is save that data into a database | |
How can I add the prerequisite for Crystal Reports Redistributable . I only see Crystal Report Runtime on there. I used to have VS2008 and it was available as a prerequisite. BTW I have already installed CRfoVS_13 to the IDE. | |
Is there a way to change the ftp password for a certain user programmatically? | |
I've created this application for some clients and for some odd reason it is not working for 1 of my clients. its seems to download a file no problem using this code [CODE] Dim request As FtpWebRequest = Nothing Dim response As FtpWebResponse = Nothing Dim respstrm As Stream = … | |
I'm in desperate need of pointers :( I have this problem. [CODE]private class frmMenu private intX as integer Private Sub btnEstimate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEstimate.Click frmEstimateMenu.Show(intX) end sub end class private class frmEstimate private y as integer Public Overloads Sub Show(ByRef x As integer) y=x … | |
I have a program where it takes about 4-6 seconds to load(lets call it form2). form2 has a lot of code so what I want to do is create a progress bar. Form1 has the button that takes me to form2. So what I want to do is load a … | |
I'm pretty sure its a false positive. My program does create and delete files when using it. Is there a way to stop showing as a false postive? | |
My table gets its information from a Mysql database online. I'm not sure which would be quicker to retrieve the row that contains the information specified. EG. table1 Name________Age John_________5 Joe__________20 At this moment i have a while loop that looks for john and gives me the row. But is … | |
I have a form let's call it Form1 that calls another form(Form2) Form2 to has a bit a code that needs to load in the LOAD_EVENT and takes about 4 seconds. I have made a new form(frmProgress) that only has a progress bar. I want frmProgress to show up and … | |
I have to make a lot of retangular boxes to make my program neat but i'm having a problem of adding boxes. I tried using the draw event in the tab page but everytime i scroll it will draw the lines again and messes up everything. Also when making a … | |
I have a database with a table called BREAKFASTMILK Inside the table I have Two Columns named MENU and FOOD ITEM when using this code if I change the index of one of comboboxes it will change the index of the other. I want to keep both independent but get … | |
Re: come on... I bet you have the book... it's not that hard. Put some effort in your homework that's the best way to learn | |
[CODE] If count < max Then If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then 'Code End If End If [/CODE] is there a way i can put both if statements together like if … | |
I have a table that i'm trying to use as a template that I can then copy to a new page. i only got this much [CODE] Dim oWord As word.Application Dim oDoc As word.Document Dim oTable As word.Table FileCopy("C:/1535.doc", "C:/1535_1" & ".doc") oWord = New word.Application oDoc = oWord.Documents.Open("C:/1535_1" … | |
Re: First off you need to find which types of variables to use. You cannot subtract to string as if they were double You want to create a variable for the cost of the pespi. [CODE] dim pepsicost as double= 2.50 TextBox2.Text="RM " & pepsicost [/CODE] You need to make a … | |
I have an assignment where I need to Sort the linked list according to Int Variable after the user has input the information. When I try using bubble sort I'm stuck because I don't know how go back to the beginning. If a user enters : 5 4 3 2 … | |
Today I was taught about virtual methods but got lost somewhere in the pointers. Here is an example [CODE] class Person { protected: string name; public: virtual string get_name() { return name; } }; class TFaculty:public Person { private: string title; public: virtual string get_name() { return title + " … | |
Re: if statements with brackets inside not outside. if (oid<1 && oid>100) { //your code } | |
Re: line 24. [i1] did you mean i+1 line 37. sentence misspelled , you used sentance btw try keeping global variables to a minimum. Most of those could go into your main() with no problem. When you call a function such as float Charactercount(string sentence) it creates a new string called … | |
Re: Can you explain where will you be getting the customer code from? You want to make the customer code to appear once and then after that leave it blank? ![]() | |
Re: When you mean public variables they are global variables correct? You can make a Public Property to send over your variable over to the other form. [CODE]Public Propery pizza_toppings() get return pizzatoppings end get Set(ByVal value) pizzatoppings = value End Set [/CODE] So you can set the value from other … | |
So I just started reading about serialization of class and how I can save them into a binary file. But after I define my class as <serializable()> and try to save the object it keeps throwing me this exception. [COLOR="Red"]"An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: … | |
I have a checkbox X1 that if checked it will check a column of checkboxes. What i'm trying to do is if the user unchecks at least one checkbox from the column it will uncheck checkbox X1. But I don't want it to run the event from checkbox X1 again … | |
What is the right way to declare an array [CODE]Dim lblname As Label() = New Label(get_num_of_children()) {} Dim mealcheck As Integer() = New Integer(get_num_of_children()) {}[/CODE] or [CODE]Dim lblname() As Label = New Label(get_num_of_children()) {} Dim mealcheck() As Integer = New Integer(get_num_of_children()) {}[/CODE] Thanks for your help | |
What are the purposes of using ifndef and define? When should it be used and why? I made a simple program in class just to go over the basic of Friends in classes but it wouldn't work and I was getting errors all over even though I went through it … | |
Re: where's your remainder function? In order to call remainder(num1,num2) You need to have your function which should be [CODE] #include <iostream> using namespace std; int remainder(int x, int y) { int result; // your code to get remainder return result; } int main() { // code that you just posted … | |
Re: You're calling for the divide function in main and check as if you are declaring a variable. When call for a function say "void something()" in main [CODE] void something(); // void does not return anything other than run code or cout ur stuff int somethingelse(int,int); //int function needs to … | |
Re: your first line should be #include <iostream> Some of your logic is wrong. Overtime hour is anything over 40 hours That means if the person made 50 hours then overtime hours is 10 hours. So iovertime_hours=ihours-40 Same with your overtime pay. Overtime pay is the wage * 1.5 | |
Re: first you need make a variable where the user inputs the total of numbers then you need to ask is the variable higher than 50 thousand if yes run your if statements to find hours mins and seconds, if not then display error message and exit | |
I've tried google a way to sort a table but couldn't get my code working. My program lets the user input enter information such as first name and last name in textboxes, once done they click on update button(so far everything works). On the top right of the form it … | |
Re: I'm taking classes of c++ but VC++ is whole new world for me. When making GUI applications I use VB.NET its so much easier. If you're starting to learn programming and wish to just make GUI application I would recommend learning VB.NET | |
Re: java would probably be a good language to use. java can be opened from different OS. | |
Re: As I'm still learning in college, we don't get explained of all of them either. But basically you will need to #include <iostream> for your cin and cout. Then also there is other headers that you can use such as #include <iomanip> to set width,length or set how many decimal … | |
Re: [QUOTE=Ducklz;1474564]Still no luck :([/QUOTE] There is no way you can make more than 1 textbox (if thats what you are trying to do) You made 2 controls(textbox and tabpage) and you can't make more than that. Looks like you calling the same tabpage changing its text on depending on the … | |
Re: You can use a pointer , then allocate n amount of Int not sure if I can post you the code but i'll show it to you anyway: int* a; //make a pointer to int //run your code to get "index" a= new int[index]; //use a[index] as your array //don't … |
The End.