|
That reminds me of one of the mistakes that I made when I was 8 or 9 years old when I was first learning to program and I read that you could make the computer sound in different "voices" (what they meant was altering the sound to emulate basic sounds like some instruments) and I tried to write code replacing the pitch variable with a string and then wondering why it didn't work and didn't say anything. (As luck would have it I got a speech synthesiser for my next birthday so I could get my computer speak some words)
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
That POS Sinclair had a speech synthesizer?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
POS: "Piece of Fill in your term for excrement here"
I can't complain really. I had an old Bally Game Console that had a BASIC cartridge with a WHOPPING 1.8K of RAM. Yes, your heard that right 1.8K. Ever try typing in programs with a keypad that looked like a calculator?
From there, I moved up to a TI-99/4A with a speech sythesyzer and the Expansion Unit that was bigger than 2 bread boxes and an additional 32K of RAM. Whoo Hoo! Those were the days!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I have been working in ASP.NET for a few months and i bought a few components.
I really like it because i get things done really fast and most of controls are really good.
Now i got a hit counter in http://www.codeproject.com/aspnet/fastcustomhitcounter.asp.
Is it possible to transform this code and use it as a control?
Can someone help me out? I never did something like this.
The code doesn't seem very complex.
Thanks,
Miguel
|
|
|
|
|
Try to read this article[^] or if it is possible you should buy this book[^] you extend your knowledge.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
i have a datagrid whose datasource is a datatable
now, i want to retrive the values of a particular cell of a datagrid. how can i do this
also i want to increment the position of currentrow by 1
how can i do it
sumit
|
|
|
|
|
For accessing values use the indexer of the grid:
Dim o As Object = myGrid(rowIndex, columnIndex)
For incrementing:
myGrid.CurrentRowIndex += 1
|
|
|
|
|
i want to retrieve the text written at the cell
how to use
"dim o as object" to get the text
also, can i make datagrid editable, so that user can write into it.
i basically want to do a insert operation
i have adatatable showing the table on my database db1.mdb
now i want that if user wants to insert a row , he simply types the values in the next row and pressses button "btn_insert". at click event of this event i want to insert the row which user had entered in the datagrid
plz help
|
|
|
|
|
In checkedlistbox checked items is stored in listbox that listbox items how can stored in database.
|
|
|
|
|
use this example
Try
Dim i As Integer = ListBox1.Items.Count
For i = 0 To i
Dim b As String = ListBox1.Items.Item(i).ToString
MsgBox(b)
//use this plce to save your data to the database
//ignor my Dim b As String = ListBox1.Items.Item(i).ToString
//MsgBox(b)
Next
Catch ex As Exception
End Try
this is another example to display a selected item
Try
Dim a As String = ListBox1.SelectedItem.ToString()
MsgBox(a)
Catch ex As Exception
End Try
|
|
|
|
|
i had made a project which has 2 forms in it
form1 and form2
in form1 i had made a "oledbconnection con" which is set public
now, i want to use its getoledbschematable method in form2
i want to display names of all tables in my database in form2 datagrid. con is my connection to that database which is in form1
i had also done "imports system.data.oledb"
in both forms
ds is my datagrid in form2
my code snippet in form2 is
dim f1 as new form1()
dim dt as dataset
f1.con.open()
dt=f1.con.getoledbschematable(oledbschemaguid.tables,new object(){nothing,nothing,nothing,"table"})
ds.datasource=dt
f1.con.close()
plz help
|
|
|
|
|
What is your problem ? How would you like us to help ? ESP ? Magic ? It's possible that the problem is that you've not called databind on ds, but who can say ? You've not said what the problem is, showed us the method you call, or anything else that would help us to help you.
Your code is pretty terrible in any case. Why are you putting data access code in a form ? Surely the fact you need to create an instance of a form to call a database method is a clue that you have an exceedingly terrible design happening here ( no design, more like ). You should not declare all variables at the top of a function, do it as you need them. Why don't you just not create an intermediate dataset at all ? In an ideal world, all of the above code should look like this:
ds.DataSource = MyWellDesignedDataAccessClassWithStaticFunctionsAndAStaticConnectionWithLazyInitialisation.GetSchemaTable();
ds.DataBind()
Man, non-case sensitive languages make me feel dirty.
I recommend you stop programming until you've read a book called Code Complete.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i want to use the connection of form1 in form 2
in form2 i want to display the schema of the table which user had eneterd in form1
for this i dont want to make a new connection
i form1 i had given user facility to browse any database file
based on that i will make connection(which is hidden from user. he just had to browse file)
now after selecting database, all the tables in that database will be apperared
when user clicksone of that table , form2 will be open in which he will be able to seehis schema
for this i want to use the same connection i had made in form1.
therefore i am using
f1.con.open() //f1 is form1 object
plz help me. i had made con (oledbconnection) public
|
|
|
|
|
sumit21 wrote:
plz help me. i had made con (oledbconnection) public
I tried to help you. To reiterate: your design is awful. When you create a NEW instance of Form1, it's not going to contain any data entered into the instance of Form1 that was on the screen, how can it ? you need to move data access into a seperate class, and if you need data from Form1, you need to store that somewhere, or at least pass it to Form2 on initialisation ( or give Form2 a copy of Form1, if you must, assuming it still exists ).
sumit21 wrote:
for this i want to use the same connection i had made in form1.
This is one more good reason to create a class for database connections, and have it contain a static connection object.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi All,
I want to do a small project(School software)as part of my curriculum.
Any ideas please....
Where i can found out.
Thanks in advance
|
|
|
|
|
A school project is not a small project
there are a lot of things to consider
1. How they register students
2.How student are admitted
3.Student categories
4.How Examination is conducted
5.How Examination is marked
6.How Examination is calculated
7.The formula for calculating the class score,exam score
see there are alot of this to conside
I prefer you develop a Library software(this is vsery simple)
|
|
|
|
|
Hi All,
I try to send email using vb.net but "Could not Access CDO.Message".
Can You help me ?
Best Regards
Bontiet Cavalera
|
|
|
|
|
i am the student at Nirma Institute of technology,Ahmedabad and i want to do some realy good project (such as hotel management system and other)
|
|
|
|
|
Go to rentacoder, then you can find some ideas, and even make $5 for your trouble.
What experience do you have to date ? What have you written before that will scale well into a bigger application ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I have two control,the first tabcontrol has a save button on it and the second usercontrol has a cancel this order button on it.When i click on the Cancel this order button i want to disable both the save button and also the Cancel this order button.What should i do as both buttons are from different control.
|
|
|
|
|
Hi all,
I have a problem here.The scenario is like this.
I'm using a datagrid to display the data that i've queried in the database. I've limit the row of the datagrid into 12 rows. Therefore, if i have received more than 12 data from the database,the data will displayed in multiple pages,so i have provide the forward and previous button in my screen for the user to see all the data that have been displayed.Besides, i'm also have provide the checkboxlist for each row of datagrid so that the user can check only specific data at one time.
My problem starts when a user has check one data at a different pages.It means how I want to populate the data if the user has check one data at the first page, one data at the second page and another data at the third page.How to gather all the data that have been checked first and then start to perform the transaction????
Can anyone help me give some guide.....
besah
|
|
|
|
|
I have windows form control bound to a business object. Upon initialization it displays the data from the business object in the text box as its bound. But when I update the vale in the text box the respective data member of my business object doesnt get updated.
Any suggestions please?
Thanks
|
|
|
|
|
Could some tell me how would I call an aspx page from a window form
|
|
|
|
|
Why do you want to do that ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|