Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Krishna Aditya

@Krishna Aditya
About
Posts
55
Topics
35
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to uncheck the select all checkbox if anyother checkboxes in unchecked...in WPF??
    K Krishna Aditya

    Hi, I have 3 check boxes.. 1.select all 2. team1, 3. team2. If i check Select all , then all the 3 check boxes should be checked. If I unselect team1 or team2 after i have checked selectall, then selectall should be unchecked and team1 and team2 still be checked. --> on select all, all 3 should be checked.. --> on unchecking either team1 or team2 after checking select all, then select all shuld be unchecked. --> individual checking is allowed. I am able to do for the select all but not successful in the second half. Please help me. Thanks Ramm

    WPF csharp wpf help tutorial question

  • How to select File Menu Items using Keyboard in WPF and C#?
    K Krishna Aditya

    Hi, I am developing a WPF UI application . I have a menu on top of the screen, which has File, Help menuitems. In file -> Backend features (shortcut key is ctrl + B), Exit (Ctrl + x) sub menu items. when clicked on any sub menu item, the corresponding window opens. So, with out using mouse, by pressing ctrl + B or Ctrl + x, how can the window be opened?? Also, how can I display a small line below the "F" in the File so that when user presses Alt + F, the File menu should be visible. I am working on WPF using C#. Please guide me. Thanks Ramm

    WPF csharp tutorial question wpf design

  • Implementing stop functionality for downloading data from db in WPF app in MVP
    K Krishna Aditya

    Thanks Christian for the inputs. so, the progress bar progress should be captured based on the total time it takes to download? Add all the files downloading time and show it in progress bar as whole?? MVP is Model view presenter. earlier we have Model-View-viewModel...and instead of MVC, we can use MVP architecture too. Presenter has the ways of presenting the user requirements. Thank You, Ramm

    WPF database architecture csharp wpf help

  • Implementing stop functionality for downloading data from db in WPF app in MVP
    K Krishna Aditya

    Hi In my WPF windows app, with MVP architecture, I have to download data from database into excel sheet with DOWNLOAD button. I have an another button STOP which has to stop the current process of downloading . Say, for eg: I have data to download into 5 excel files, after a min or so, if i click stop button, it shuld stop at the point of downloading and by this time if it had copied to 2 files, then it should remain.. I am trying out for 1. The click of Download btn should start downloading(now its happening.. corrctly..) . But When i click stop it should stop at the point of downloading and retain the data... 2. Also, I have added an wpf progress bar.so the downloading of hte data should be linked with the progress bar data.. i mean if ti takes 170 secs to download from db, the progress bar should display the status of it.. Kindly help me. Thank you, Ramm

    WPF database architecture csharp wpf help

  • How to add text to the GridView in wpf?
    K Krishna Aditya

    HI.. Thanks for the help. But I am doing this using subscribe and publish.. public class LogWindowMsgShowEvent : CompositePresentationEvent<string>       {       }                   _eventAggregator.GetEvent<LogWindowMsgShowEvent>().Subscribe(this.ShowMessage);                _eventAggr.GetEvent<StatusBarMsgShowEvent>().Publish("Database Connection Error"); so, in CompositePresentationEvent&lt;string&gt; I can see a string here.. do I need to add the class Logwindow to the CompostePresentationEvent?? Actually both the CompositePresentationEvent and the presenter it accesses are in diff modules... HOw to handle this/ Please help Thanks Ramm

    WPF wpf csharp css wcf design

  • How to add text to the GridView in wpf?
    K Krishna Aditya

    sorry.. really I couldnt get u.. actually as I have 2 columns Message Name and Datetime in my design, yourListOfMessages will be   1. _eventAggregator.GetEvent<StatusBarMsgShowEvent>().Publish("Click on Save to save the Log window Details"); ------------ to be assigned to column1 2 . DateTime.now   ----------- to be assigned to column2... I think I am not getting you wat U said.. but I am expecting this.. in my logwindow --------------------------------------------------------------------------------- Message                                                               DateTime Click on Save to save the Log window Details      09/08/2009 12:15:20AM -------------------------------------------------------------------------------- Thank you, Ramm

    WPF wpf csharp css wcf design

  • How to add text to the GridView in wpf?
    K Krishna Aditya

    Ya.. But its not displaying the text in 2 columns/. I added DataContext..                   lstViewLogWindow.DataContext = lstViewLogWindow.Items.Add(DateTime.Now); how to add this to a particular header like DateTime <pre>         <GridView>                                                                                                             <GridViewColumn Header="Message Name" Width="Auto" DisplayMemberBinding="{Binding Path= Message_Name}" />                                     <GridViewColumn Header="DateTime" Width="Auto" DisplayMemberBinding="{Binding Path= DateTime}" />                               </GridView></pre> Pleaes help Thanks Ramm

    WPF wpf csharp css wcf design

  • How to add text to the GridView in wpf?
    K Krishna Aditya

    Hi, I am developing an UI app, in WPF, for the Log window, I have xaml code <ListView x:Name="lstViewLogWindow" ItemsSource="{Binding}" Height="152"> <ListView.View> <GridView> <GridViewColumn Header="Message_Name" Width="Auto" DisplayMemberBinding="{Binding Path= Message_Name}" /> <GridViewColumn Header="DateTime" Width="Auto" DisplayMemberBinding="{Binding Path= DateTime}" /> </GridView> </ListView.View> </ListView> So, I have a grid view with 2 headers Message_Name and DateTime, and I want to assign the data to the 2 columns... I am not able to get the data displayed by using lstViewLogWindow.Items.Add(msg); Actually I want to add some msg into First col and date time into second column, Please help me in doing this. Thanks Ramm

    WPF wpf csharp css wcf design

  • How to handle Refresh and Reset in WPF application in MVP application [modified]
    K Krishna Aditya

    Hi, I am developing an windows UI application in WPF with MVP architecture with C#. The application will interact to sqlserver and displays the data to the user. I have 2 buttons REFRESH and RESET. which refreshes the page and resets the page to the home page respectively. As I searched in few forums,navigationservice is recommeneded,but I couldnt see navigationservice.refresh() command Refresh should refresh the page (current page) and the reset should reset to the homepage as per my appication. Edited part:: My Xaml is inside Window, but not page. I think this is the main reason, I cant see it.. so , how to handle it for window?? Please help me in doing this. Thanks Ramm

    modified on Tuesday, September 8, 2009 12:53 PM

    WPF csharp wpf architecture design help

  • Usercontrol properties
    K Krishna Aditya

    Hi... An example in the Codeproject has this implementation. I am extracting from it and pasting it here. in XAML.cs, <pre>      private void CenteringSlider_LostMouseCapture(object sender, MouseEventArgs e)             {                   // change the size of the ellipse when slider value is change                   // for this example the slider max is 80                   // and the slider min is -80                   PlumEllipse.Width = PlumEllipse.Height = (100 + e.NewValue);             }             private void CenteringSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)             {                   // set a 500ms duration                   Duration returnToCenterDuration = new Duration(new TimeSpan(0, 0, 0, 0, 500));                   CenteringSlider.BeginAnimation(Slider.ValueProperty,                         new DoubleAnimation(CenteringSlider.Value, 0, returnToCenterDuration, FillBehavior.Stop));                   // set the slider value to zero                   //   otherwise the slider will return to the last postion after the animation                   CenteringSlider.Value = 0;             } </pre> Please search for the full project in codeproject itself. Thank you, Ramm

    WPF wpf tutorial

  • How to capture Child Name and the Parent Name in a tree view in WPF + MVP
    K Krishna Aditya

    Hello All, I am working on WPF application with MVP architecture. My question is : how to get the name of the selected node in a tree? Also, i need to get the name of the parent node that the selected node belongs to. Node1 A1 A2 A3 A4 Node2 A1 A2 A5 A8 Node3 A1 A2 A9 Asin the treeview, it has 3 nodes and each node having children. If I select the Child A2, from Node3, how can this be stored in a string? and also I should get the parent of this A2(which is Node3). So, on selection of A2 in Node3, I should have the names of A2 and its parent node. I am doing it in C#. Please help me. Thank You, Ramm

    WPF csharp architecture question wpf data-structures

  • How to handle Different Modules in MVP ??
    K Krishna Aditya

    I am designing an UI Application with WPF (XAML and C#). This application interacts with Database(sqlserver 2008) too. This app is a tool for the project. I have to implement this with CAB architecture and Model-View-Presenter(MVP). If I have functionalites like 1. Uploading data to database 2. Downloading data from database. then, My questions are : 1. What will Model, View and Presenter roles in these applications. How the interfaces between these modules happen? Is it I have to Create IModel (interface) b/w presenter and Model, IView (interface) b/w presenter and view? So, my codebehind will have only events calls (like btn_click) ?? Which module handles Database access? I know I asked lot of questions, but I have made the UI ready for the rest of the work flow . I am sorry if many questions are put in one place. I will be so glad, if I can get answers for all the things. Kindly help me. Thank you, Ramm

    WPF csharp wpf architecture database design

  • How to stretch the image of (1* 66 ) pixel
    K Krishna Aditya

    Hi Guys, I could solve it, <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" MinWidth="1" /> should be the other way width property <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" MinWidth="1" /> Thanks a lot Ramm

    WPF wpf csharp css design json

  • How to stretch the image of (1* 66 ) pixel
    K Krishna Aditya

    Hi, In a WPF Application using XAML, I have 2 images, which needs to be oriental of horizantal. One is of width 784 * 66 and other is 1 * 66. while, design time, since my window is auto it shows properly, but during runtime, the window is of 1280 width... so, the image 1 * 66 should stretch and cover the rest (1280 - (784 + 1)) |____________________________|_| should become |____________________________|_______________________| which means , my firstimage should have the same width (784) and the second image should stretch to cover the rest even though its only one pixel. <Grid HorizontalAlignment="Left" Height="66" Name="grdTopImages"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" MinWidth="1" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="66" /> </Grid.RowDefinitions> <Image Name="imgClientPhoto" Grid.Column="0" Grid.Row="0" Source="/Honeywell.eHTMP;component/Resources/_left.gif"></Image> <Image Name="imgExtraImg" Grid.Column="1" Grid.Row="0" Stretch="Fill" Source="/Honeywell.eHTMP;component/Resources/_right.gif"></Image> </Grid> Please help me Thanks Ramm

    WPF wpf csharp css design json

  • How to create a collapsible panel in WPF
    K Krishna Aditya

    Hi, I am creating a Windows application (WPF) and C#. In my view, I have to add few layouts like browsing a folder, displaying the files in the folder in a list view...etc My requirement is : The panels mentioned above should be collapsible panels, I guess, we dont have option of collapsible panel in wpf. I have to create a custom control for this? If so, Please suggest me how to do this? Thank You, Ramm

    WPF csharp wpf tutorial question

  • How to calculate the total memory occupied by the database
    K Krishna Aditya

    Hi D@nish, I executed the query, it showed, 1408 and 2768 without data in database. even with data it showd the same numbers. please help me. Thanks Ramm

    Database database sysadmin performance help tutorial

  • How to calculate the total memory occupied by the database
    K Krishna Aditya

    Hi, I am using sqlserver 2008, How can I calculate the total memory occupied by the Database with tables (>30) and also data in it. I mean if I have DB (DB_name) and with few tables(tblabc, tbldef......) with data in it, how to calculate the total memory occupied by the database in the server. Kindly Help me. Thanks Ramm

    Database database sysadmin performance help tutorial

  • Error while adding TreeNode in presenter.
    K Krishna Aditya

    Hi All, I am creating a windows app, with   MVP architecture. In presenter, I am adding nodes to the treenode, so in doing so, I am initializing                         <pre>TreeNode MainNode = new TreeNode();                         MainNode.Name = strProjectFolderPath;                         MainNode.Text = strProjectFolderPath;                         _view.AddTreeNodes(MainNode); </pre> I see the error, when I put a watch on MainNode, FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException' Actually I am trying to add items to this main node, so that I get the treeview from the folder. Please help me in solving this Thanks Ramm

    C# architecture help

  • How to establish link between Textbox and Button using MVP architecture and C#
    K Krishna Aditya

    Hi All, I am creating windows app, with MVP architecture.I added a textbox and button to the window.xaml, so that my intention is to browse a folder on button click and display the path in the textbox. If I select MyDocuments in browse click, then the entire path (C:\\Documentsandsettings\....\MyDocuments) should be displayed in the textbox. I am new to MVP and as of now 1 . window.xaml with textbox and button 2. presenter class (windowpresenter.cs) 3. Interface class (Iwindow.cs) are created . But, I am unaware of how to link these controls and how to use publish and subscribe these controls. Please kindly help me in doing this. Thank You, Ramm

    C# architecture csharp wpf help tutorial

  • Help needed on selecting reporting tool (like crystal reports) for windows and web app
    K Krishna Aditya

    Hi All, I am searching a reporting tool for windows app   & web app, which access Sql server DB. I am using C# coding. I am interested to do the following things: 1) a reporting tool that produces dynamic reports 2) users can select their own default view according to the information they wish to access immediately( i mean user dependant selection...like select a parameter in the application and he should be able to generate the report for that. If he selects, stocks on today date, he should get the list of all stocks and should be able to generate the report. 3) Users can independently modify or create reports 4) Reporting tool must provide security to either groups or individual, so that only those with the rights to view certain reports have access to them Can someone please point me in the right direction? I am sorry if I have requested for more insight to the reporting tool.But, I am a newbie in this and trying to work for the application. Thanks in advance for your help. Ramm

    WCF and WF database csharp sql-server sysadmin algorithms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups