64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for magenta_lover

Hi all, i'm newbie in vb, and i wanna learn a lot from u guys, i try to run this code, [code] Dim linetext As String Private Sub open_Click() CommonDialog1.Filter = "Text files{*.txt)|*.txt" CommonDialog1.ShowOpen If CommonDialog1.FileName <> "" Then Open CommonDialog1.FileName For Input As #1 Do Input #1, linetext Text1.Text …

Member Avatar for magenta_lover
0
134
Member Avatar for Zetlin

Hi everyone I have a question but I don't know if it can be done in python. Ok so this is what I want to do: I have two scripts [code=python] string = "hello world" [/code] and [code=python] def output(): print string [/code] Now what I want to do is …

Member Avatar for Zetlin
0
87
Member Avatar for akulkarni

i have to print 1 3 2 4 5 i the input output should be 1 3 2 4 5 4 5 6 9 9 11 15 20 26 i am getting a weird output my code is [code] import java.io.*; class nik1234 { public static void main(String args[])throws IOException …

Member Avatar for Antenka
0
192
Member Avatar for C++ Obliviator

I'm trying to create a 3D vector with dynamic vectors of char. I mean like this: 3dVect is only [U]one[/U] 3D vector 3dVect[0][0][12] 3dVect[0][1][5] 3dVect[1][0][6] 3dVect[1][1][9] 3dVect[1][2][8] ... this mean: 3dVect[0][][] consists of 2 2D vectors, and the 2D vectors have different sizes. I have read the thred [URL="http://www.daniweb.com/forums/thread136351.html"]http://www.daniweb.com/forums/thread136351.html[/URL] and …

Member Avatar for C++ Obliviator
0
110
Member Avatar for serkan sendur

guys i need a richtextbox which will show the data from database but when user want to add additional text, it will only allow the user to append text to the end of the last character. have you seen anything like what i say?

Member Avatar for serkan sendur
0
309
Member Avatar for SammiSmi

Hi I'm new to C# and ASP.NET. Do you know any advanced website tutorials? or downloadable ones? Thanks (^^,)

Member Avatar for serkan sendur
0
101
Member Avatar for CFROG

For the life of me I can't get the current date to insert into my table. I would like a "submitted date" to be stored upon the creation of the record. I've tried countless different ways to achieve this and every time I get no results in the table, just …

Member Avatar for CFROG
0
153
Member Avatar for serkan sendur

i want to play custom sounds when doing MessageBox.Show("something"); how is it possible? thanks.

Member Avatar for serkan sendur
0
2K
Member Avatar for functionalCode

I have a datagridview that is filled from a database. I filled a datatable and assigned it as the datasource to the datagridview. I want to be able to select a row from the datagridview and hit a delete button and it be deleted from the database. What would be …

Member Avatar for functionalCode
0
95
Member Avatar for bubblellicious

Hi there. That's my first thread here. Maybe my english level is not good as yours coz i'm from Spain xD First of all, I have a constant string which has a thousand of chars, with no empty positions, only characters. And I have to find repetitions of 6-letter and …

Member Avatar for bubblellicious
0
121
Member Avatar for aliensXY

I have some texts in my database. Each text has its own id. My job is to print all texts to a website and add a button to each text. Button will delete appropriate text from the database. So, I created a for loop so I can print all texts …

Member Avatar for aliensXY
0
304
Member Avatar for Shaitan00

I am trying to customize my sorting of a LIST using a compare_function, but for some odd reason it keeps giving me the following error: error C2064: term does not evaluate to a function taking 2 arguments Specifically, I have list created within class B which needs to be sorted, …

Member Avatar for Salem
0
358
Member Avatar for princessotes

Hi, I have written this code to generate the maximun number from a number of coloumns (say 4 coloumns) in a list. The code is not handling negative number well and so keep generating the negaive number to be greater eg -8 > 5 which is wrong. Why is this …

Member Avatar for zachabesh
0
128
Member Avatar for sravan953

Hey guys, I have some Java code here, which checks whether a word is present in a sentence or not: [CODE]import java.io.*; class search_arrays { static void search()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a sentence: "); String s=br.readLine(); s+=" "; String[] x=new String[s.length()]; int a=0,b=0; for(int i=0;i<x.length;i++) { …

Member Avatar for sravan953
0
170
Member Avatar for lolwtf

Hi all, I have a program which connects to sql and uses crystal reports. I have many records and crystal reports takes a while to load up. Would multi threading help improve performance? Here is my code: [code]Private Sub EmpLog_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim …

Member Avatar for lolwtf
0
85
Member Avatar for Alex_

Hello. I'm starting to have a headache at solving this. I work in Eclipse IDE and run the project on tomcat server. What i do is this: i have a form, like this: [code=html] <form method="GET" action="http://localhost:8080/BookShelf/ComputeSearch"> <p>Book <input type="text" name="book" size="7"/></p> <p>Chapter <input type="text" name="chapter" size="5"/></p> <p>Verse <input type="text" …

Member Avatar for Alex_
0
120
Member Avatar for Dream2code

Hi All, My requirement is like this.It a part of a software devlopment team as i am devloping a tool its a part of it. Its bit long but my explanation is clear to get it. 1)we need to read a data file using a description file. Usage: programname <description_file> …

Member Avatar for Dave Sinkula
0
448
Member Avatar for Venom Rush

Hi everyone I have a menu that I'm creating dynamically with links that have query strings on the end of them. Basically I want the menu item, that's related to the page the user is on, to be in a different colour to the rest of the menu items. An …

Member Avatar for Venom Rush
0
2K
Member Avatar for serkan sendur

Since listview control in .net framework 2.0 does not have a datasource property, it is not bindable to neither datatable nor generic lists. i created a derived custom listview that is bindable to lists of any type. i attach the .zip to this thread. I dedicate this custom windows control …

Member Avatar for serkan sendur
2
188
Member Avatar for mrincognito

Hello, Programming/Python newb here looking for some help with arrays. I am trying to write a parsing program that takes a comma delimited csv file, compares entries, and outputs the comparisons in a particular format. The csv file has two columns. Col [0] contains article identifiers, col[1] contains assigned keywords. …

Member Avatar for mrincognito
0
111
Member Avatar for siu17

Hi I need the code in [COLOR="Red"]VB6[/COLOR] to display data from a database in a listbox i tried the following code but its not working Do While Not rec2.EOF List1.ItemData(List6.NewIndex) = rec2.Fields(4) rec2.MoveNext ' i even tried Do While Not rec2.EOF List1.ItemData rec2.Fields(4) rec2.MoveNext

Member Avatar for jp26198926
0
113
Member Avatar for pepcoder

Step: 1I have a class Mytest [code] class MyTest { public string Name { get; set; } } [/code] Step2: Created a class Demo to use the member variables of the class myTest [code] class Demo { public void GetNames<T>(IList<myTest> info) { foreach (myTest test in info) { Console.WriteLine(test.Name.ToString()); } …

Member Avatar for sknake
0
134
Member Avatar for sharao

i am checking the checkbox is checked r not by using following code.... if the condition is true i have to checked another box in runtime using docuemnt.form... or document.getElementById like...document.form.chkbox2=checked like that... [CODE]if(document.form.chkbox1.checked){ // }[/CODE]

Member Avatar for sharao
0
105
Member Avatar for compovet

I have a problem with datagridview I have three columns . 2 of them are combobox and the last one is textbox. the seconed combobox is depending on the first the problem is when i'm trying to fill the seconed combobox in the second row the DataSource of the second …

Member Avatar for Ramy Mahrous
0
98
Member Avatar for colmcy1

Hey all, I am having some trouble trying to open a dialog window. Firstly I am using MFC in MSVC 6. I have a main dialog window and I am trying to open a second dialog window by clicking on a button("second") in the main dialog window. When I am …

Member Avatar for jencas
0
2K
Member Avatar for bubbleT

Hi need help to solve refresh problem I have a main webpage with a button. Once the button is clicked, a popup dialog (web form) is prompted. Once user click 'OK' in this dailog, data saving is performed and I need to close and refresh the main webpage. How do …

Member Avatar for bubbleT
0
115
Member Avatar for K?!

Hi all I'm am using Netbeans 6.5 on ubuntu for programming PHP. When I create an instance of a class and type "->" after the variables name, I don't get to see any methods. Even when I press CTRL-Space, it only says "No suggestions"... Code templates do work (like typing …

Member Avatar for K?!
0
163
Member Avatar for MArun25039

Hello, I'm having an issue with a MySQL/PHP site I'm working on. I'm new to both. I've seen several posts that were similar or same but was unable to derive a solution based on my code. I have a form that will submit HTML code to a database. I know …

Member Avatar for guru12
-1
5K
Member Avatar for mthobisil

Hi, im doing a website with master page, i hide and show some images every now and then on the master page, when i hide and show without redirecting to another page it doesnt give me any problems, but when i navigate to another page i lose the hide and …

Member Avatar for mthobisil
0
220
Member Avatar for tugce

Hi, I have a combo box that takes its values from a database. I need to make unique items in the combobox. I could do this in database part, but I need other attributes of values. Let me explain: There is Surgery table in my database with id,name and clinic …

Member Avatar for tugce
0
155
Member Avatar for vishalkhialani

Hi, Please see below code which I need to understand. I tried to find information on the php site and the manual and the php book I have but could not find it. Wht does this mean " => " [code=php] function emailusers_menu() { $item('admin/emailusers/compose/%')= array( 'title' => 'Compose a …

Member Avatar for vishalkhialani
0
132
Member Avatar for srikanthkadem

Hi All, i want send sms to any mobile in india through my application.i tried using webservice in weservicex.net(not sure?) .bt it's not working.i dont want pay money as this is is very small project.so can any one plz help hw to send sms.any free gateway providers. thanks in advance. …

Member Avatar for virtuelabz
0
193
Member Avatar for eXsolved

Hey Guys/Girls I'm creating a C++ application. So far I have created 2 projects, under one solution. The first is a native win32 project and the other is a DLL. Now my problem. How do I include this DLL I create, in my win32 application? So far I have tried: …

Member Avatar for Utte
0
173
Member Avatar for CFROG

I'm new to PHP and I'm some trouble writing to multiple tables from the same form. When I run the following script it will not write the data to XINFO but it will write to ATTRIB1. If I take ATTRIB1 out of the script it will work properly and once …

Member Avatar for CFROG
0
285
Member Avatar for shizu

Hi all, I'm using microsoft visual C++ 6.0 with SP4 and SP5.. I had a program which content a CScrollView.. Now I would like to add in a image into CScrollView.. but my image is buffer..not from resource.. I can save my image, bitmap form, into local drive.. but I …

Member Avatar for shizu
0
142
Member Avatar for nova2177

wow, haven't been here for sometimes due to the business aspect of my course. would like some help in understanding what is set, get, change and return in c++. have an assignment with topics the class haven't covered as yet, but I'd love to understand it before we reach those …

Member Avatar for Ancient Dragon
0
158
Member Avatar for denniskhor

My question is :' if my "[2009'07'12 @ 22'49'47] main page.jpg" store in "C:\image folder\", but the timestamp [2009'07'12 @ 22'49'47] will be inconsistent, so i wan use behind "main page.jpg" to find "[2009'07'12 @ 22'49'47] main page.jpg", and print the link like "C:\image folder\[2009'07'12 @ 22'49'47] main page.jpg" as …

Member Avatar for denniskhor
0
227
Member Avatar for bnekolny

Hello, So I've got a code where I'm wanting to make sure that there is nothing in this class variable "finalgrid". To do this I've got an if statement: [code]if(canvas->finalgrid) OR if(finalgrid)[/code] Sorry for the confusion with the two statements, but I'm working on modifying one project to fit in …

Member Avatar for bnekolny
0
107
Member Avatar for nanchuangyeyu

Hi, I am a C++ newbie and had never written even a very simple C++ class before. Now I intend to do such a job. My objective is quite simple, a matrix class with the following features is just OK: [COLOR="Red"]1. The object of such a class can be initialized …

Member Avatar for Ancient Dragon
0
388
Member Avatar for b89smith

I have a few computers one acts as a server and the rest are clients. They are all on the same LAN. I need to write a program that when I enter data into one of the clients it sends it back to the server which is constantly listening. The …

Member Avatar for b89smith
0
99
Member Avatar for emilio

how can i compare between two objects using getType method i want to know if two objects are from the same class or from the same base class

Member Avatar for serkan sendur
0
112
Member Avatar for Sailor_Jerry

I have 3 tables. Company, phone, companyPhone. The company table has an auto_increment companyID primaryKey The phone table has an auto_increment phoneID primaryKey The companyPhone table row is made up the companyID, and the phoneID. On my form the user will enter company information and the company phone number. After …

Member Avatar for Sailor_Jerry
0
143
Member Avatar for adelphe
Member Avatar for adelphe
0
96
Member Avatar for nccsbim071

Hi, Recently i have been creating a Generator. That extracts all the names of the tables from the database tables and generates the class file for each of the tables in the database. I have successfully extracted the names of database tables and their corresponding column names with thier data …

Member Avatar for sknake
0
405
Member Avatar for kimbula...

I want to validate a textbox so that only numeric values can be inserted in to it. This validation should done while user enters the values. For example. Consider following keys had been pressed in a sequence 12345abcd678 only numeric values should appear in the textbox so value which should …

Member Avatar for kimbula...
0
144
Member Avatar for SubProf

Hello Everyone, I have a timer that starts when a button is clicked on Form1. When the time elapses Form2 appears. On Form2 I want to stop the timer and restart it from a button on Form2 however the timer does not stop. Here is my code for Form1: [code] …

Member Avatar for SubProf
0
126
Member Avatar for sravan953

[CODE]import time import subprocess #TweetDeck a=15 print "Opening TweetDeck...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\TweetDeck\TweetDeck.exe") #Rest period print ("\nWaiting...") time.sleep(5) #Firefox a=15 print "\nOpening Mozilla Firefox...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\Mozilla Firefox\firefox.exe") [/CODE] Hey guys, I used the above code to …

Member Avatar for zachabesh
0
298
Member Avatar for daviddoria

The problem is on the "MyIter = " line: [code] class OrientedPoint { .... class variables ... std::map<std::string, double> DoubleValues; ..... bool OrientedPoint::getDoubleValue(const std::string &ValueName, double &Value) const { std::map<std::string, double>::iterator MyIter; MyIter = DoubleValues.find(ValueName); [/code] The error produced is: [code] In member function 'bool OrientedPoint::getDoubleValue(const std::string&, double&) const': error: …

Member Avatar for daviddoria
0
6K
Member Avatar for emint

Helo every one i m trying to update record to ms database using vb.net. but i m getting error message. pls help me where i made mistake. here is my code. [code] Dim da As New OleDb.OleDbDataAdapter("SELECT * From tblCustomer", strPath) Dim cb As New OleDb.OleDbCommandBuilder(da) Dim ds As New …

Member Avatar for kvprajapati
0
89
Member Avatar for kireol

Pardon this post here as I didn't see any Postgres forum. I have a table with a 16 length bit value. Can someone please help me how I do the where clause on my select? example data for that field 0000000000000001 0000000000000011 0000000000000010 how would I select one of the …

Member Avatar for kireol
0
97

The End.