blah blah blah is here! blah blah » Close

0
votes
2 answers

SQL Statement

Hi I'm doing a winform app with sql server 2008 in VS2008, where a company has parking lots for rent. It works like this, when a car arrives it gets a date of arrival. If this car never has been invoiced before my sql statement should g ...

0
votes
1 answers

Connectionstring in win forms

Hi In asp.net you can easily put the connectionstring to your database in webconfig file and use configurationmanager to reach it from different pages. Is there a similair way in win form applications? Let say I create a class and call ...

0
votes
1 answers

Sqlcommandbuilder update issue

Hi I need some help for updating my tabel, I'm using VS2008 winform with sql database. It's really very basic but still I'm stucked here, I have some textboxes and buttons on a form and by clicking the add button a new record will be ...

1
votes
2 answers

How to use LIKE statement SQL

Hi I'm doing a winform application and uses a gridview, a textbox and a button in VS2005. I'm trying to make a query that gives me all lastnames starting with the letter I enter in my textbox. It works for me to enter a complete lastname ...

0
votes
3 answers

Datetime problems

Hi all I'm doing a web application in VS2008 with Sql server database, and I do not seem to find a solution to my problem. I have two textboxes where I enter from date and to date, and when I push the button it will populate a couple o ...

0
votes
1 answers

Gridview question

Hi I have a gridview in my asp.net webapplication (I'm using VS2008) and from my sql server database it populates that gridview. I'm doing a time registration application and my columns are "date" "time beginning" &qu ...

0
votes
2 answers

Dropdownlist binding asp.net

Hi I'm doing a web application in VS2008 (C#), and I got stucked. I have a webform with 1 dropdownlist for collecting the first names of the employees, and then some textboxes where the user enter his data into. The user will select his ...

0
votes
1 answers

How to populate more than one listbox?

Hi all I'm doing a winform appl. in visual studio 2008, and I would like to know if someone can please help me? I have a sql server database and it's easy to bind for example all names from the database to a listbox, but what if I want t ...

0
votes
1 answers

Populate listbox from database

Hi I'm doing a winform application in VS2008 with a sql database, and I have 2 questions. First question is, is it possible to populate a listbox direct from a databinding? It doesn't work for me the way I'm doing it. Code sample here: ...

1
votes
1 answers

Read-only properties

Hi I'm doing a school work in a console application, I'm not sure if I maybe misunderstand the question. Here it goes: Create class Rectangle. The class has attributes length and width, each of which defaults to 1. It has read-only prope ...

0
votes
1 answers

Date and time in gridview

Hi I don't know if this is a big issue, but I don't seem to find a solution when I google around. I have a gridview and I want the users to fill in what date they worked and also what time they start working and end working. I've used dat ...

0
votes
1 answers

Syntax MySql 5.0 for update

Hi Does anyone know what syntax to use with Mysql 5.0, please look at my code sample below. [code] UpdateCommand="UPDATE Table1 SET Name= @Name, Address= @Address, Date = @Date, Info = @Info, Phone =@Phone WHERE Id =?" [/ ...

0
votes
1 answers

Using class.cs in form application

Hi all I'm trying to learn more about arraylist and how to use class.cs files, and I'm really stucked right now and would appreciate some help from you. I have a win form with 2 textboxes and 2 buttons and a few labels. I enter a surname ...

0
votes
1 answers

Need help with a algorithm

Hi all. I'm making a school work here and I'm stuck and need some help from you guys. This is a console application I'm working on. I need to enter 8 salesmen with socialnr city and how much they sold this month. After that it needs to ...

1
votes
1 answers

Use a class for recurrent code

I've been trying to write a class so I do not need to write my code many times in different pages. I'm doing an asp.net project in C# and I would like to have the day and the dates on top of my pages. Example Sunday 2009-12-20, but I like t ...

Feedback