43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for neolyte120109

Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click If txtuser.Text = "" Then MsgBox("Please Enter a Username or Password, DOnt leave it blank", MsgBoxStyle.Exclamation, "Access Error") ElseIf txtPass.Text = "" Then MsgBox("Please Enter a Username or Password, DOnt leave it blank", MsgBoxStyle.Exclamation, "Access Error") Else End …

Software Development dataset sql vb.net
Member Avatar for Teme64
0
160
Member Avatar for Nivass

Hi, I have drawn the rectangle using picture box paint. Now I like to edit the drawn rectange (Like to increase or decrease the length of the drawn rectangle). how cab i do this. for code refer below link: [url]http://www.daniweb.com/forums/thread286159.html[/url]

Software Development
Member Avatar for Nivass
0
140
Member Avatar for b1izzard

Hi all I am trying to insert a record into MS-Access database using VS2008 as front end and this is my code i am using to connect to the database. login.mdb has two tables(login,schedules) [CODE] Dim con As New OleDb.OleDbConnection Dim cmd As OleDbCommand Dim myquery As String Dim count …

Software Development microsoft-access open-source vb.net
Member Avatar for shuhana84
0
251
Member Avatar for cwarn23

Hi, long time no C. I have started using the Irrlicht gaming engine but have bumped into a problem which has been bugging me for the past 6 hours flat. I have a variable containing a std::string but it needs to be converted to a (const wchar_t *) string. Does …

Software Development c++ gaming
Member Avatar for cwarn23
0
119
Member Avatar for VBNick

can anyone tell me why this would freeze? I'm trying to find a way to terminate a thread from outside of it, and allow the main program to do garbage cleanup, like closing any HANDLEs used or freeing any memory allocated. I trigger an event which should cause that loop …

Software Development c++
Member Avatar for VBNick
0
102
Member Avatar for wolfeater017

:SHave they made a py2exe 3.0 yet and if so where in the internet can you find or have they just not made one yet?:confused: If not how else can I turn my programs into executables?:-/

Software Development python
Member Avatar for Beat_Slayer
0
200
Member Avatar for leeba

I am trying an exercise in a book and can't find my problem. I want an invoice class with a seperate implementation file and a file to use it. Below are the three files. [code] // invoice class //Invoice.h #include <string> using namespace std; class Invoice { public: Invoice(string,string, int, …

Software Development c++
Member Avatar for leeba
0
97
Member Avatar for Cort3z

Hi. I am working on a multi threaded program (game renderer). What I want to do is to loop through my threads and get a boolean value that tells me if the thread is done rendering or not. If all the threads is done, I want the code to go …

Software Development java
Member Avatar for Cort3z
0
68
Member Avatar for Jennifer84

Hi, I have a form that has Width & Height (1000,1000). Now if the users screen has for example this sizes (800,800). Then I want to adjust the Forms Width & Height to 800,800 so it fits the screen. So my question should be if it is possible to detect …

Software Development c++
Member Avatar for ShadowScripter
0
263
Member Avatar for broli100

Hi, I want to put GLSL shader in my game to get realistic shadows and lighting. But when I use polygons GL_POLYGON ,they are totally black. Only thing that works OK with shader is glutSolid bullshit like glutSolidTeapot and glutSolidCube and so on. So I wanted to know the source …

Software Development c++ opengl
Member Avatar for broli100
0
256
Member Avatar for Pytho

Hi again This time I have one kind of bigger problem. I have to bind single click and double click with Tkinter. So, I tried this: [code=python] root.bind("<Button-1>", single_click) root.bind("<Double-Button-1>", double_click)[/code] That doesn't work. What I can try next? How to execute function X on double click and function Y …

Software Development python tkinter
Member Avatar for Pytho
0
108
Member Avatar for Jennifer84

Hi, It is possible to drag a Forms width. What I want is to prevent a user to drag the Forms width more than the value 405. I have tried out with the code below but nothing happens when I drag the width of the form. Thanks! [CODE] private: System::Void …

Software Development c++
Member Avatar for Jennifer84
0
97
Member Avatar for Duki

How can I specify which sheet I want to write to by name? For example, I want to specify that the sheet I should be modifying should be labeled "212". Also, perhaps a more challenging question. How can I ensure that the sheets I create are always in alphabetical order? …

Software Development
Member Avatar for Duki
0
170
Member Avatar for kibr987

Hi, I am trying to figure out graphics in C# and I wanted to start by drawing a line on the form. I was following msdn example. The problem is - where shall I put those code! I have tried this, but it didn't work. Can any one suggest any …

Software Development
Member Avatar for Lusiphur
0
117
Member Avatar for acrocephalus

Hello! I am trying to write a piece of code to open a file using a 'while' loop. It should ask for the file name and, if it does not exist, ask for it again. This is the code: [CODE]while True: try: fhand = open(markFile) except: print 'File', markFile, 'cannot …

Software Development file-system python
Member Avatar for acrocephalus
0
146
Member Avatar for garea

I have a problem with recursive imports in C++. I have this 2 classes: [CODE] //File A.h #include "B.h" class A{ public: A(){}; void doA(B b){ b.doB(); } } [/CODE] [CODE] //File B.h #include "A.h" class B{ public: B(){}; void doB(A a){ a.doA(); } } [/CODE] I tried to use …

Software Development c++
Member Avatar for rodc
0
815
Member Avatar for Kanoisa

Hiya, Im trying make a simple cards game and i was wondering how in c++ can i use the characters ♠ ♣ ♥ ♦ , i think it would be betetr than me printing out the words each time, Are these in some extended character set anywhere? i tried googling …

Software Development c++
Member Avatar for Kanoisa
0
1K
Member Avatar for Freefrags

Im trying to create a boost thread which executes the following static function. [code=c] Updater::UpdateTrack(const std::string& sFolder) { //Do something } [/code] I cant seem to figure out how to pass the argument to the function i tried the following: [code=c] m_UpdateThread = boost::thread(&Updater::UpdateTrack,"test"); [/code] [code=c] m_UpdateThread = boost::thread(boost::bind(&Updater::UpdateTrack,"test")); [/code] …

Software Development c++
Member Avatar for Freefrags
0
169
Member Avatar for PoisonedHeart

Hi guys, just wondering, would someone give me some advise of what what kind of software should I develop...maybe just a simple software...or a small software...whatever you call that...a software that would not take a lot of time in the development process...maybe...more or less than 3 weeks...what do you think?.. …

Software Development engineering visual-basic
Member Avatar for vb5prgrmr
0
467
Member Avatar for karkar_87

I need some help regarding Paging on a Gridview. I have a few dropdownlists and textbox and a gridview. At first load, the gridview will be populated with data from the sql server. And, I did a search and it works for the first page. When I press the second …

Software Development
Member Avatar for bfbfb
0
138
Member Avatar for Frederick2

[CODE=C++] #include <stdio.h> int main() { int iBAF=10; int iPlots=14; double dblFactor; dblFactor=iBAF/iPlots; //to get a floating point you need a cast! printf("dblFactor = %10.6f\n",dblFactor); return 0; } /* dblFactor = 0.000000 */ [/CODE] I thought C/C++ would offer a few benifits beyond pure assembler. Apparently I was wrong.

Software Development c++
Member Avatar for Fbody
0
357
Member Avatar for plike922

i am having trouble fixing this program... its not printing the number any tips??? i am using sieve of Eratosthenes [CODE]#include <cstdio> #include "simpio.h" #include "strlib.h" #include <iostream> using namespace std; int main() { bool is_prime[300]; int num[300]; int i, n; printf("This program prints all prime numbers from 1 to …

Software Development c
Member Avatar for technology
0
131
Member Avatar for group256

Hey Everyone, I'm compiling a code that reads characters from a file and puts them in a linked list. No problem with the Linked List but my ifstream acts weird. When it reads from the file everything goes somoothly, but at the end, when it reads that last WORD, it …

Software Development c++ linked-list
Member Avatar for group256
0
188
Member Avatar for hirenpatel53

i have one datetime picker want to show selected date into textbox please help

Software Development vb.net
Member Avatar for hirenpatel53
0
281
Member Avatar for Anyzen

good day.. i am starting to learn..and experiment in namespaces just simple one... calling void functions..then print f.h [CODE]#include<iostream> #include<limits> namespace A { void f() { std::cout<< "Testing \"void f()\""; std::cout<<std::endl; } }[/CODE] f.cpp [CODE]#include "f.h" int main () { A::f(); std::cin.ignore(std::numeric_limits<std::streamsize>::max(),'\n'); std::cin.get(); } [/CODE] g.h [CODE]#include<iostream> #include<limits> namespace A …

Software Development c++
Member Avatar for Anyzen
0
194
Member Avatar for Mitja Bonca

I am doing a crystal report with printing. I have encountered on this problem: [CODE] try { PrintDialog print = new PrintDialog(); print.ShowDialog(); crystalReportViewer1.ReportSource = cr1; crystalReportViewer1.PrintReport(); cr1.Refresh(); cr1.PrintToPrinter(1, true, 1, 1); } catch { //MessageBox.Show("Some error occured...", "Opozorilo", MessageBoxButtons.OK, MessageBoxIcon.Error); } [/CODE] I got an error on last line …

Software Development printer
Member Avatar for hirenpatel53
0
323
Member Avatar for exgliderpilot

Hi I have the following code and I know Message.To is a collection, just getting to grips with c# - just can't get the syntax right! [code=c] string sToAddress = ""; sToAddress = Message.To(0).ToString; [/code]

Software Development
Member Avatar for exgliderpilot
0
257
Member Avatar for arch_mah

In the employee module i want to pick and add a picture from web camera.. On the "add picture" button i need to open a web camera screen.. Can it be possible..Please help

Software Development vb.net
Member Avatar for arch_mah
0
93
Member Avatar for acrocephalus

Hello! I have this piece of code, which asks the user to continue with the program even if it may overwrite some folders. [CODE]print w.fill('WIP will create Backup, Resized and Watermarked folders to store the original, resized and watermarked pictures. It will overwrite them if they already exists. Are you …

Software Development python
Member Avatar for TrustyTony
0
141
Member Avatar for P00dle

I have a client and a server - the client sends the server a message, and depending on what message is sent, the server will perform an action and then reply to the client. Most of the actions that I have implemented are working. I need help with one of …

Software Development client-server java socket-programming sql
Member Avatar for P00dle
0
896
Member Avatar for arch_mah

I have two doubts.. 1..I am trying to make a toolbox(As Like in the Visual studio screen at the left hand side ) in my project .when i put my mouse in the toolbox it should expand and when i put my mouse back then it should compressed. 2..In our …

Software Development vb.net visual-studio
Member Avatar for arch_mah
0
237
Member Avatar for alex9292

hi im trying to write a program that will create a class to store info on books (title, author, number of pages and price) and that will trow a custom exception when the price entered for a book is higher than 10 cents per page. I got the class working …

Software Development
Member Avatar for wisaacs
0
137
Member Avatar for Krstevski

Hello friends, can someone explain to me how can I submit form with radio button ? I know how to fill and submit form if the form contain just a textboxes, here is the code: [CODE=perl] #!c:\\perl\\bin use strict; use WWW::Mechanize; use HTTP::Cookies; my $outfile = "out.htm"; my $url = …

Software Development perl
Member Avatar for Krstevski
0
360
Member Avatar for intills

Hello I need to modify this code to have only the first character of whatever word inputted be capitalized. I have this one that shows all the characters capitalized, but I need to modify it using isspace(). #include <stdio.h> #include <iostream> using namespace std; int main () { char c, …

Software Development c++
Member Avatar for mrnutty
0
255
Member Avatar for Simes

I am stuck on the parts of the first code that have <> in place of actual code and having trouble getting testing done at the end of the first code, the testing of the functions that I cannot get to work have being quoted out in Python. [CODE=python]from random …

Software Development python
Member Avatar for Simes
0
205
Member Avatar for leahrose87

Hello! It may sound silly but I really need help. I am just a beginner in vb .net. I am now developing a window-based software. This is the problem: 1. After the user log-in, the system must show the parent form and automatically show the main transaction form base on …

Software Development vb.net window-manager
Member Avatar for leahrose87
0
534
Member Avatar for Dennis M.

The title in and of itself is fairly descriptive, however, I am looking for some help. I am writing a program which reads the output of a command-line based program and puts that output to a GUI. Due to my need of asynchronous i/o, I have had suggestions to use …

Software Development c++ gui
Member Avatar for wisaacs
0
3K
Member Avatar for technocratic

Hello, I'm having a little trouble learning some python and I'd appreciate a little direction. One of the exercises in my books says to create a string list [CODE]list = ["a","b","c","d"][/CODE] Convert each character in the list to it's ascii equivalent and then populate that information into a new list. …

Software Development python
Member Avatar for TrustyTony
0
3K
Member Avatar for AngelicOne

I am inserting an int value using numericupdownvalue from a form to database, using the following code [CODE]SqlCommand cmd = new SqlCommand("insert into student where student_no='"+numericupdown1.value+"'",con)[/CODE] Now I have another form that is when loaded, will read the inserted value made by the numericupdown.value, using the following code [CODE]numericUpDown1.Value = …

Software Development
Member Avatar for AngelicOne
0
713
Member Avatar for lotrsimp12345

In the following code how to fix problem that the batch file won't get created. When I run in debug mode exception I get is "could not find part of path" Thanks [CODE] StreamWriter sw = null; try { if (AgilentNVisaDriver.Checked == false && RequiredDlls.Checked == false) { MessageBox.Show("Please select …

Software Development assembly
Member Avatar for Lusiphur
0
352
Member Avatar for ans025

Hello I am very new to Java and I really don't know exactly what I am doing. I know a little bit of other programming languages so I'm trying my best to figure it out for myself but I am supposed to: [B]Write a Java Application which will read a …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for abbyo

I was given a font finder program, but I need to resize the applet... any suggestions on where and what code is needed to fit the applet to a specific size? If not, is there a setting in eclipse that will work? [CODE] public Dimension getPreferredSize() { return new Dimension(800,800);// …

Software Development ide java
Member Avatar for abbyo
0
95
Member Avatar for java_programmer

Could anyone please explain what is Idempotent method in Java? After google, what I found about this is [B]Idempotent methods are methods, which are written in such a way that repeated calls to the same method with the same arguments yield same results[/B]. And am not getting any example to …

Software Development java
Member Avatar for java_programmer
0
329
Member Avatar for emclondon

Hello guys, im stuck working on a simulation program. I am working on a program which mimics a door's security key panel. In case if you have been wondering what a door's security key panel is.. its a keypad on the door which unlocks the door upon entering a proper …

Software Development
Member Avatar for nick.crane
1
168
Member Avatar for khanrock

[code] public partial class Form1 : Form { int row, col; int num = 0; public Form1() { InitializeComponent(); } private void generatebutton_Click(object sender, EventArgs e) { int rows = Convert.ToInt32(rowBox.Text); int cols = Convert.ToInt32(colBox.Text); for (int i = 2; i <= rows+1; i++) { for (int j = 4; …

Software Development
Member Avatar for nick.crane
0
120
Member Avatar for hgbreton

Hi. I've got to write some code to get data from an XML document and turn it into C# objects. Problem is that the XML document will not always have the same nodes, since it is produced from a web form that people have filled in varying amounts of (which …

Software Development xml
Member Avatar for hgbreton
0
156
Member Avatar for acrocephalus

Hello! I am very new with Python, so it may be a stupid question. How can I get the height and the width of an image in pixels? Cheers! Dani

Software Development image python
Member Avatar for Beat_Slayer
0
11K
Member Avatar for cmutzel02

Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. …

Software Development c++ programming-construct
Member Avatar for cmutzel02
0
271
Member Avatar for VB 2012

Can somoene please help me I want to Know how to Drag and Drop to cut files/folders and it opens a folderdialog for the destination:(

Software Development vb.net
Member Avatar for VB 2012
0
96
Member Avatar for sasidhar1229

I am doing servlet program. It is working when I run it as a GUI appliction. But when I run it as a web application it arises java.lang.NoClassDefFoundError: java/lang/StringBuilder at SDBApp.service(SDBApp.java:14)please help me. Here is my code. SDBApp.java [code]/*servlet which takes care of inserting rows in Data Base*/ import javax.servlet.*; …

Software Development gui java xml
Member Avatar for Amit Tomar
0
560

The End.