43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sartana

i need help on this simple case dim xMenu as System.Windows.Forms.ToolstripItem dim xString as string = "FrmMain.MnuFile" [B]xMenu=xString[/B] xString.visible=False xString.test="MENU FILE" ... How could i do 'that bold area'?? note: xString actually was dynamic variable i got from Database with SQL syntax thanks before!

Software Development vb.net
Member Avatar for sartana
0
880
Member Avatar for iwanttolearnc

[CODE]return((int)ADHR << 2);[/CODE] im trying to learn what a certain function does and then i stumble upon this part. i do get that << 2 means shift left by 2. what i do not know is the (int)ADHR part. can anyone help me out with this? thank you

Software Development c
Member Avatar for iwanttolearnc
0
101
Member Avatar for benji_k

Hi When I run this program instead of getting the values I initialized with the constructor, I get -858993460. I guess it's wrapping around in some way. Anybody have an idea? Thanks for your help #include <iostream> using namespace std; class Employee { public: Employee(int Age, int Years, int Salary); …

Software Development c++
Member Avatar for benji_k
0
106
Member Avatar for G_S

Hi people, the title says it all: The user manual of my program is an HTML document, and I want the OS's default browser to open it directly once the user clics on help. The function that the help menu entry invokes is this: [CODE=python]os.popen("/usr/local/firefox/firefox ./html/index.html")[/CODE] Now this only works …

Software Development python
Member Avatar for G_S
0
4K
Member Avatar for Ferny84

I'm supposed to ask the user to enter a number of marks, and to decide what each mark is. Then my program is supposed to find the min and max in the array, so far this is what my code looks like: [CODE]#include <stdio.h> void findMinAndMax(int arrayMarks[], int numOfMarks) { …

Software Development c
Member Avatar for Ferny84
0
135
Member Avatar for pankaj.garg

Hello, I have multiple problems in an application plotting online data. Below are my problems - 1. MSCharts flickers if my updation time is fast (around 1 sec), I have played around with Repaint, LockWindowUpdate and Visible methods, but no positive results. Is there a better method to stop flicker? …

Software Development api visual-basic
Member Avatar for pankaj.garg
0
235
Member Avatar for G_S

Hello, I've been looking for this here but haven't been able to find an answer that fits my case: I have a tkinter GUI consisting in a button and a Text (a textbox). You write the whole text in the textbox, then press the button and it uses the get() …

Software Development gui python tkinter
Member Avatar for G_S
0
107
Member Avatar for dwhvw

Hi, I'm using Borland C++Builder V5.0. I simply want to pass a variable between two C++ TThreads. I searched a lot on the Internet but can't find anything like that. Simply copying by calling another threads function or property is no option. The compiler thinks it's okay but when executing …

Software Development c++
Member Avatar for Rajesh R Subram
0
2K
Member Avatar for eng hassan

HIII!!! i need to know how to make a random movement for a character?? [CODE]#include <iostream> #include <conio.h> #include <windows.h> using namespace std; char board[20][20]; void setBoard () { for (int j=0; j<20; j++) { board[0][j] = 219; board[19][j] = 219; } for (int i=0; i<20; i++) { board[i][0] = …

Software Development c++
Member Avatar for eng hassan
0
583
Member Avatar for gokul.raja

Hello, I'm having a requirement to develop a GUI based JFrame which should have capabilities to add Multiple JPanel on an event occurrence[Ex. button click] and the JFrame should be scrollable. I tried a lot, but I failed. I also tried to add multiple Jpanel in JScrollpane that also failed. …

Software Development gui java
Member Avatar for gokul.raja
0
2K
Member Avatar for sdhawan

Hi Guys, What i am trying to do is , if suppose i have a word'horse' in a rich text box, i want to aplly image by cutting characters.To explai it little more, i want to be able to cut the word 'horse' in two parts 'hor' and 'se' and …

Software Development image
Member Avatar for finito
0
136
Member Avatar for God Coder123

If i had an Array as seen below, is it possible to use the rand function to randomly select an element within that particular array; if so how can this be done. The Value of the element will be outputted. Any help much appreciated...:) [CODE]int Array[14]={10,10,10,10,11,6,9,2,3,15,11,15,16,15};[/CODE]

Software Development c++
Member Avatar for God Coder123
0
108
Member Avatar for guiman

Does anyone have any suggestions on what is the best way to translate a C# application in VS .net? Currently I am translating a GUI in multiple languages and editing the Form.languagecode.resx file but when I make edits to the GUI, even a litte thing like moving a button, all …

Software Development gui
Member Avatar for PierlucSS
0
231
Member Avatar for Thew

Hello, I have problem using StrToDateTime function from Borland in my project. I made a custom component, it's called Month view (calendar). One of the basic steps of the component's initialization is to set the default month and year. To do this, I use the "1/1/2010" string passed to StrToDateTime …

Software Development c++
Member Avatar for Aranarth
0
246
Member Avatar for Sandhya212

Hi, I am using Sparselib++ in this C++ program. [code]#include <iostream> #include <cstdlib> #include "comprow_double.h" using namespace std; int main() { cout << "Sparse example" << endl; // prints Sparse example double val[12]={1,2,3,4,5,6,7,8,9,10,11,12}; int colind[12]={0,1,4,0,1,2,1,2,4,3,0,4}; int rowptr[6]={0,3,6,9,10,12}; CompRow_Mat_double R (5,5,12,val,rowptr,colind); return 0; }[/code] Since I use Eclipse, I have added …

Software Development c++
Member Avatar for Sandhya212
0
563
Member Avatar for cyon

I'm trying to import a module that checks an .ini config file for correct syntax (via regex patterns). If the syntax is wrong, I want the main code to crash (and hopefully log the error, too). I need some guidance on how I should do this. My current approach doesn't …

Software Development python regex
Member Avatar for TrustyTony
0
379
Member Avatar for device

I want to take out words that reoccur in array1 and put them in array3. (so in array 3 there would be only distinct values) the problem is.. i dont understand how the count2 value can reach so high. (over 300) but should be 20 maximum. [code=c] for(i=0; i<count;i++){ if(count2==0){ …

Software Development c
Member Avatar for WaltP
0
93
Member Avatar for Felikim

Hi guys; Am stuck on the following piece of code which is meant to delete obsolete files in a directory in an sms server. It runs well from a windows platform on which it was coded in, but can not run from a linux platforrm correctly. On the linux lastmodified …

Software Development java
Member Avatar for tmanohar
0
337
Member Avatar for BobbieJean

[COLOR="Red"][I]Hey everyone, I've finally gotten my program to build with no errors or warnings and I can run it but it doesn't give all of the correct output. The Instructor provided my class with what the correct output should be and my program gets it partly right just not all …

Software Development c++ queue
Member Avatar for BobbieJean
0
265
Member Avatar for pasido

ok, so in Java you do "blahblah " + variable + " blahblah" which outputs into "blahblah 23 blahblah" but how do I do this in VB? I wanted to have a label with HPvariable + "/" + MAXHPvariable so it'll display 18/23 etc...

Software Development visual-basic
Member Avatar for vb5prgrmr
0
86
Member Avatar for G_S

The question is simple: I have two scrolled text widgets (I'm using tkinter and python 3.x), and I want to synchronize them, that is I want both scrollbars to move at the same time when the user moves the mouse wheel. Both widgets are suppossed to contain the same text, …

Software Development python tkinter
Member Avatar for SoulMazer
0
490
Member Avatar for gtateco

Hi, I'm trying to do a hashing project using separate chaining. In order to do the separate chaining I believe I need to make a dynamic array of pointers to the linked lists. This is due to the fact the user can specify the hash table size at runtime. In …

Software Development c++ linked-list
Member Avatar for mrnutty
0
3K
Member Avatar for radioflyer1

I am attempting to design and implement a horse race game, but I keep getting lost in the while loops and if statement in the horse selection and wager prompt. Would someone please help me get passed this problem? Thanks. [CODE]print ("It's a beautiful day out here folks. A fine …

Software Development python
Member Avatar for radioflyer1
0
197
Member Avatar for iwanttolearnc

im trying to use c to interface with a zilog microcontroller. the problem is that i cant do much without the library <ez8.h>. ive been searching the web now for any links to download this particular library to no avail. does anyone know where i can get this library? thanks …

Software Development c
Member Avatar for iwanttolearnc
0
156
Member Avatar for G_S

Hi, I have a very simple question: first of all, my code: [CODE=python] import os def test(): x = "Linux" y = "Windows" if os.name == "posix": print(x) if os.name == "nt": print(y) else: print("there is a problem") [/CODE] Run that code on Linux (don't know about windows) and it'll …

Software Development os-x python
Member Avatar for G_S
0
146
Member Avatar for G_S

Hi, I have a minor quesion today: can somebody tell me how to change basic style options for buttons using ttk. I'd like my buttons and entry fields to have rounded corners. I know this is possible but documentation on ttk (for python) seems to be inexistent on the Web. …

Software Development python
Member Avatar for G_S
0
9K
Member Avatar for shuklax

Hello, I am very much new to perl and to this forum also... pls help for this prob... I have 200 two colom data files like, xyz_channel_1.dat .....xyz_channel_200.dat. Coloms of each file is similer like below; First colom 'X' starts from 1 and ends at 200. and second colom 'Y' …

Software Development perl
Member Avatar for shuklax
0
206
Member Avatar for mohamed mo'men

[code]package taskvip; import java.util.Random; public class Main { public static void main(String[] args) { int y =0; Random t =new Random (); fun1 e = new fun1(); for ( e.i = t.nextInt(50); e.i < 100; e.i++) { e.A[e.i]= e.k.nextInt(50); y=e.k.nextInt(); } for ( e.i = 0; e.i < 100; e.i++) …

Software Development java
Member Avatar for mohamed mo'men
0
410
Member Avatar for radioflyer1

I can't determine how to randomly list horses as they cross various parts of the track. Will someone please point me in the write direction? [CODE]if bet > 1: #starts the race, if bet when bet is placed print (""" Here come the horses now, folks. They're being loaded into …

Software Development python
Member Avatar for griswolf
0
154
Member Avatar for SoulMazer

Hi, I've tried searching around for other problems similar to mine, and I was unable to find any. I seem to not be able to "color" text in a TextCtrl widget on Windows, but I can on Linux. I have a little screenshot and some code to show this: [URL="http://i189.photobucket.com/albums/z266/Capn_Soul/WinLinuxDifference.jpg"]Screenshot[/URL] …

Software Development python
Member Avatar for SoulMazer
0
815
Member Avatar for SoulMazer

Hi, I'm trying to color some text with wxPython but I am having some trouble. I am using the SetStyle method of the TextCtrl widget. My problem is that the coloring works perfectly on Linux but does not under Windows. My script basically gives a vocabulary test, and if you …

Software Development python
Member Avatar for vegaseat
0
148
Member Avatar for learnerAccess

[code = c] #include <stdio.h> #include <string.h> int main() { int n = 0x000000FF, i; char *p = (char *)&n; for(i = 0; i < sizeof(int); i++) printf ("value : %d\n", *(int *)(p + i)); return 0; } [/code] I'm expecting something like 255 0 0 0 OR 0 0 …

Software Development c
Member Avatar for learnerAccess
0
91
Member Avatar for lewashby

In the following program I have a few questions. [B]results.txt[/B] Johnny 8.65 Juan 9.12 Joseph 8.45 Stacey 7.81 Aideen 8.05 Zack 7.21 Aaron 8.31 [CODE]scores = {} result_f = open("results.txt") for line in result_f: (name, score) = line.split() scores[score] = name result_f.close() print("The toop scores were:") for each_score in sorted(scores.keys(), …

Software Development python
Member Avatar for vegaseat
0
98
Member Avatar for lewashby

[CODE]line = "101;johnny 'wave-boy' Jones;USA;8.32;Fish;21" s = {} (s['id'], s['name'], s['country'], s['average'], s['board'], s['age']) = line.split(";") # above, why is "s" and the end of the key list surrounded by parenthesis? print("ID: " + s['id']) print("Name: " + s['name']) print("Country " + s['country']) print("Average " + s['average']) print("Board type: " …

Software Development python
Member Avatar for snippsat
0
159
Member Avatar for nsutton

I want to make a smarter child program. Smarter Child incase you don't know was an aim bot that was designed for kids. It was extremely abused but it had pretty good AI and comprehension of what your type. I don't really know how on this. I would probably be …

Member Avatar for nsutton
0
171
Member Avatar for MrBlack

in my code [B]Devide [/B]method is not working it gives an error "ExceptionHandling.Program.Devide(int, int)': not all code paths return a value" When i change public int Devide method in to void,the programe is workig , plz explain me what is the wrong with my code, im new to programming , …

Software Development
Member Avatar for MrBlack
0
142
Member Avatar for frenchie4111

[CODE]struct piece { piece(){} piece(int spacs[][3]) { spaces = spacs; } int spaces[][3]; };[/CODE] /home/myname/Programming/C++/blokus1/game.hpp|11|error: incompatible types in assignment of ‘int (*)[3]’ to ‘int [0][3]' How can this be fixed?

Software Development c++
Member Avatar for frenchie4111
0
181
Member Avatar for GAME

I need to be able to check one textbox and another one on keypress. If both textbox characters are over 4 characters then a button will become enabled. So far... I have.... [code] private void txtUser_KeyPress(object sender, KeyPressEventArgs e) { if (txtUser.Text.Length >= 4 && txtUser.Text.Length < 20) { btnLogin.Enabled …

Software Development
Member Avatar for ereruh
0
152
Member Avatar for EricTetz

Is is possible to define a method which returns a delegate, without first creating a delegate type? For instance, in C or C++ I can define a function pointer type, then define a function which returns a function pointer of that type: [code=c]typedef int (*IntVoid)(); // function pointer type IntVoid …

Software Development c c# c++
Member Avatar for EricTetz
0
360
Member Avatar for mitch9654

This button will only appear if you move your mouse over it. See here: [url]http://mitch9654.zymichost.com/Java/index.html[/url] You hava to move the mouse around the top left my applet is this [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package …

Software Development java java-swing
Member Avatar for mitch9654
0
103
Member Avatar for daniel88

Hi guys, I am bringing a problem which I thought I had solved, but it has re-reared its ugly head. The problem is one of user input (I can hear you veterans audibly say "Aargh!"). I wish to remove serial numbers (of type string) from a set. To give you …

Software Development c++
Member Avatar for daniel88
0
141
Member Avatar for speedy94519

Hey guys Im having trouble printing out a string. Could someone help me out? I would like to enter a string like: "julie perez" and print out "julie perez" but my program only outputs "julie". The code that prints out only "julie" is the following: practice.c: [CODE] #include <stdio.h> #include …

Software Development c
Member Avatar for speedy94519
0
142
Member Avatar for Wikedshorty

I have to write two arrays of 10 random numbers betwwen 1 and 25 then sort those two arrays in increasing order then make a third array that has all the numbers of the first two arrays in sorted order but no duplicate numbers in the third array. Here are …

Software Development c++
Member Avatar for Wikedshorty
0
2K
Member Avatar for pyprog

Let's say I want to create two classes Owner and Pet [CODE]class Owner(object): def __init__(first_name, last_name, address, phone): self.first_name = first_name self.last_name = last_name self.address = address self.phone = phone class Pet(object): def __init__(name, owner) self.name = name self.owner = Owner.__init__(first_name, last_name, address, phone)[/CODE] Did I pass the class Owner …

Software Development python
Member Avatar for pyprog
0
109
Member Avatar for abcdabid

[CODE]<Security> - <User> <Username>jon</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> - <User> <Username>bob</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> </Security>[/CODE] I have xml file and i want to remove specific element having username jon [CODE] foreach (XmlNode parentNode in parentNodes) { for (int i = 0; i <= parentNode.ChildNodes.Count - 1; i++) { XmlNode childNode = …

Software Development c c# c++ xml
Member Avatar for papanyquiL
0
91
Member Avatar for mithunp

Trying to implement a stack using dynamic array. The Problem which i am facing is that if i a pushing 60 or 90 elements then the program is running fine but on inserting say 600 elements while printing the first two elements are showing junk value. Compiled the code using …

Software Development c
Member Avatar for Radical Edward
0
156
Member Avatar for mayank.15

Im trying to run my java application, but after some time it automatically stops and throws OutOfMemoryException: Java heap space. Now when i try to run it using (say) (-Xmx allocates the maximum heap memory) java -Xmx2000m [AppName] then it says Error occured during initialization of VM Could not reserve …

Software Development java
Member Avatar for mayank.15
0
180
Member Avatar for leiger

Basically I've got a text editor which revolves around a jTextArea. There are some settings (e.g. whether line wrap is enabled) that I'd like to save to a file when the application closes, and then load up again when it runs next. I've spent a few hours trying to get …

Software Development html-css java
Member Avatar for leiger
0
201
Member Avatar for GAME

I need to be able to count the textbox characters on a keypress, how would I do that?

Software Development
Member Avatar for ereruh
0
123
Member Avatar for simon126

Hi all, I am a first year student at northeastern and my VB professor assigned me a project that i am just stuck on. This is my first programming course and i honestly am a newbie at it so i hope you guys can help. Here is my situation. A …

Software Development display email gui visual-basic
Member Avatar for rex24
0
398

The End.