199,114 Archived Topics
Remove Filter ![]() | |
[code] Private Sub DataBinding() Try Dim bsTableName2 As String bsTableName2 = "dbo.hrBranchSetup" 'cboOrganization.DataBindings.Clear() 'cboOrganization.DataBindings.Add(New Binding("Text", ds.Tables(bsTableName2), "OsID")) brCode.DataBindings.Clear() brCode.DataBindings.Add(New Binding("Text", ds.Tables(bsTableName2), "BranchCode")) brName.DataBindings.Clear() cboOrganization.DataBindings.Add(New Binding("SelectedValue", ds.Tables(bsTableName2), "OsID")) cboOrganization.DataBindings.Clear() brName.DataBindings.Add(New Binding("Text", ds.Tables(bsTableName2), "BranchName")) bsOnlineYNCheckBox.DataBindings.Clear() bsOnlineYNCheckBox.DataBindings.Add(New Binding("Checked", ds.Tables(bsTableName2), "OnLineBrYN")) Catch ex As Exception MessageBox.Show("Error No : " & Err.Number & vbCrLf _ … | |
I have two Combo Boxes..1-Programme 2-Semester I want to bind Semester combo box with Programme combo box.. i m reading file from Xml.... after binding i have to show data on datagrid view... but i m not able to do it...... i hope someone will help me... Regards.. Farhad | |
Hi everyone, I recently transferred my host from other host provider to blue host. In my code there is logic, when user updates property (Basically, its a real estate website) then, it creates/write xml file in media/xmlfeeds folder. Earlier, on previous host it was working absolutely fine but, after transfer … | |
hello all, i m new in php, i try to get text text box value in checkbox when i insert the data in the field if when check box is checked and then that checbox value store in database and i also need to show that if that checkbox value … | |
Hi, I have added sleep with random timings and printed the values. I am actually expecting the "Blocked in Child" OR "Blocked in Parent" out put when other process sleeps. But it it never printing the statement.(when the process is going to sleep the semaphore is not cleared so i … | |
Hi all, I am trying to use a prepared statement for the first time and I am getting confused with parameters. The idea is that a GUI opens with 10 fields filled in, now somebody can update one or more fields and this will be updated to an Access Database … | |
Write a java program that will open a file, read each of the records from the file, use that data to populate a two dimensional array and write the sorted data out to a new text file. Define a class named [B]Munge[/B] which will do all the 'heavy lifting' in … | |
I have been programming woth vb.net for a long time but now i want to start with java. and I wanted to know where i can find enlightening guidance tutorials and code samples that work . I also heard that java requires other programs to run with it. any links … | |
Hey Guy's,anyone has a working codes of my problem? moving row data table to another table using php/mysql sorry guy's for this cause i'm very noob on this php/mysql language any help would be appreciated(i'm reallly badly need your help) | |
Hi all, i have a table like below Id Names 1 Sanjay, Anu, Rock 2 Mohamed, Asif, Selva, Manoj, Booker T 3 Jerrico, Cena 4 Amala How do i select MAX LENGTH OF STRING from column in the table, I need the result like, 2 Mohamed, Asif, Selva, Manoj, Booker … | |
lets say i there is a file with 2 lines in it. and we going to read from it. only thing we dont how how many spaces there are. for ex " -hello ", " -hello", "-hello", " -hello " file.txt ----------- -hello -hello 29 ----------- i want to skip … | |
Hallo, How can i use Regex to match names in different files. e.g. i have 3 files with names. i need to link the matching names in the different file. any ideas. | |
I have an SQL select statement that I cannot quite get working. Dim SelectStr As String = "SELECT * FROM Appointments WHERE Doctor = '" & ComboBox1.Text & "' AND AptDate = #" & DateTimePicker1.Text & "#" This works perfect ... however I have 2 more WHERE possibilities ... I … | |
Hi, I'm a pretty new Java student and I was just confused on a few basic concepts. What exactly is the difference between public and private classes and in which case would you use each one? also, what is a constructor, mutator, or accessor? Thank you. | |
As for the form, the user enters the data, but if they need to add additional items (i.e. more people, property vehicles), I need the data to save to an excel file, but clear the form. I have been able to get the textboxes and rich textboxes to clear, but … | |
for some reason it always return 1; lets say char line will have a empty line or not empty line. int main(void) { char line[20]; //user may enter some word or enter nothing in LINE if(empty_line(line) != 0) { //... } } int empty_line(char line[]) { for(i = 0; i … | |
hi all, can any1 teach me how to add in the x (0-5V) and y axis (0-5SEC) to a picture in my form? below is a example of what i mean, x and y axis value. thanks! [url]http://www.datadynamics.com/forums/144176/PostAttachment.aspx[/url] | |
I can't seem to wrap my brain around this one and would really appreciate it if someone has some suggestions! :) I have two tables, one contains a list of locations (AccountLocations), another a list of contacts that belong to those locations (AccountContacts). What I would like to do is … | |
To freeze the exicution for specified period we use threading.thread.sleep() in timer tick event..... But my problem is how to freeze the exicution of a button clivk event for a specified time.....?? I jst tried to use threading.thread.sleep() But its not working in button click event | |
Firstly, im not sure if this is the correct location for a VBA question? Please move if necassary. This is my first major project using VBA - Ive previosuly used vb.net quite alot, and still adjusting to understand both, and the differences. My question is: I have a folder with … | |
Been a long time since I've logged in and had a question, but here goes nothing! I have a file that is not delimited in any way, but I need to replace a particular column character from a space to a alphanumeric value on every other line starting at line … | |
Hi, I have this nice function to truncate a string with HTML. It's very good only now I ran into a problem. There are cases where for example The input will be this: `<a href="some url">this is a link</a>` and what I want to output is exactly the same, even … ![]() | |
I am having a bit of an issue with centering images within an image rotator. The rotator is a php/jquery rotator, its very simple. the issue I am having is getting the images to be absolute middle. I have tried what seems to be everything I know, but I am … | |
i have problem with my code to search node in link list. can anybody help me? sorry for my english.. node *temp1; // create a temporary node temp1 = (node*)malloc(sizeof(node)); // allocate space for node temp1 = head; // transfer the address of 'head' to 'temp1' bool find = false; … | |
Hello again everyone. I am creating a math game sort of...I dont know if they call it a case or switch statement but I want one in both my Menus. Also I am wondering if you can create an if statement or case statement that will support two variables...for example: … | |
Hello all. I am making a virtual iPod touch in VB.NET, and I hate it how I have a form that I can't drag and move the form around the screen, I've trying making the form goto Mouse's location when the mouse moves and Dragging = True, but that doesn't … | |
Hey all, Im working on a number guessing game where a user has 10 tries to a guess a number. The program supposed to display user guesses and then the main menu after the game has finished. Im running into a couple of problems. The first one being that for … | |
my code is to handle the maxlength in the multiline textbox (textarea) so it works just like maxlength in the singleline text box , so I handled it onkeypress , but if I copy and paste , i want to substring the length to the maxlength from the clipboard , … ![]() | |
hi can someone help me to make a calculator as required? Create class Calculator. This class must contain the following features: constant PI constructor that accepts two integers, operand1 and operand2 method for writing values and operand2 operand1 methods for calculating the four operations - addition, subtraction, division and multiplication … | |
Hello my fellow Daniwebbers, I have yet another question for you. I have been using a library to scan, located [here](http://bytescout.com/products/developer/scansdk/bytescoutscansdk.html), and have not been getting a consistant return. When I use the TWAIN Source, the GUI pops up and disappears almost instantly. When I tell the source manager to … | |
How to glow and toggle between colors automatically using .animate( ) function? I started with this but failed further coding $(#glow).animate({ }); Inside above function var loop = true; // toggle on/off var speed = "250"; // animation speed var c = new Array(); //array for colors c[1] = "#0080FF"; … | |
Can anyone help me with importing text file to sql server using vb.net here is my code ~~~ vb Dim ImportedFile As String Dim ImportedLines() As String Dim OneLine() As String Dim strSQL As String Dim i As Integer If My.Computer.FileSystem.FileExists("D:\PPOS\Sales_report\inventory_255503221452_Cake102.CSV") Then ' Read the whole text file ImportedFile = … | |
Hi, In my windows machine, just i have installed xampp and the drupal 7. I need of debugging tool, so am going for the Eclipse PHP Development Tool (PDE). I don't know, how to install on my windows machine. Can anybody give me a step by step installation to carry … | |
I have a singleton class that I am revamping and need a little help with. I want to use the following syntax for my queries without having to declare a global object. Below is my current code: /** * The db database object * * @access private * @var object … | |
I have used 2d arrays many times before, but for some reason eclipse keeps putting a red line under ; at the end of the declaration line for it. When I run it I get an unresolved compilation error. Here is my code: private Zone[][] zones = new Zone[10][10]; What … | |
Hi guys, as you can see i have a problem with the array , i don t know how to put every remainder in the array and then loop it to get the reverse order, it seems that the array is being overwrited every time the while loop goes and … | |
![]() | Hi, I'm trying to create a form in which a user selects a Customer from a Combo box and then can select a "Dongle" (or Product they have) from a list box. Below is a screen shot of the relationship between the tables.  Also here is a screen … |
I am finding the factorial and exponents of variables both recursively and iteratively. What I need help with is finding out how long it took each one. Where do I put the System.currentTimeMillis() part and how do I find out exactly how long it took (i.e. 55 milliseconds)? public static … | |
i have use a sending mail code but problem is that exist when i have send mail offline it sending but when i have publish my website and then upload this website and then sending mail so a error is occur error is The transport failed to connect to the … | |
C programming in IOS? Hi, I am implementing an image editing program in C which should work both in Windows, IOS (iDevices). Ths point is that we do not want to re-write same code in Object-C or Xcode. Let's say that we have a C program that is just resizing … | |
When the score is greater than 100 points the program should ask me whether the score is correct The program should ask me whether the score is correct. The program should not add a score that is more than 100 points to the accumulator with out permission (if(score > 1000 … | |
#include <iostream> #include <string> using namespace std; int main() { string s; for (int i=0; i<10000; i++) { s+=1; for (int j=0; j<i; j++) {s+=0;} } cout << s; } This is a code i wrote to make s=110100100010000... until 10 to the power of 10000. However in the line … | |
With what programming languages can you write OS in. I know that you can use C and C++ but are there any other, when i talk about OS i mean everything: from the BIOS & Boot & Kernel & all the rest that is neede to make an opersting system … | |
please kindly help me!!! what i wanted is when i select items in the combobox and it is already in the database it will prompt that it is already in the database..tnx ~~~ vb Private Sub ComboBox3_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ComboBox3.Validating If ComboBox3.Validating Then con … | |
Pretty stumped on why I am getting so many errors trying to get this to work, the reason terminalArray is not declared is because this is a function, terminalArray was declared before main. Any help will be greatly appreciated! int histArray[10]; int i; int j; while (terminalArray >= 1 && … | |
Dear All, I am beginners in MS Sql, now I have three tables (Companies, Product, SaleBody). and their fields are (CompanyId, CompanyName), (ProductId, ProductName, CompanyId, PurchaseSTPrice, TradePrice), (SerialNo, SaleId, ProductId, Quantity, Price, TotalPrice).............. I want to create Report in which I want (companies.CompanyName, product.ProductName, product.TradePrice, salbody.TotalPrice) How can I get … | |
I am writing a program in C to build linked lists from scratch. However, I am getting hung-up on trying to build a link list that will automatically sort itself. By this, I mean that the nodes will automatically be placed in the correct location. My current code is putting … | |
Hey all… I've been working with Xcode, and an Objective C text book, obviously trying to learn Objective C. When I follow along with the text and type the examples or even when I copy and paste, with out fail there are always several compilation errors. Regardless of how careful I … | |
import java.util.Calendar; import java.io.*; public class DayOfYear { public static void main (String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(isr); System.out.print("Enter the date (yyyy,mm,dd): "); String date = in.readLine(); Calendar cal = Calendar.getInstance(); String[] seperate = date.split(","); int year = Integer.parseInt(seperate[0]); int month … | |
this is my server code i want to receive more than 1000000 bytes ,so the data should be splited into many packets so i use loop to receive all data ,if i use like this server always wait for client even client sent all data to server ,my messsage is … |
The End.