132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for axfv

I have a DataGrid bound to a DataTable. For various reasons, I don't want to allow users to sort the data, but I want to sort the data once by "Username" as well as resize the columns. I use DataTable.DefaultView.Sort = "Username" before binding it to DataGrid. If I then …

Software Development vb.net
Member Avatar for G-bot
0
155
Member Avatar for A.kalyani

can anyone please help me? i have two decimal arrays l(15),r(15) loop has to repeat for 16 times.l(15) , r(15) is the result i have to get.i wrote function F and it is executing perfectly.but atlast r(15) and l(15) is showing as system.decimal[].if i tested with ordinary variable other than …

Software Development vb.net
Member Avatar for A.kalyani
0
123
Member Avatar for PhiberOptik

Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages …

Software Development flash java
Member Avatar for PhiberOptik
0
138
Member Avatar for zeeshan_kust

hi to all members of the forume i am the student of BCS (7th) term i want to make my final term project in C# but i have no idea, how i start my project. if anyone is willing to help me please contact me on my email [U]muhammadzeeshan09@gmail.com[/U] Thanks

Software Development
Member Avatar for skatamatic
0
144
Member Avatar for konczuras

Hello! I'd like to ask for some help. I have the following code: [CODE] private void Combobox1_SelectedIndexChanged(object sender, EventArgs e) { runstylize(lCombobox1, leftborderstyle, "left"); } public void getborderstyle(ComboBox x, string y, string z) { y = z+"-was set to:" + x.SelectedItem.ToString() ; change(); } [/CODE] My question is: why is …

Software Development
Member Avatar for skatamatic
0
87
Member Avatar for agunning

I am trying to create a project, which will compute the yearly and monthly rate of taxes to be paid by a person earning a given gross yearly salary, knowing the rates for NI contributions, pension contributions, and income tax. The problem i am having is i dont think the …

Software Development c
Member Avatar for Narue
0
83
Member Avatar for Mossiah

Hi, I have done this program that calculates the average and letter grade of 10 grades, but i would like the program to ask the user how many grades he want to enter. plz help, I have tried many ways like -- [CODE] int size = 0; Cout <<"How many …

Software Development c++
Member Avatar for Narue
0
164
Member Avatar for player183

Hello there , i've got a problem , i made this program for a Football league stats sheet, but the program needs to grab the highest and the lowest value of each teams in age / weight (poids) / height(taille) i'm having a really hard time and i'd like someone …

Software Development c++
Member Avatar for player183
0
113
Member Avatar for cpopham

Does anyone know how to add a new user created tool to the toolbox permanently? Everytime I start a knew solution, I have to go and add my customized tools back into the tool box. I would like to add the custom tools once and then they be there everytime …

Software Development vb.net
Member Avatar for serkan sendur
0
155
Member Avatar for GDICommander

Hi, everyone! At work, I'm having problems to run a XPath using the selectNodeList() method from Xalan. The XPath I want to execute is: //pam:message//prism:coverDate The error message I have is: The prefix 'pam' is not declared. expression = '//pam:message//prism:startingPage' Remaining tokens are: ('/' '/'). I have searched on the …

Software Development xml
Member Avatar for GDICommander
0
125
Member Avatar for lml108

#!/bin/bash echo -e "10\n20\n100\n200" > file.txt number=0 cat file.txt | \ while read line do if test $line -gt 100 then number=$line echo "Inside while loop number=$number" break fi done echo "Outside while loop number=$number" The output of this script is Inside while loop number=200 Outside while loop number=0 Why …

Software Development shell-scripting
Member Avatar for fpmurphy
0
114
Member Avatar for sanushks

Hi All, i'm executing a C program in unix, is there a way i would be able to capture abnormal termination of the C program. i observed that abnormal termintion results in the segmentation fault message being displayed. Would i be able to capture the return count in Unix to …

Software Development c unix
Member Avatar for kenji
0
176
Member Avatar for RobertGaut

Given the following XML: [ICODE]<FlowDocument> <Run FontStyle="Italic" FontWeight="Bold">test</Run> </FlowDocument>[/ICODE] How could I get this result?: [ICODE]<body> <em><strong>test</strong></em> </body>[/ICODE] Thanks in advance!

Software Development xml
Member Avatar for fpmurphy
0
98
Member Avatar for cljlxwater

OleDbConnection thisConnection = new OleDbConnection( @"Provider = Microsoft.Jet.OLEDB.4.0;Data Source=e:\DataMoney.mdb"); OleDbDataAdapter thisAdapter = new OleDbDataAdapter( "SELECT * FROM SchoolMoney", thisConnection); DataSet thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet, "SchoolMoney"); OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter); thisBuilder.QuotePrefix = "["; thisBuilder.QuoteSuffix = "]"; //set up keys object for defining primary key DataColumn[] keys = new DataColumn[1]; …

Software Development dataset
Member Avatar for cljlxwater
0
74
Member Avatar for asifjavaid

Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
328
Member Avatar for babitha162

I have a form with one richtext box. This rtb has different formats for each line i.e., some text is in bold letters, some center aligned. Currently I am using the PrintDialog Box to print the contents of the rtb and Print Preview DialogBox to preview the contents. The problem …

Software Development vb.net
Member Avatar for waynespangler
0
3K
Member Avatar for milgo

hi ive developed an inventory program but when i compile it keeps giving me an error message that ive tried solving but it doesnt work.the code looks like this: // Inventory.java // Program that displays the value of a product in inventory. import java.util.Scanner; // program uses class Scanner class …

Software Development java
Member Avatar for BestJewSinceJC
0
165
Member Avatar for smoore

Okay I have a finished program that does the job of what I want to to do but it seems so messy. Could you guys gimme some suggestions about how to make this code more efficient... or just neater in general. Much appreciated and thanks in advance. [CODE] import java.awt.*; …

Software Development java java-swing
Member Avatar for verruckt24
0
1K
Member Avatar for homeryansta

Why won't this let me choose my own array size? Queue line[qs_pair] is what i'm concern about. As you can see, I have the user input from the terminal the size of the array. But when I compile it, it gives me an error on visual studio. line unknown size …

Software Development c++ queue unix visual-studio
Member Avatar for Freaky_Chris
0
105
Member Avatar for nikhil.laghave

Hello, I am a newbie and do not have any shell script experience. I am trying to call a script from inside a fortran call using the call system(./script). Now this script runs ok when run from command line, but when called from the fortran call, i get errors for …

Software Development shell-scripting
Member Avatar for masijade
0
118
Member Avatar for arvin2006

hi everyone, i have successfully saved the image file to DB by this code: Private Sub cmdSave_Click() Dim picsm As ADODB.Stream Set picsm = New ADODB.Stream picsm.Type = adTypeBinary picsm.Open picsm.LoadFromFile filepath With rs .AddNew .Fields("Last") = txtLast.Text .Fields("First") = txtFirst .Fields("Pic") = picsm.Read .Update MsgBox "Successful" End With picsm.Close …

Software Development file-stream image visual-basic
Member Avatar for debasisdas
0
161
Member Avatar for lehe

Hi, I am using copy_n from GNU C++ Library under Ubuntu 8.10. My code is like this: [code] #include <ext/algorithm> using namespace std; void myfun(char * flags ) { char * flags_new = new char[3]; copy_n(flags, 3, flags_new);// both copy_n and copy would give not in this scope error. delete …

Software Development algorithm c++ ubuntu
Member Avatar for John A
0
237
Member Avatar for DooM86

hi! First of all sorry if my english is a little poor I want evaluate a text box named txt1, the focus shouldn't exit from the text box until the user write any in it. This is my code: [code=java] txt1.addFocusListener(new FocusListener() { public void focusLost(FocusEvent e) { if (((Text) …

Software Development java
Member Avatar for malokran
0
244
Member Avatar for cruisx

Hi guys, have a school project that i am working on but i am just running into this one problem. Well its not really a problem its more of a me just starting the c++ course and i just wanted to do something extra to get some more marks. We …

Software Development c c# c++ ios
Member Avatar for computercobra
0
832
Member Avatar for shahab.burki

Hi, I make a try again on Link List in Visual C++ but got an error. The code is looking right but when I debugged the source, then I realize that when the LINKLIST constructor is called then the two Node type pointers *start and *last creates trouble. Please do …

Software Development c++
Member Avatar for computercobra
0
301
Member Avatar for rossyt

Hi I am trying to limit the cursor to a single form on loading. It works fine when testing it in Visual Studio but when I compile the exe the rectangle it limits is bigger than the form also if I change the start up position of the form from …

Software Development visual-basic visual-studio
Member Avatar for hkdani
0
678
Member Avatar for emiller7

This is not a complete program, I have comments to omit the incomplete portions. After "Player One" enters a row (see lines 54-5), the program ends. It outputs the "Enter a column" and the board and ends. I don't see why. Any help would be greatly appreciated! (Output after runtime …

Software Development c++
Member Avatar for emiller7
0
83
Member Avatar for jackiejoe

Hi, learning swing at the moment and was following a tutorial off the sun website, made mine with eclipse instead of netbeans. but all I get when I try to run it is the following in the Console window: gap= 4 gap= 0 Not sure what is going on here. …

Software Development java java-netbeans java-swing
Member Avatar for BestJewSinceJC
0
297
Member Avatar for bobrien314

I have this assignment to write my own malloc program and I am having some trouble. I am using a doubly linked list to manage free space and used space, and using next fit to allocate the memory. the problem that i am writing about is when i return the …

Software Development c linked-list
Member Avatar for nucleon
0
107
Member Avatar for kupido0502

i need help. i am learning VB and am trying to display a 'welcome' message when the form appears to the screen using the messagebox.show this is a very simple application consisting of only one form. a simple calculator

Software Development vb.net
Member Avatar for c0deFr3aK
0
335
Member Avatar for BestJewSinceJC

I'm not sure what forum this fits into, if any, but the program itself is going to be written in Java (not that it matters much). My question is, what is the easiest software to use that I can create a drawing of a GUI with? The GUI I want …

Software Development gui java
Member Avatar for BestJewSinceJC
0
87
Member Avatar for JAGgededgeOB172

Hi all, I'm just asking for help for my linked list sort function, I'm not including my entire program, as I'm sure my problem lies in my sort. I need to sort the linked list by rearranging the pointers, I was fairly sure I got the function correct. When I …

Software Development c++ linked-list
Member Avatar for JAGgededgeOB172
0
104
Member Avatar for r0flc0pter

Hello there, I'm creating kind of a GUI system, and I found myself in trouble when inheriting my base class in my other classes. This is the gui header: [code] #ifndef _GUI_H #define _GUI_H #define WIN32_MEAN_AND_LEAN #include <windows.h> #include <vector> #include <string> #define GUI_VERSION 1.0.0.1 #define TRUE 1 #define FALSE …

Software Development c++ gui
Member Avatar for ArkM
0
155
Member Avatar for Acis

Ok, im making a Text Based RPG and well just look at my problem. [CODE=C++]#include "Library.h" using namespace std; //Constant Integers //Functions void StartGame(); void LoadGame(); void Berkshire(); void Game_Menu(); //Integers int Gold = 0; int Health = 20; int Energy = 20; int Mana = 10; int numItems = …

Software Development c++
Member Avatar for nucleon
0
74
Member Avatar for serkan sendur

i want to add a control to a windows form using a method in some class file, then i want to access that control to register to its events. it must be done with one line of code, i know it from asp.net but i dont know how to do …

Software Development asp.net
Member Avatar for serkan sendur
0
112
Member Avatar for luke42

Hey everyone. rather new to java and was wondering on how i would accomplish this. I am using the Netbeans JDE in creating a Java GUI. I have completed the whole script but now am just doing some fine tuning in flattening out any errors that could go wrong with …

Software Development gui java java-netbeans
Member Avatar for jasimp
0
204
Member Avatar for OzY360

Right, i've got my program working and it does what its supposed to do. You will see in the code that i have several Macros and i think there is something wrong in the 'UpToLow' Macro, so just look for that label. I cant figure it out... basically what the …

Software Development assembly
Member Avatar for OzY360
0
113
Member Avatar for konczuras

Hello! I'm trying to create some files in the folder where my exe is located. This works just fine in VS 2008 C# express, but when I publish the file, (e.g.: D:\Program), it refers to quite an other place (somewhere in my documents and settings' applications folder) I've tried several …

Software Development
Member Avatar for konczuras
0
175
Member Avatar for charlie81

I have error in the top of this program not sure what I did wrong. import javax.swing.JOptionPane; public class Main_Class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub class wk2 { private static final char Y = 0; /** * @param …

Software Development java java-swing
Member Avatar for jasimp
0
159
Member Avatar for amarmasic21

I would appreciate any help with the following exercise, I have no idea how to really start this it'd not like any of the previous exercises I've done so any help would be great :) Define a class Set that keeps track of a collection of distinct objects. Inernally, you …

Software Development python
Member Avatar for woooee
0
152
Member Avatar for fuatm16

Hello All ! I m writing a scanner in python. I ve achieved to write scan results into a word file. But still not achieved to view results in my text box. My Text Box Codes: ----------------------------------------------------------------------------------------- metin = Text() metin.place(relx=0.3, rely=0.4, width=300, height=300) ----------------------------------------------------------------------------------------- A part of my Scanning …

Software Development python
Member Avatar for woooee
0
331
Member Avatar for lakhan.p

file f:\\pulldpto.ini hold following data... 101;Activaciones;Virginia Aláez;C/ Isabel Colbrand, 22 , Edif D Planta 4º ;28050 ( Madrid) what will be out put of variables. [python] fINI='f:\\pulldpto.ini' fINI=open(fINI,'r') while 1: linea=fINI.readline() if not linea:break linea=string.split(linea,';') variabl1[string.strip(linea[0])]=0 variable2[string.strip(linea[0])]=string.strip(linea[1]) fINI.close() [/python]

Software Development python
Member Avatar for woooee
0
83
Member Avatar for blahblah619

[I]Modify the program so that it reads input temperatures from a text file (named temps.txt) instead of the keyboard. The file should allow one temperature per line. The program should end when the end of the file is reached. Modify the screen output statement so that it includes the input …

Software Development c++
Member Avatar for vmanes
0
104
Member Avatar for Ellisande

As part of a project I'm working on, I need to develop a program that can take in a sentence and convert it somehow (I'm choosing to convert into Pig Latin). At first I thought this was going to be a piece of cake, until I realized that after [code]#include …

Software Development c++
Member Avatar for Ellisande
0
120
Member Avatar for molomoss

How would i go about converting this from dynamic to static, all me attempts so far have failed. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; struct Student { string name; int exam; int assignment; }; string readLine(istream& fin); string getPassOrFailString(int m1, int m2); Student* loadStudents(string filename, int& …

Software Development c++
Member Avatar for Narue
0
203
Member Avatar for mainak001

How to call crystal reports 10.0 through Perl script and how to save crystal reports data to excel .....?????????

Software Development perl
Member Avatar for KevinADC
0
231
Member Avatar for Gribouillis

Consider the following script [code=python] #!/usr/bin/env python # foo.py import sys print sys.argv [/code] When I run this in a terminal with arguments, here is the output [code] $ ./foo.py -h hello -m "this is a string" ['./foo.py', '-h', 'hello', '-m', 'this is a string'] [/code] My question is: is …

Software Development python
Member Avatar for Gribouillis
0
168
Member Avatar for fx7202

greetings everyone, i seem to be having an issue with a function that has a reference n a value to do a loop. the nature of the prog, is to roll a dice (n) times n then count the number of time srand rolls an even num. for the most …

Software Development c++
Member Avatar for fx7202
0
119
Member Avatar for prushik

I wrote a shell script that checks the command line arguments for the "-i" flag. I designed it to run from inside my gui application. I tested my script from the terminal and it runs perfectly, does just what I want and expect. So I ran my gui (which needs …

Software Development gui shell-scripting
Member Avatar for prushik
0
163
Member Avatar for emiller7

Compiler errors: (In main) Line 9:cannot convert char (*)[3] to char* for argument 1 to void showboard(char*, int, int) (in showBoard) Lines 16, 17, 21, 22, 26, 27:invalid types char[int] for array subscript I don't understand these errors. I am trying to make a tic tac toe game, I have …

Software Development c++
Member Avatar for emiller7
0
3K

The End.