43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ITStrawberry

Hello guys, I have a question. In one form i have a treeview. I get the value by doing treeview.selectednode.text; But in the same project i have another form. I want to send the value of the selectednode to the other form. How can i do this?

Software Development
Member Avatar for Geekitygeek
0
107
Member Avatar for becky007

hey guys. i get an error "Could not find a part of the path" for inputStream = File.OpenText(textBox1.Text). The idea is to enter a folders path then in another textbox enter word to search. all the files in the folder have to be searched then the word,filename and path are …

Software Development
Member Avatar for becky007
0
88
Member Avatar for normmy

Hi all, sorry if this post is a duplicate, I had a search and couldn't find what I was looking for. In simplest terms I need to use the string split method using a sting as the seed i.e. [code] string[] sections = line.Split("><"); [/code] Sorry if this is a …

Software Development
Member Avatar for Geekitygeek
0
258
Member Avatar for Pinchanzee

Using py2exe I've made an exe file which processes a file then creates a new file which details the errors found in the original file. However, at the moment I have to change the file allocation in the code each time I want to do it on a different file …

Software Development file-system python
Member Avatar for Pinchanzee
0
575
Member Avatar for Animal Mother

Hi everyone Could someone please help me, I need to loop through all the records in a column in my access database, Currently my program only views the first record in the column and does not go any further, I tried a While loop but I get a NullException error …

Software Development microsoft-access open-source vb.net
Member Avatar for Animal Mother
0
1K
Member Avatar for vponnoju

Hello All, I am not sure, if this is the right place to post this query. If not, please redirect me. Here is the brief explanation of I have a web application (GWT application) project in Eclipse. I have a server side code which interacts with LDAP directory for some …

Software Development apache ide java java-jsp
Member Avatar for vponnoju
0
279
Member Avatar for Krs13

Hi, I want to update records in the access table which is connected to vb. Can somebody give code for that please. (ie)when i click add button the entered fields should get updated in the tables and the form should be refreshed again to enter datas.

Software Development visual-basic
Member Avatar for kinwang2009
0
164
Member Avatar for Victor C.

I am trying to find a tutorial to lean how to use a JFileChooser in order to read a file and convert it into a tick mark chart. I seen it on a demonstration video on sun.com and I thought it looked awesome. Sadly, I tried to google for tutorials …

Software Development java
Member Avatar for Victor C.
0
75
Member Avatar for Ranx

Hoping someone out there can help. I have a fairly simple piece of code for viewing files [code] System.Diagnostics.Process.Start(tFileInfo.FullName) [/Code] Basically passes the path of a file to the process and let Windows deal with how to open it. Have also tried [code] Dim myProcess As New System.Diagnostics.Process With myProcess …

Software Development pdf vb.net
Member Avatar for Ranx
0
181
Member Avatar for rockstar0384

It might already be posted but i was just wondering what the open and save code was that you would put into a VB5 form. I would appreciate it if someone informed me. Thanks.

Software Development visual-basic
Member Avatar for Maestro12
-3
1K
Member Avatar for nv136

Hello everyone, I am not a professional at vb.net so help me out. I have made a small program and a want to add a serial control to it.... here is my code.... Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text …

Software Development vb.net
Member Avatar for nv136
0
537
Member Avatar for zack_falcon

I am doing a Quiz Generator / Viewer project, which requries the use of a database for the numerous questions the teacher has to put in, as well as the user names, passwords, etc. I used Microsoft Access (2000, I think) because I found it easier to use. For the …

Software Development c# microsoft-access open-source
Member Avatar for zack_falcon
0
143
Member Avatar for Nathaniel10

I tried to do an excercise from Stroupstrup's book. The reader is asked to reverse the order of elements in a vector so that if originally vector[0] = 1, vector [1] = 2, and vector[2] = 3, then new vector has newvec[0] = 3, newvec[1] = 2, and newvec[2] = …

Software Development c++
Member Avatar for Nathaniel10
0
194
Member Avatar for mitchems

I thought it might be useful to show the special local matching variables that perl uses. Here they are: $1..$9 Contains the subpattern from the corresponding set of parentheses in the last pattern matched like \1..\9 $& Contains the string matched by the last pattern match $` The string preceding …

Software Development perl regex
Member Avatar for d5e5
1
174
Member Avatar for JDuch

>>> import g4 >>> g4.systs() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'systs' Why is that ? The code works ok from shell >>> import time >>> def systs(): return str(time.localtime()[5]) >>> systs() '18' g4.py ------- [CODE] import os import …

Software Development python
Member Avatar for JDuch
0
574
Member Avatar for Jamesbch

Hello, I've a tricky issue with a use of my macro. I specify the max length of a string parsed by sscanf with a macro define. Since I write all of my macro value between parenthesis (if it is a number) It should fix the operation problems (it's why we …

Software Development c
Member Avatar for Jamesbch
0
235
Member Avatar for smcguffee

Dear all, I'm starting to get the hang of this C++ business, but I have one question that I just realized I don't have an answer to. Suppose I want to call a constructor from within a constructor to reduce redundancy in the parts that are identical. I seem to …

Software Development c++
Member Avatar for smcguffee
0
119
Member Avatar for koveras vehcna

Hello everyone, I am currently working on a code and I got stuck in a part. My algorithm is a text generator that operates on project Gutenberg and its flow is like this: Enter a sentence as input 1-Pick longest word of input sentence 2-Search the longest word of the …

Software Development algorithm python regex
Member Avatar for griswolf
0
256
Member Avatar for giannoui

Hello everyone, I'm trying to develop a program which read from a text file data. Then display one data line per time with 2 sec delay in an lcd which is connected throught the internet. I get a run time error'424' here myFile = File.ReadAllLines("c:\account.txt") '//load file. [CODE] Dim LineNumber …

Software Development display file-system visual-basic
Member Avatar for AndreRet
0
133
Member Avatar for Roger101

Hi, I know how to stor multiple values in has table with single key.Basically HOH But i am not able to do the same when the hash has multiple keys I am trying something like this and when i try to print it gives garbage value for the has keys.. …

Software Development perl
Member Avatar for Roger101
0
206
Member Avatar for JDuch

After importing the script below as g4.py as >>import g4 followed by >>> pad ="ram:t/list.lha" >>> g4.extract(pad,"path") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "g4.py", line 52, in extract return takeaction.get(itemnw,errhandler)(fromvar) TypeError: errhandler() takes no arguments (1 given) This error does not appear when i …

Software Development python
Member Avatar for JDuch
0
378
Member Avatar for raghujosh

Environmental Variable: System variable(both) 1. A new GRAILS_HOME variable installed pointing to the Grails folder. 2.PATH: C:\Grails\bin appended . However I get an error message sayings grails is not a recognized command. I am a new to grails. The documentation says its very simple and I have tried different ways …

Software Development java
Member Avatar for raghujosh
0
389
Member Avatar for junjun61991

Private Sub cmdprint_Click() i am searching the code of the command button for printing, at the above.. now, the textidno.text = textborrowersname.text = what is code after the " = "

Software Development visual-basic
Member Avatar for AndreRet
0
275
Member Avatar for Newbi1984

Hi there, I'm very new to perl so I hope that you can help me. I have a list of duplicated entries in one file and what I want to do is to search another file for those entries that appear in the first file and then rename each duplicate …

Software Development file-system perl
Member Avatar for Newbi1984
0
102
Member Avatar for Bladtman242

The code executes as expected, but I am not sure it is considered good code:) I am thinking especially of the two streams on the socket, if the first one is successfully opened and the next one for some reason throws an exception, the finally block will never run. If …

Software Development java
Member Avatar for Bladtman242
0
119
Member Avatar for Megha SR

hello. i have just started learning functions in java. i have done the below program to find area of rectangle,triangle and square. it is a private class. class calcu { void rectangle(int l,int b) { int area1; area1=l*b; System.out.println("area of rectangle = "+area1); } void triangle(double base,double h) { double …

Software Development java
Member Avatar for NormR1
0
76
Member Avatar for ddanbe

As all textbooks on C# will tell you, you cannot instantiate an abstract class. I believe the keyword [B]abstract [/B]was intended for that purpose. So can anyone tell me why I can do something like this: [CODE=c#]abstract class TwoDShape { // some code here } class test { static void …

Software Development
Member Avatar for CloneXpert
0
140
Member Avatar for riddhi_k

hey pls help me., I m nt a good programmer. bt though m trying 2 do some programming... pls give me coding in vb.net for searching records from Access database. Waitng for your repy. [CODE]Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.Click search_data(("select * from 86_10 …

Software Development vb.net
0
58
Member Avatar for abhijeetcn

I know the function textcolor() included in conio.h in borland compiler. but this function is not present in vc++. also if you can provide me the text formatting functions,or header file containing it. i will be very thankful.......so please help me......thanks

Software Development c c++ microsoft
Member Avatar for [Alpha]-0mega-
0
203
Member Avatar for ausrasul

Hi, I'm trying to write a shell script that do ftp and download file periodically, this script should be called by a daemon running in the background. the shell script "script.sh" is as follows: [icode] yafc [url]ftp://test:test@192.168.1.225:21[/url] < commands [/icode] and the "commands" files is [icode] d Root/md5* / quit …

Member Avatar for ausrasul
0
409
Member Avatar for dlannetts

Hi, i have downloaded 3d blender and Python 2.5 and tried to run Python with blender for the use of importing models, but when i tried to import the model a message came up in the command prompt saying : [CODE]module use of python25.dll conflicts with this version of python[/CODE] …

Software Development python
Member Avatar for dlannetts
0
495
Member Avatar for Rez11

EDIT: I figured it out. I do not know how to delete threads. Sorry. I need to return a pointer to a new array. The new array must be the same as the old one, just in reverse. I have it all done except for one little part. I can't …

Software Development c++
Member Avatar for Rez11
0
125
Member Avatar for newbie_to_cpp

Hi all, I am totally new to C++. I began learning C++ some 2-3 months back referring to youtube tutorial channels and now by reading a book by Robert Lafore. I practice when i get free time. I still have long way to go. Well, referring to some examples that …

Software Development c++
Member Avatar for newbie_to_cpp
0
2K
Member Avatar for levinia-heks

I need to code a very basic fortran program that takes command line input, and I'd like to terminate the program if I detect wrong input. The following doesn't work: [CODE]if (n .NE. 5) then write (*,*) "Wrong number of arguments" end program Poker end if[/CODE] I get "Error: Expecting …

Software Development
Member Avatar for levinia-heks
0
221
Member Avatar for Bigbrain99

Is there any way to check if i have added more than 1 same header so that i won't get compiling error while running it?How do i know which one will include the header first and other cpp will include it later?

Software Development c++
Member Avatar for Bigbrain99
0
90
Member Avatar for Megha SR

i have got a program to convert a double value to a string. eg==INPUT= 3.65 OUTPUT=three point six five. can anyone give the solution.

Software Development java
Member Avatar for Megha SR
0
105
Member Avatar for Suzie999

I have a form with 2 labels and 2 buttons Button1 changes the label1.Text of the form // works fine Button2 starts a new thread and the method is supposed to change label2.Text However I get compile time error: "error CS0120: An object reference is required for the non-static field, …

Software Development
Member Avatar for CloneXpert
0
158
Member Avatar for acrocephalus

Hello! I have designed an initial frame for a database app using this code [CODE]#! /usr/bin/env python # OrnithobaseGUI.py import wx, MySQLdb, wx.lib.intctrl ID_HELP = 1 ID_ABOUT = 2 ID_LOG=3 class Ornithobase(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(750,225)) #Define menus menubar = wx.MenuBar() #Define file menu …

Software Development python
Member Avatar for acrocephalus
0
166
Member Avatar for ehrendreich

I am rather new to vb and could use some help. I am using the latest version of vb and am working with a database to add some records. Simply, I would like to have a form that adds a new record into the tblContact table then enter a few …

Software Development dataset open-source vb.net
0
68
Member Avatar for jonniebl

I am writing a program that creates a file and attaches it to an email. I use a loop to create the attachment, send the email and then do it again with different information in the attachment. This works well for one tim through the loop, but on the second …

Software Development file-system vb.net
Member Avatar for jonniebl
0
186
Member Avatar for TahoeSands

Hello Everyone, This is my first post, so be gentle with me. I am working on an application and I have a need to store about 5 or 6, X and Y coordinate pairs. The values for X and Y are reasonably small integer values (less than 5000). Essentially all …

Software Development career java storage
Member Avatar for TahoeSands
0
5K
Member Avatar for Tarkenfire

Okay, so yet another post here due to my utter confusion with this language...in all honesty, this isn't a question about threading, per say, lemme just demonstrate what I mean. This: [CODE]class RevoiceThread( threading.Thread ): def run (self): print "Remember to replace this line with the actual code" [/CODE] is …

Software Development open-source python
Member Avatar for Tarkenfire
0
229
Member Avatar for raghujosh

I am trying to connect from Eclipse to a database in SQL server 2008. However, i am unable to and the following error message is thrown(see attached image). Can somebody help?

Software Development java sql
Member Avatar for raghujosh
0
359
Member Avatar for sportinguista

Hi! I´m working with multiband TIF files and some of them have double data type. I need to modify some pixels from int (0-255) values to double values; problem is that my original image has int values, so it always rounds new values to int. That´s why I want to …

Software Development java
Member Avatar for sportinguista
0
345
Member Avatar for tamil.veera

how to search xml files in complete hard disk and display it's file name. if double click any file name then it will open a note pad(view the source coed) and another option is open the browser(Internet Explore,any browser) [COLOR="Green"][B]please write the code[/B][/COLOR] Thank you.......

Software Development open-source vb.net xml
0
31
Member Avatar for vandadm

Hello all, For this program (assignment), the user enters the names of five students, and their respective four test scores. The program will then average the scores, and display them for the user. Part of the requirement for the program is that we use five single-dimensional arrays of 'doubles' to …

Software Development c++
Member Avatar for tesuji
0
211
Member Avatar for mauro21pl

Hi to all. Could you guys help me with a little program. There is something wrong with tahat and can't find that. That's the code: [code=c] /* An employee is paid at rate of 16.78$ per hour for the first 40 hours worked in a week. Any hours over that …

Software Development c++
Member Avatar for gacha23
0
880
Member Avatar for stompper33

I'm a newbie to python and I have a problem. My problem is that I have a CSV file with hundreds and hundreds of rows of data. Each row contains temperature data that has been recorded daily. What I want to do is try to extract certain rows of data …

Software Development python
Member Avatar for Beat_Slayer
0
3K
Member Avatar for Melow

i made a binary calculator... it calculates two numbers in binary code i'm new in programming so this is what i came up with, it's not the best implementation, but it might help someone known bugs: when u try to make more calculations in one "session" it doesn't clear the …

Software Development java session
-1
128
Member Avatar for john125

Defining a Class Define the class rectangle. It's constructor takes a pair of numbers representing the top-left corner, and two other numbers representing the width and height. It has the following methods: * getBottomright() - return the bottom right corner as a pair of numbers. * move(p) - move the …

Software Development python
Member Avatar for Beat_Slayer
0
2K

The End.