User Profile

Collapse

Profile Sidebar

Collapse
babai28
babai28
Last Activity: Apr 18 '11, 02:46 PM
Joined: Jul 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • babai28
    started a topic WPF(MVVM) Dispatcher object question
    in .NET

    WPF(MVVM) Dispatcher object question

    Hi,
    I am writing a WPF(MVVM) application that would run a process in a background thread.
    Here is the particualr method that is running on a different thread than the UI thread.
    Code:
     private void ExecuteAsync()
    {
     IsRunning = true;
     for (int i = 0; i < 1000; i++)
     {
         App.Current.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(
     () => TheTextCollection.Add(string.Concat(string.Format("{0}
    ...
    See more | Go to post

  • babai28
    started a topic INotifyPropertyChanged Question.

    INotifyPropertyChanged Question.

    I was really excited when I learned the usage of INotifyProperty Changed interface. It made binding a bliss and the UI highly interactive and dynamic for me. But then with every problem comes a solution and more problems.
    I will explain my question with an example. I have a student class.
    Code:
    public class Student : INotifyPropertyChanged
    {       
            const int MINIMUM_AGE = 1;
            int rollNumber = 0;
    ...
    See more | Go to post

  • babai28
    started a topic Crystal Report Viewer group tree hiding Issue!

    Crystal Report Viewer group tree hiding Issue!

    Hi,
    I wish to hide the group tree of the crystal report viewer programatically .
    Intellisense denied any "DisplayGroupTr ee" property of the control!
    A little googling yielded the fact that in VS 2008 the "ToolPanelV iew" property serves the purpose.
    The intellisense denied even this property.
    I am using VS 2008 and the build is with target 3.5 framework.
    I feel betrayed.
    Please help!...
    See more | Go to post

  • babai28
    started a topic Crystal Report.Net Image Question

    Crystal Report.Net Image Question

    Hi There,

    I have a need of displaying simple static image in my report which will be hosted in a WINFORM crystal report viewer.
    I have no requirement of loading dynamic images or anything.
    I tried googling which yielded results of only loading dynamic images.
    I am using a typed dataset for runtime supply of data to the report. And adding another table for the same report apeared a hazy and bad idea.
    I am...
    See more | Go to post

  • Hi All,
    Thanks for your replies. The problem is solved
    by setting the datagridViewCol umn wrap mode property to true.
    Thank you once more.. all of you..
    See more | Go to post

    Leave a comment:


  • While googling I found that even these fields don't help.
    See more | Go to post
    Last edited by babai28; Jan 25 '10, 12:54 PM. Reason: Grammatical error

    Leave a comment:


  • New Line character storage in ntext field in SQL 2000

    Hi there,
    I have a multi line text box in a data entry form. The data entered in this field is being stored as ntext column in a table.
    This data is visible in other form in DataGridView. Where the newline character is replaced by ugly, obnoxious "squares". I remember having used this with oracle blob column where it did not create a porblem.
    Agagin when this fetched in a multiline textbox for editing purpose it displays...
    See more | Go to post

  • babai28
    started a topic About WPF!
    in .NET

    About WPF!

    Hi,
    I am a novice in WPF. Though I have a good hands on experience in Windows Programming with C#.Net 2.0. now I think its time to move to WPF or atleast start!
    I googled a lot and got the idea of the capability of WPF.
    I have VS 2008 with .net framework 3.5 (No service Pack).
    I am interesetd to know about WPFTool Kit. What is it? How to add it to my project? And how to apply themes in amy APF page? Do I need to have SP1...
    See more | Go to post

  • babai28
    replied to Data Structure help required.
    Data Structure help Required

    Thanks tlhintoq and Thank You Gary for your ideas. I think I have got the idea.
    manipulating the List/Hashtable with every alarm event is the need.
    Also this will save me from initiating the background thread for every timer tick.

    Regards,
    Sid
    See more | Go to post

    Leave a comment:


  • babai28
    started a topic Data Structure help required.

    Data Structure help required.

    Hi there,

    I have a situtation, I am on my way to build an alarm application which will run in the background and will intimate the user for an event which he had set before. Exactly what a scheduler or alarm clock does.
    I will explain the design in short here. I maintain the tasks set by the user in a list of "Task" class. With every tick of the timer I initiate a background thread that will poll the task list to...
    See more | Go to post
    Last edited by babai28; Oct 21 '09, 09:48 AM. Reason: Forgot to add thanks

  • babai28
    replied to Running sgen.exe
    Hi Ian,
    Thanks for the reply. I have visited botht he pages below. The sgen.exe tool normally runs as a command line application. In which we need to type


    I could not get how to do this through c# code.

    Regards,...
    See more | Go to post

    Leave a comment:


  • babai28
    started a topic Running sgen.exe

    Running sgen.exe

    Hi All,

    I have some dlls placed in a directory.
    I need to run the sgen.exe (the vs2005 tool for xml serialization) on that folder to generate on single serialized dll. I have to accomplish this task through c# code.
    I am not clear about the arguments that I need to pass to the process.
    I need to run the exe from my code. Can any one guide me about what parameters to pass. On searching in the internet I found a...
    See more | Go to post

  • babai28
    started a topic Xml Declaration in C#

    Xml Declaration in C#

    Hi All,

    I have a situation in which I need to write the XML Declaration of an XmlDocument (that I am creating) from a hard coded text.
    How to acieve this? I have tried with the inner text property of XmlDeclaration node etc. but it is throwing errors. Please guide.
    I am using C#, however if you can show me the VB way I can very well appreciate that.
    Thanks for reading my problem.

    Regards,
    ...
    See more | Go to post

  • babai28
    replied to reading values from strings
    try this code:

    Code:
    try
                {
                    ushort num;
                    int counter=-1;
                    string line = "1 12 15 12 8 21";
                    string[] str = line.Split(' ');
                    ushort[] Numbers = new ushort[str.Length];
                    foreach(string piece in str)
                    {
                        counter++;
    ...
    See more | Go to post

    Leave a comment:


  • babai28
    started a topic Bound Data Saving Problem in Access 2003

    Bound Data Saving Problem in Access 2003

    Hi All,

    I have an Access Db Table Called Employees. The columns are as follows:

    1. EmployeeId (Autonumber) PK
    2. EmployeeName (Text)
    3. EmployeeRole (Test)
    4. DateOfJoining (DateTime)


    I am displaying the data in a simple DataGridView in a winform by using the following code:

    Code:
    da.Fill(ds,"Employee")
    where da is the OledbDataAdapte r and ds is the DataSet.

    ...
    See more | Go to post

  • babai28
    replied to Update a list box
    Hi,

    When I gave you the code to display the data in a dataGridView ComboBox I wrote the following piece of code (You may go back and check the code in details) :

    Code:
    listCol.DataPropertyName = "CategoryId"; 
                    listCol.DataSource = ds.Tables["Category"]; 
                    listCol.DisplayMember = "CategoryName"; 
                    listCol.ValueMember = "CategoryId";
    ...
    See more | Go to post

    Leave a comment:


  • babai28
    replied to Update a list box
    No join required, joins are ususally used to select data from tables, rather put a button called "Save", on click of which you may use the Update Method of the DataAdapter.
    But before that define the Update Statement of the Adapter.

    All the best.
    Regards,
    Siddhartha
    See more | Go to post

    Leave a comment:


  • babai28
    replied to Update a list box
    Hi,

    If it is like you get the combobox items (of the ComboBoxColumn) from the category table and the other contents of the gridView from the "Transactio n" table, you may bind the dataGridView to the "Transactio n" table and just use the "DataAdapter.Up date()" method.
    It will be simple to use with minimal code.
    However note that you need to have a primary key in the table on which you wish...
    See more | Go to post

    Leave a comment:


  • babai28
    replied to Update a list box
    In object oriented programming (especially when dealing with UI applications) a lot is guided by the events.
    Events are raised whenever user responds to the UI. For examle a button click is an event, item double click of a listbox was an event which we handled. .Net has ready made events for controls which you can handle, considering the exendibility that microsoft always provide, you can also create your events and handle them.
    You...
    See more | Go to post

    Leave a comment:


  • babai28
    replied to Update a list box
    Btw, when are you showing the data in the datagridview and when are you showing it in list box?
    I smell some ambiguity in your approach, how are tyou displaying the data?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...