43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ReyJEnriquez

Does all pre-defined function in vb.net can be override?? because of this (Public Overrides Function ToString() As String) I was able to ask this kind of question..

Software Development vb.net
Member Avatar for tinstaafl
0
256
Member Avatar for Pyler

Hi I'm trying to write a toString() method for a generic LinkedStack but I'm having trouble My class has two push methods. One pushes elements of some type onto the stack. It takes in some generic element and pushes it onto the stack. The other method takes in some generic …

Software Development java
Member Avatar for Pyler
0
1K
Member Avatar for danielgr

I have a class of properties which is being used as part of a web service. The Class has list of another class as one of its properties: <Serializable()> _ Public Class LessonPlans Public Property Teacher As String Public Property RoomNumber As String Public Property Subject As String Public Property …

Software Development vb.net
Member Avatar for danielgr
0
266
Member Avatar for Xakzi

Hello! I am working on a small decryption / encryption program using Win32 Console Application c++ nothing big, here is my code: #include "stdafx.h" #include <iostream> #include <fstream> #include <conio.h> #include <stdio.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char name[100],target[100],ch,mod; //Declare Variables unsigned char apostrophe; int num[100],i,option; …

Software Development c++ encryption ios
Member Avatar for kill-it
0
373
Member Avatar for Tinnin

Hi all, I'm running through the book "The C Programming Language" by *Kernighan & Ritchie* and I'm having some trouble with one of the exercises. "Write a program to determine the ranges of char, int, short and long variables, both signed and unsigned, by printing appropriate values from standard headers …

Software Development c
Member Avatar for Ancient Dragon
0
196
Member Avatar for satnav_8

Here is what I'm trying to do: * Take input with scanf() * Pass input to function * Beep frequency associated with input I have notes defined, e.g `const in C5 = 523.25;` I want the user to be able to input "C5", and have the computer beep at a …

Software Development c
Member Avatar for Ancient Dragon
0
392
Member Avatar for Henshens

includ<iostream> includ<conio> using namespace std; int x,z; char op; switch(op);{ cout<<"input two a rate"; cin>>x z; cout<<"category operator ( + , - , * , / , %)"; cin>>op; swich(op) case'+':cout<<"opertor +"<<x+z<< endl; break; case'-':cout<<"opertor -"<<x-z<<endl; break; case'*':cout<<"opertor *"<<x*z<< endl; break; case'/':cout<<"opertor /"<<x/z<<endl; break; case'%':cout<<"opertor %"<<x%z<<endl; break; default:cout<<"your are false"; …

Software Development c++
Member Avatar for UFOOOOOOOOOOO
0
188
Member Avatar for JOSheaIV

Hey everyone, So recently my sister got herself her own laptop (okay it's been a year or so). Anyway, she's been getting horrible at staying up super late messing around on it. Well I decided I'd help my parents out and write a program to control her laptop a little. …

Software Development
Member Avatar for JOSheaIV
0
212
Member Avatar for Naveed_786

Dear All, How Can i prevent duplicate record entry in vb.net. Please help

Software Development vb.net
Member Avatar for spider2vb
0
5K
Member Avatar for Animal Mother

Hi I would like to know if anybody could help me insert records into a MS access database with VB.net, I'm actually a c# programmer and I have never worked with databases before, I got as far as connecting but as soon as I want to add a record I …

Software Development vb.net
Member Avatar for dnis30
0
7K
Member Avatar for bullet_1

I want to create a template file in which I want to create my own styles programatically(in VBA) I have following code Sub Style() Dim myStyle As Style Set myStyle = ActiveDocument.Styles.Add(Name:="Abbreviations", _ Type:=wdStyleTypeParagraph) With myStyle.Font .Name = "Calibri" .Size = 12 .Color = wdColorBlue End With Selection.Range.Style = "Abbreviations" …

Software Development visual-basic
Member Avatar for bullet_1
0
145
Member Avatar for Brian1983

How would I go about modifying this code to accept characters instead of integers? #include <iostream> #include <cstdlib> using namespace std; struct node { int key; node *next;}; int main(int argc, char* argv[]){ if(argc >2) { int i, N = atoi(argv[1]), M = atoi(argv[2]); node *t, *x; t = new …

Software Development c++
Member Avatar for Brian1983
0
188
Member Avatar for matthew.s.thomas.14

Implement function ion() that takes a string as input and returns True if the entered string ends in 'ion' and false otherwise. ion('congratulation') True ion('marathon') False How can I start this off and Finish it?

Software Development python
Member Avatar for TrustyTony
0
133
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates and I keep getting lost in all these compilation errors. Here is the latest // This is the interface for the base class template<class V, class I =int> class Array{ private: vector<V> myStore; public: Array(); Array(I size); Array(I size, V value); …

Software Development c++ oop ui-ux
Member Avatar for abhimanipal
0
253
Member Avatar for lovelyv

So this is what i need to do and its not coming out right in my code. i need A function to calculate how long the balance will take to grow to a given value. This function is not part of the account class. It should take two arguments: an …

Software Development c++
Member Avatar for lovelyv
0
390
Member Avatar for iFrolox

Hello, I'm having trouble serilizing different classes to the same xml. Class #1 is for accounts Class #2 is for settings public static void SerializeAcc(List<Account> list) { XmlSerializer serializer = new XmlSerializer(typeof(List<Account>), new XmlRootAttribute("Settings")); using (TextWriter writer = new StreamWriter(XMLPath)) { serializer.Serialize(writer, list); } } public static void SerializeSett(List<General> list) …

Software Development
Member Avatar for iFrolox
0
134
Member Avatar for infatuate

Hey guys I'm having trouble declaring a header file so I can use multiple modules. I have files named main.c foo.h and in main.c I have a <#include foo.h> but it says that it can't find the foo.h file. Why?

Software Development c
Member Avatar for Ancient Dragon
0
262
Member Avatar for nytman

dear list, what i have to do is, i have perform some mathmatical operation in one function and using its results as input into another function, here is my code of what i had done till now : import math def Math(x1,y1): a = x1+y1 b = x1-y1 c = …

Software Development python
Member Avatar for vegaseat
0
293
Member Avatar for frankenfrank

Since I noticed that these languages are rather popular, what are the advantages and disadvantages of each over the others? and what is the need/motivation for each one of them? Why are there no C++/Java libraries to deal with those needs?

Software Development perl php python
Member Avatar for vegaseat
0
425
Member Avatar for hmx7

Use a while loop to collect a shopping list of items from the user. Then use a while or for loop to list it back to them. i have: item = int(input('How many items do you have? ')) while item > 0: input('Name of item: ') item -= 1 i …

Software Development python
Member Avatar for hmx7
0
138
Member Avatar for cobalt555

For some reason I am receiving this error , cannot find symbol, method Math random() not found . If anyone knows why it would be of great help. int digit1 = (int)(Math.random() * 10); int digit2 =(int)(Math.random()* 10); this is supposed to give me two separate random digit variables between …

Software Development java
Member Avatar for cobalt555
0
127
Member Avatar for cambalinho

i build these code. it's very cool: in test.h: class test { private: bool blVisible; int x=0,y=0; public: void Show(); bool Visible() { return blVisible; } void Visible(bool value) { blVisible=value; if (value==true) Show();//call the event } }; in main.cpp: include <iostream> #include "test.h" using namespace std; test a; void …

Software Development c++
Member Avatar for cambalinho
0
234
Member Avatar for cambalinho

using templates: how can i do a parameter for accept a function name?

Software Development c++
Member Avatar for cambalinho
0
140
Member Avatar for cambalinho

the Visual Studio 2010 have 1 way for build properties, in class's. but isn't a portable code:( i'm using GNU\GCC\G++. so don't belive that isn't possible do it in C++;) so anyone can advice me? i was testing these code, but i get problems with char* and i can't use …

Software Development c++ visual-studio
Member Avatar for cambalinho
0
334
Member Avatar for DM Galaxy

I want to know that How I can Add the table in VB? As for wxample we see in IDM: ![a43a3a52847803516eab225b30abb76f](/attachments/small/4/a43a3a52847803516eab225b30abb76f.png "align-right") As You can see here: there were partition in th listbox. Same I want to create: I try to use multicolumn: checked = true and also adjust width …

Software Development vb.net
Member Avatar for DM Galaxy
0
312
Member Avatar for castajiz_2

1.code -------------------------------------------------------------------------------------------------------------------- static void Main(string[] args) { SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True"); sc.Open(); SqlCommand command=new SqlCommand("Select Name from Persontable",sc); SqlDataReader reader= command.ExecuteReader(); while (reader.Read()) { Console.WriteLine("{0}", reader.GetString(0)); } Console.ReadLine(); } --------------------------------------------------------------------------------------------------------------------- ** 2.code** static void Main(string[] args) { using (SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True")) …

Software Development c c# c++ open-source sql
Member Avatar for deceptikon
0
255
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates in C++. My current assignment is to create a matrix class by using vector of vectors. I have got most of it done but my code is crashing when I try to overload the random access operator in my matrix class. …

Software Development c++ matrix-multiplication ui-ux
Member Avatar for deceptikon
0
444
Member Avatar for qew.brown

Hi, This is my first post, forgive me for not being immediately familiar with any forum protocols. I am trying to read in a txt file and store the data in my class. I keep running into this error Exception in thread "main" java.lang.NumberFormatException: For input string: "./src.Chance" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) …

Software Development java
Member Avatar for qew.brown
0
260
Member Avatar for vividiah

I will make the process of looping the data to save data into SQL Server database, but field data that must be stored is retrieved from the database access, data taken later not only a record, but a lot of records, so it takes a process of looping in it, …

Software Development open-source visual-basic
Member Avatar for vividiah
0
121
Member Avatar for Thundermax

is there any function to add a character at the end of a string? or algorithm?

Software Development algorithm c
Member Avatar for Thundermax
0
614
Member Avatar for Quazy

Hello, I would appreciate some help to import data from a text file to a datagridview. If anyone could give me a hint to get started... The textfiles have the column name in the "[ ]" I would like to read the data after the [wp], [pos], [rad] blocks, the …

Software Development vb.net
Member Avatar for Quazy
0
337
Member Avatar for MrNoobieCoder

I am currently in need of help on a piece of homework, I'm using python 3.3 and i need to set a delay on a times table program that i created heres the code: def get_int(prompt="Enter an integer: "): """this function will loop until an integer is entered""" while True: …

Software Development python
Member Avatar for MrNoobieCoder
0
236
Member Avatar for cambalinho

i'm trying doing a static clas, but i, always get errors... now i have head pain:( class Pessoa2 { private: static string strnome; public: Pessoa2() { strnome="ana"; } void setnome(string value) { strnome=value; } static string getnome() { return strnome; } }; just seen these static class, what i'm doing …

Software Development c++
Member Avatar for cambalinho
0
214
Member Avatar for cambalinho

i read several time about Bitwise Right Shift Operator (>>\<<) but i continue without understand them:( can anyone explain to me? i don't undertand what will be the next results:( Half = 25 >> 1; Half = 25 << 1;

Software Development c++
Member Avatar for cambalinho
0
391
Member Avatar for anga08628

Define a 5 x10 2-dimensional array of integers (5 rows of 10 columns), randomly generate 50 numbers between 1 and 100, assign them to the array elements and display all the numbers on 5 lines of 10 integers each. [code=cpp] #include <iostream> #include <ctime> // For time() #include <cstdlib> // …

Software Development c++
Member Avatar for irum.nageen.3
0
11K
Member Avatar for Thermalnuke

Hey Guys Im working on an assignment dealing with arrays. I have to Delete the duplicates in the array and re-display the array with the duplicates deleted. I Have code that I written up that is able to step throgh the process and will display the duplicated elements in the …

Software Development java
Member Avatar for JamesCherrill
0
478
Member Avatar for sam.escott4

Hi, im writing a type of password generator, you insert a keyword and it gaves back a password by substituting letters and adding numbers/symbols to the string. Is there a way to split the text from one textbox into several strings every few letters? I´m new to programming, and have …

Software Development vb.net
Member Avatar for Mr.M
0
216
Member Avatar for sonunclejalil

Private Sub cmdfind_Click() Dim search As String search = txtfind.Text Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\HOSTEL STUDENT.mdb;Persist Security Info=False" Rs.Open "SELECT * FROM STUDENTS WHERE [REG] LIKE" & "'" & search & "'", Con, adOpenStatic, adLockOptimistic Do Until Rs.EOF Rs.MoveNext Loop If Rs.EOF = True Or Rs.BOF = True …

Software Development gui seo visual-basic
Member Avatar for sonunclejalil
0
3K
Member Avatar for skran

Hi all! I have a user interface where I want to filter a datagridview.. I 've achieved to create filters but I 've failed to filter tha data by date.. I have a sql db and the column of date is of datetime type. When I try to filter the …

Software Development user-interface vb.net
Member Avatar for eldarzeynal
0
1K
Member Avatar for castajiz_2

Is it posible to install and deploy my c# apllication on my phone (name in the title)?

Software Development c#
Member Avatar for pritaeas
0
82
Member Avatar for ganges

Hi, I am using eclipse j2ee juno eclipse market place is not working this is the error i am getting "Unexpected exception java.lang.reflect.InvocationTargetException" give me solution to fix it. thanks for your time.

Software Development java
Member Avatar for stultuske
0
501
Member Avatar for kal_crazy

This is the code that I have done so far: import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; class TSP extends JPanel{ int weight[][],n,tour[],optDist; final int INF=1000; public TSP(){ Scanner s=new Scanner(System.in); Random r = new Random(); System.out.println("Enter no. of Cities:=>"); n=s.nextInt(); weight=new int[n][n]; tour=new int[n-1]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ …

Software Development image java java-swing
Member Avatar for kal_crazy
0
1K
Member Avatar for victor_3

I have this assignment where the user has six guesses for the correct letter out of 1 to 4 games. I only have one error that won't let me pass my build and I can't seem to figure out how to fix it. Can anyone help me figure out what …

Software Development c
Member Avatar for Appaso
0
2K
Member Avatar for donlxu

Hi. I'm trying to create a program to compute the Riemann zeta function which is defined as **1**+**(1/(2^x))**+**(1/(3^x))**+**(1/(4^x))**+.... for user input of x and will keep adding as long as the term is less than (1e-7). but I keep getting 1.79301e-307 for every number I put #pragma hdrstop #include <iostream> …

Software Development c++
Member Avatar for donlxu
0
197
Member Avatar for </scorpion>

I have a gridview that is populated and a button outside the gridview that I want to enable editing on the selected row when clicked. I have this in the code behind. What goes in the button event to invoke the grid view editing? Protected Sub GridView1_RowEditing(ByVal sender As Object, …

Software Development vb.net
Member Avatar for </scorpion>
0
1K
Member Avatar for ricardo.scheufele

I have a datagridview and a bindinglist. They work together pretty ok, but I want to make the properties appear in the rows´ headers, not on the column. Other thing I want to do is to make the headers´ text be different from the properties name. Is there any way …

Software Development vb.net
Member Avatar for ricardo.scheufele
0
280
Member Avatar for matthew.s.thomas.14

I am looking for help in how to implement function avg() that takes as input a list that contains lists of numbers. Each number list represents the grades a particular student received for a course. List for a class of four students. ([95,92,86,87],[66,54,],[89,72,100],[33,0,0]) the function avg should print one per …

Software Development python
Member Avatar for BearofNH
0
384
Member Avatar for phorce

I don't know why I'm having such a problem with this, basically, I want to have a Queue that is constantly running during the program called "Worker" this then works, however, every 10 seconds or so.. Another method called "Process" comes in and processes the data. Let's assume the following, …

Software Development multithreading python queue
Member Avatar for woooee
0
271
Member Avatar for MrNoobieCoder

Hello, I'm currently working on a school project in which i can not get my head around into figuring out how to make a loop until the user has input an interger this is what i have so far : width = "hi" length = "hello" while width != int …

Software Development python
Member Avatar for MrNoobieCoder
0
276
Member Avatar for sudesh.yadav.104

I want to create two textboxes on my window. I used this code case WM_CREATE: hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("sending"), WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER | ES_LEFT, 15, 15, 200, 300, hwnd, NULL, NULL, NULL); hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("Receiving"), WS_CHILD | WS_VISIBLE | WS_BORDER, 220, 15, 100, …

Software Development c++ windows-api
Member Avatar for sudesh.yadav.104
0
215

The End.