Search results

  1. S

    Decimal value from database gets converted to int in app

    Hi all I am returning a decimal value from a stored procedure from my database to my vb.net app and in the application the value gets rounded off to integer. I have tried Cdec function and formatcurrency function but no luck. In the stored procedure I used the output statement and return...
  2. S

    Help ---Generate Report using richtext box

    Hi I am very new to reports...I want to have a sql query result to show as a report. I was trying to work with richtext and made a Word file with extention .rtf and then I was trying to replace the file with the sql query result. The following is the code. Any ideas are welcome Private Sub...
  3. S

    Help with form activation

    Hi This sounds very simple.I have a main form and another form is called from it. Right now I can just switch to any form( the main form and the called form when they both are activated). How can I make it possible that only when I close the child form I get the main form activated. Thanks for...
  4. S

    DataGrid binding problem

    Hello Everyone I am building a sales register with VB.NET and SQL. I have a datagrid which displays all the items to be sold. It is bound to a dataset. The grid Displays an item on a button click which passes the product Id. I can have multiple items displayed on the grid. Now the problem is...
  5. S

    DataGrid Problem

    hi everyone. i have some very simple questions about datagrid (VB.NET). How do we set the columns width. How do we set the columns Header text. I know we get the default column name from the database but how to show your customised name. thanks
  6. S

    Calling the local PC's property on to VB.NET form

    Hi, thanks a lot. this is a small line of code and works perfect.
  7. S

    Calling the local PC's property on to VB.NET form

    I guess the code above gives out the user login Info, not the computer's name. Any ideas on this vis781. Thanks
  8. S

    Calling the local PC's property on to VB.NET form

    Hey Thanks for repling. You gave me the idea and someone at work further researched on it and found the following code: Dim wi As WindowsIdentity wi = WindowsIdentity.GetCurrent() MessageBox.Show(wi.Name) with this code import the following namespace Imports System.Security.Principal and...
  9. S

    Calling the local PC's property on to VB.NET form

    Hi everyone I don't know if this is possible but I want to get the PC's name into .net Form. If you right click My Computer Icon and choose properties, you can get to computer's name. So, is it possible to do something like that. Thanks in advance for looking.
  10. S

    How to have Multiple Instances of a application

    Hello everyone I have a windows application. The app is a sales register for a business. Now I want it to support multiple instances of the app at different computers at same time. Any ideas how that is possible. I have heard about database locking(but dont know much about).... Also with that i...
  11. S

    Help with calling form

    Hi BadgerByte Thanks a lot. It works with your code.. I spent more than 4 hours on this problem...and I could not get it.. seems like you are pretty sharp.. thanks again... hey also if I have other question can I PM you..
  12. S

    Help with calling form

    Hi this is a very simple problem, but I cannot get over it. I have a grid on my main form(Inventory.vb) and the grid displays the items in the inventory table. I have a method "look" in the class, which takes the Product ID as parameter and this method selects the row in the grid, with the...
  13. S

    Help with adding a column to dataset or datagrid

    Hello everyone I have a application that displays products from my inventory table in the datagrid. I use a dataadapter to fill the dataset. Now every thing is fine but I want to add another column (say Row no.), which starts with value 1 and increment its value by one every time another row is...
  14. S

    Help with datagrid column

    Hey thanks a lot. It works now.
  15. S

    Help with datagrid column

    hi thnks fro replying. I am using a dataset. Do you know what property of dataset would do the task for me. thanks again
  16. S

    Help with datagrid column

    Hello everyone I have a datagrid which shows selected rows from my Inventory table. One of the columns in the datagrid shows the price of the item. How can I add the price column for the whole datagrid and display that in a label. Thanks in advance
  17. S

    Help with dataset and datagrid

    Greetings to everyone I am creating a sales application(sales register) and I am tring to show items from my database Inventory table to the datagrid. I put the "Item ID" in a textbox and that item appears in the datagrid by binding the data to it. My application works for just one item and I...
Top Bottom