64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for vishalrane

is it possible to call form load event on button click Following is the vb code i want same function in vb.net [CODE] Private Sub cmdaddcancel_Click() Form_Load End Sub[/CODE] Private Sub cmdaddcancel_Click() Form_Load End Sub in vb we simply call Form_Load is it possible in vb.net For eg: IN VB.net …

Member Avatar for sandeepparekh9
0
1K
Member Avatar for klemme

Hi all, I am trying to create a small login system, but so far I suck at it. I have a form in one page. It contains only: EMAIL, PASSWORD. I want to do this: When the form has been submitted to the processing page, I am trying to check, …

Member Avatar for ko ko
0
184
Member Avatar for MrCapuchino

Hello, I have an application where I save an image to a database in a column of type VARBINARY(1024) I used 1024 because I think is the number of bytes and I want to handle images no larger than 1MB. I have my code to save the image and it …

Member Avatar for MrCapuchino
0
2K
Member Avatar for SoulReaper1680

Hey, I have four labels in a form: label1, label2, label3, and label4. Now, if this was VB.NET, I would have used the following code to change their contents without having to type the code for each one separately: [CODE]For I = 1 To 4 Me.Controls("label" & I).Text = "Some …

Member Avatar for SoulReaper1680
0
387
Member Avatar for Sorcher

Hello peeps! I am wondering, how can i make this to not require manually writing. [CODE]if($attackerSoldiers >10){$ASoldierPercent = "1";} if($attackerSoldiers >20){$ASoldierPercent = "2";} if($attackerSoldiers >30){$ASoldierPercent = "3";} if($attackerSoldiers >40){$ASoldierPercent = "4";} if($attackerSoldiers >50){$ASoldierPercent = "5";} if($attackerSoldiers >60){$ASoldierPercent = "6";} if($attackerSoldiers >70){$ASoldierPercent = "7";} if($attackerSoldiers >80){$ASoldierPercent = "8";} if($attackerSoldiers >90){$ASoldierPercent = …

Member Avatar for Ezzaral
0
126
Member Avatar for laim

Hi, I have to build a matrix class with functions that you would expect, Im wondering if anyone can tell me why one or both of these functions arent working correctly? Basically a test harness is run against them to check so the data is random. Im sure it is …

Member Avatar for laim
0
128
Member Avatar for calebcook

Hello everyone! I've created a mailing list where users can subscribe with a form, and the results are added to a MySQL database. They can also unsubscribe. The subscribe/unsubscribe pages work GREAT, but the page where I send out the email is giving me some trouble. It says that the …

Member Avatar for minitauros
0
184
Member Avatar for chudapati09

[CODE] $info = ldap_get_entries($ldap, $search); for($i = 0; $i < count($info) - 1; $i++) { $people = array( $i => array( 'first' => $info[$i]['givenname'][0], 'middle' => $info[$i]['initials'][0], 'last' => $info[$i]['sn'][0], 'email' => $info[$i]['mail'][0], 'username' => $info[$i]['uid'][0] ) ); } [/CODE] I have the following code working, but what happens is …

Member Avatar for chudapati09
0
105
Member Avatar for jbennet

HI. I'm reading in a wave file and writing it to a sound device using ALSA. Im not a C++ guy (C#) so not very handy with its file I/O methods.. Any idea how do i change : [code]int rc = read(0, buffer, size);[/code] To work with any file i.e. …

Member Avatar for raptr_dflo
0
3K
Member Avatar for dyingatmidnight

I'm having a weird problem with myphpAdmin and webpage design. I've been having trouble getting my layout to do what I wanted to so finally I hit the net for examples I could tweak and what have you. So I found this example [URL="http://www.sebastiansulinski.co.uk/demos/three_column_layout/three_column_layout.php"]http://www.sebastiansulinski.co.uk/demos/three_column_layout/three_column_layout.php[/URL] I used the div layout as …

Member Avatar for Kraai
0
196
Member Avatar for pilipino93

Hi, I've been working on this mini project on a WFA. Basically what I'm trying to do is, move files through a checkedListBox. I have the c.listbox and i got the items on it, but I want to have the files moved (only the checked ones) into a pre-defined directory …

Member Avatar for pilipino93
0
195
Member Avatar for localp

I have a windows form application which has a text box and 3 buttons. Now i need to add focus to a button for 1 second, and then add focus to the other button for a second.. like wise to adding focus to all these 3 buttons for 1 second …

Member Avatar for Mitja Bonca
0
222
Member Avatar for imarc

Alright, so I got a very unique issue. It combines a little bit of SQL, VB.net Skill, and patience. The program I am trying to make needs to be structured like this. Table 1: Estimates (Details View) Customer ID Employee ID Form Factor Problem Proposed Solution Estimate Acceptance (Boolean) Table …

Member Avatar for imarc
-1
186
Member Avatar for moone009

Can someone please tell me why the results of my query are not appearing in my console application? I have a feeling it is something wrong with the console.writeline or readline [CODE]Imports System.Data Imports System.Data.SqlClient Module Module1 Private Property Sql As String Sub Main() Dim ConnString As String = "Data …

Member Avatar for Unhnd_Exception
0
98
Member Avatar for ceyezumma

Hello. I hava DAO classes to access tables of a Derby db. My DAO's all implement there own interface. I knew I would need to learn what this was. Is anyone farmiliar with how an application would use an interface for the DAO classes ? I use xml properties to …

Member Avatar for ceyezumma
-1
172
Member Avatar for vishalrane

[CODE]Private Sub frmCust_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbSource = "Data Source=xx-B4C521B850\SQLEXPRESS;Initial Catalog=TT;Integrated Security=True" con.ConnectionString = dbSource con.Open() da.Dispose() sql = "Select * from Cust" da = New SqlClient.SqlDataAdapter(sql, con) da.Fill(ds, "Cust") da.Update(ds, "Cust") con.Close() MaxRows = ds.Tables("Cust").Rows.Count inc = -1 End Sub [/CODE] if after …

Member Avatar for debasisdas
0
112
Member Avatar for simirnov

Hi, I am new to PHP Development. I am retrieving data from my database table clf_email. I am having a mysql_num_rows error in results. I cannot understand where i am going wrong and what error i am doing in the code. Please help in removing this error. [CODE] <?php require_once("../db.php"); …

Member Avatar for simirnov
0
268
Member Avatar for apanimesh061

I want to print all the numbers in the loop ..... How should I do it ? Please help ! [CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication5._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat ="server" > void Page_load() { int counter = 0; while (counter <= …

Member Avatar for dnanetwork
0
151
Member Avatar for quanzi_1507

Hi, I have to design an ERD based on these order and delivery note samples. Order sample -Order ID (random) -Customer's name -Customer's address -Date of order -table (list of item ordered) ID (ordered number, random) | Item's name | Description | Unit | Quantity Delivery note sample -Delivery note …

Member Avatar for quanzi_1507
0
217
Member Avatar for nonshatter

All, I have a simple question. What is the standard procedure for retrieving form values via POST method in a web form? Perl can be extremely awkward for web programming, I'd normally use something else, but in this case I need to use Perl for the CPAN module. Anyway, back …

Member Avatar for nonshatter
0
477
Member Avatar for WildBamaBoy

If you look at a bunch of files with the Details view, file types known to Windows have a greater description of the file in the Type column. For example, .exe is an Application, .txt is a Text Document, and .cpp is C++ Source. If they are not known, Windows …

Member Avatar for WildBamaBoy
0
96
Member Avatar for ssesham1

Hi, I want to use a template function that is used to convert strings to numeric types in a non-templated class. I have: [CODE] class Reader { ... template <class T> T ConvertString (const std::string str); }; [/CODE] Is it possible for me to define the template function in an …

Member Avatar for thekashyap
0
437
Member Avatar for ebanbury

Hi There. I have a property website, which already has some extensive search criteria for users to filter which properties they would like to see. I need to add to the search queries that fact that only properties which are within 21 days from the date they were submitted should …

Member Avatar for ebanbury
0
119
Member Avatar for bleedblue

I am creating a phonebook and i have some problems. I get everything to work except im having trouble deleting an entry and also when i add an entry im having trouble sorting it in alphabetical order. This is my code below if someone can help it would be much …

Member Avatar for TrustyTony
-1
186
Member Avatar for warlord902

I have some doubt regarding how class variable gets initialized, both static and non static. I mean, suppose I have a class like below. [CODE] public class MyClass{ public static HashMap<String,Buddy> buddiesMap= new HashMap<String,Buddy>(); public static ArrayList<String> buddiesList=new ArrayList<String>(); public static HashMap<String,ImageIcon> avatarMap=new HashMap<String, ImageIcon>(); public static ServerConnection con=new ServerConnection(); …

Member Avatar for thekashyap
0
580
Member Avatar for Soubhik

Hi Say I want to write a header file as an exercise. It will contain a bunch of functions and some constants. Q1. I noticed that the standard header files only contain the function prototypes. a> Where are the actual functions? b> How do I write a header file such …

Member Avatar for Soubhik
0
216
Member Avatar for sid78669

I have two tables, Episodes and Seizures, with their respective Forms. On Episodes, I have a button the user clicks to open the seizure Form and its internal working is below. The problem is when the form is opened and filtered by parent form, the seizure form instead of filtering …

Member Avatar for sid78669
0
181
Member Avatar for vomhaus

I wrote a method to read in a txt file and then return the value(s) line by line. However, the value(s) are being returned as such - [Ljava.lang.String;@6f579a30. I would have expected something different. The .txt file I'm reading in has value(s) in the file like this... A B C …

Member Avatar for NormR1
0
150
Member Avatar for Stefan_Lam88

Guys I have a question here. I write a custom validation and then my validation summary doesnt show up. Any suggestion.. I just use onservervalidation,without client validation. is that possible to show up the message? [CODE] protected void ServerValidation(object source, ServerValidateEventArgs args) { if (args.Value.ToString().Equals("Select")) { args.IsValid = false; } …

Member Avatar for Stefan_Lam88
0
116
Member Avatar for winecoding

I am trying to save an integer matrix to the csv file. My code is listed as follows. [CODE]try { FileWriter writer = new FileWriter("test.csv"); for(int i = 0; i < row; i++) { for (int j=0; j<(column-1); j++) { writer.append(Matrix[i][j]); writer.append(','); } writer.append(Matrix[i][j]); writer.append('\n'); writer.flush(); } writer.close(); } catch(Exception …

Member Avatar for hfx642
0
120
Member Avatar for MareoRaft

This program refuses to take foom as input, yet if I were to put "matrix.txt" into the function instead of foom, it would work fine. [CODE]#include <fstream> #include <iterator> #include <sstream> #include <vector> #include <string> // needed? using namespace std; typedef vector<double> Vec; typedef vector<Vec> Mat; Mat readMatrix(string foom){ Mat …

Member Avatar for mrnutty
0
244
Member Avatar for racumin

Hi I am implementing a "Star Craft" game and I have troubles on my A* algorithm. I followed the steps in [URL="http://www.policyalmanac.org/games/aStarTutorial.htm"]here[/URL] and created my own implementation using object oriented c++. Now when I have say 32 x 32 grid, and I need to move 1 unit, it takes for …

Member Avatar for mehdi_gol
0
489
Member Avatar for CloudZELL91

what is the program of do while that ... you can type any number but when u type zero it will stop the program? thanks for the help peace!

Member Avatar for CloudZELL91
0
83
Member Avatar for learningcpp

Hi All, Can you please help me to understand why the following code is behaving this way? I think both outputs should be 1 ( 1 means const T), but its not!! [CODE] template <typename T> struct IsConst{ enum {isConst = 0}; }; template <typename T> struct IsConst<const T>{ enum …

Member Avatar for learningcpp
1
3K
Member Avatar for warlord902

Suppose I have four classes in a package named T namely Main, A, B and C The class Main contains public methods which the classes outside package T access and Main class in turn communicate with other three classes and let some function to happen. Now I want only a …

Member Avatar for warlord902
0
172
Member Avatar for Labdabeta

Code::Blocks isn't working. I recently reinstalled to get a newer version and when I hit build I get the following error: [CODE]mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o Execution of 'mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o' in 'D:\Programming\C++\TESTINGOPENGL' failed.[/CODE] Please help!

Member Avatar for Labdabeta
0
2K
Member Avatar for vuyiswamb

Good Day All I am accessing an FDB Database with a WCF service. locally it was working fine, but now i want to access the service that is stting on a remote location. my Connection string looks like this [CODE] <add name="FDBConnectionString" connectionString="User=SYSDBA;Password=masterkey;Database=\\192.168.03.14\Database\SCHOOL.fdb;DataSource=192.168.03.14; Port=3050;Dialect=3; Charset=NONE;Role=;Connection lifetime=15;Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0;"/>[/CODE] i get …

Member Avatar for vuyiswamb
0
8K
Member Avatar for CloudZELL91

help!.... can you give me a statement of looping that use for loop, while, and do while loop at the same time... and if you can answer the statement it will be more welcome.. thank u ... peace!

Member Avatar for Momerath
0
71
Member Avatar for bbman

[CODE]using System; public class UserMainCode { //Assume following return types while writing the code for this question. public static int[][] output1 = new int[9][]; public static void soduko() { } public static void SolveSudoku(int[,] input1) { input1=new int[9,9]; int i,j; for(i=0;i<9;i++) for(j=0;j<9;j++) output1[i,j]=input1[i,j]; soduko(); //Write code here } }[/CODE] im …

Member Avatar for Momerath
0
142
Member Avatar for iret

Just some random thoughts :) DOS runs natively in 16-bit Real Mode. EMS, and Himem, memory managers (to my best knowledge) provide their services by jumping in and out of Protected Mode. 32-Bit Protected Mode programs use a DOS extender to jump into Protected Mode, and provide 32-Bit services. A …

Member Avatar for iret
0
231
Member Avatar for Dhanesh10

[CODE]#include"stdio.h" #include"conio.h" #include"alloc.h" struct node { int age; char name[25]; struct node * next; }; void add_end(struct node **q); void display(struct node *); void main() { struct node *p; p=NULL; add_end(&p); //display(p); getch(); return; } add_end(struct node **q) { struct node *temp,*r; temp=*q; if(*q==NULL) { temp=(struct node *)malloc(sizeof(struct node)); printf("\nEnter …

Member Avatar for Dhanesh10
0
370
Member Avatar for twentylemon

I have a simple function to toggle visibility of whatever. I use it in many places and I know it works fine. [code=html]<script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script>[/code] I'm now using this …

Member Avatar for twentylemon
0
221
Member Avatar for Bheeman89

Dear Friends, I have a question in security programming. As all of us know, when we have a database with passwords or anything sensitive, we would like to encrypt it so it is not readable by other. Now I want to know, which of the method is secured or less …

Member Avatar for twiss
0
188
Member Avatar for tom_289

Code Giving Error is Given Below, and Error is 1) Make Sure your method arguments are in right format 2) When converting a string to DateTime, prase the string to take the date before putting each variable into the DateTime Object [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; …

Member Avatar for jignesh kaila
0
222
Member Avatar for samsons17

Hi.. I am in the middle of my project but i get stuck here. I want to make the friends linking process page.Which is upon registration, new user will be redirected to this page to find their friends that have registered on my site. I try to google it, but …

Member Avatar for samsons17
0
165
Member Avatar for stevanity

I created the following package AccBal. [CODE]package AccBal; public class AccountBalance { private String Name; private double Balance; public void setData(String name, double balance) { Name=name; Balance=balance; } public void displayBalance() { System.out.println("The Account Balance of " + Name + " is $"+Balance); } } [/CODE] Then I created a …

Member Avatar for stevanity
0
243
Member Avatar for leetari

Hi, Why is it that when I remove(commented out) the inner j for loop and all it's contents, the cmd prints out my desired output. However, replacing back the inner for loop, it gives an incorrect output -> my counter values are wrong when printed. Can anyone spot what I …

Member Avatar for leetari
0
156
Member Avatar for neutralfox

Hello friends, I am having a small problem, i have already designed a chat application, the chat works fine over a local network but now I want to use it over the internet. Logically the program should but what happened is that to get the IP I have used [code] …

Member Avatar for kumarprabhug
0
6K
Member Avatar for Dannis86

So i've got a little problem. I'm just running a website for fun, got it from a friend because he didn't need it anymore. Site is called: fapperd.nl Now i'm really happy with me installing a phpbb forum on my server and made a button for the forum as you …

Member Avatar for Dannis86
0
400
Member Avatar for dev344

Hi I have never come across such code before. I can't make out what it is [CODE]SockerManager::SocketManager() : sockets(0), events(0), nSockets(0) {}[/CODE] Could someone tell me what does something like a() : b() mean? Thanks Devesh

Member Avatar for dev344
0
146

The End.