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
J

jogisarge

@jogisarge
About
Posts
21
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Load Usercontrols in MVVM
    J jogisarge

    Hi @all, i know that there a many articles about my problem but i cant find a solution. I am new in WPF - MVVM and i try to understand the MVVM-Logic. So i made a little project to understand that. For my later apps i want to load UserControls dynamicly to my Window. In my StartView i have a Binding to the StartViewModel. (The Binding is in the APP.xaml)

    StartView app = new StartView();
    StartViewModel context = new StartViewModel();

    the StartView

    the StartViewModel

    namespace test.ViewModel
    {
    public class StartViewModel : ViewModelBase
    {
    #region Fields
    private UCStastistikViewModel _loadedControl;
    #endregion

        public StartViewModel()
        {
            LoadedControl = new UCStastistikViewModel();
        }
    
        #region Properties / Commands
        public UCStastistikViewModel LoadedControl
        {
            get { return \_loadedControl; }
            set
            {
                if (value == \_loadedControl)
                    return;
    
                \_loadedControl = value;
                OnPropertyChanged("LoadedControl");
            }
        }
        #endregion
    
        #region Methods
       
        #endregion
    }
    

    }

    UCStatistikView

    WPF wpf csharp wcf architecture help

  • build install with sql server 2008 Express
    J jogisarge

    Hello, i have an application written in C# with VS 2010 Prof and i am using SQL Server Express 2008. It is a client Server app but the Server (SQL-Server) coud run on a client. What is the best way to make an installation file which installs my app as a Server. That means i have to make a installation file which installs my app and sql-server Express 2008 and i need another installation which installs only the client. Or it is possible to make one installation file which asks to install the sql-server ? thanks so far jogi

    C# question csharp database sql-server visual-studio

  • sharepoint 2010 - rights problem
    J jogisarge

    hello, i installed sharepoint 2010 with sql-server 2008 on windows 7 64-bit machine for testing. now the installation is ok and the central administration ist on screen. if i try to open the service accounts (sorry its a german version and i dont know the text of the english interface) i get an access denied. the same comes if i click the server in configure server in farm. i use the user-account that is defined on the win 7 machine which is admin on win 7 and displayed in sharepoint as member of the farm-admins. also a message is shown that means that not enough memory is on the win7 machine. but the message shows not the partition c of my win 7 machine. it shows the partition d which is an recovery partition - why ? i hope somebody has some ideas where i can solve my probs. bye jogi

    SharePoint sharepoint database sysadmin testing beta-testing

  • datagridview cell color
    J jogisarge

    hi, can someone tell me how to change the color of a part of a string in a cell from a datagridview. for example if the text of a cell is "125/art" how can i show the "art" in red color ? i know, i can use the Richtextbox but i dont want to change the color of the complete text. thanks for your help jogi

    Windows Forms tutorial question help

  • 3 buttons in a datagridview cell
    J jogisarge

    Hello, i have a datagridview which shows a datatable per bindingsource. Now i want to make in every row three buttons in the last cell to give my users the possibility to delete, edit or print the row. Is this possible ? I want 3 buttons in one cell, not three columns. the Buttons should be little icons. thanks so far jogi

    Windows Forms question

  • stores files for my project
    J jogisarge

    Hello, i am using VS2008 and SQLServer 2005. my user should be able to store files/pictures in my app. what is the best way to save files like pictures at runtime ? where should i store them ? thanks bye jo

    C# question

  • print orders from different places
    J jogisarge

    Hello, i am very new to C# so please be patient. i am printing orders in my app. so i have a button which creates the printjob. the paper will be written in the Printpage-Event. now i want to have a function that gets th order-object as a parm and print it on the paper. the reason is, that an order must be printed on severall programm modules.

    private void btnDruck_Click(object sender, EventArgs e)
    {
    PrintDocument Druckjob = new PrintDocument();
    PrintDialog Druckermenue = new PrintDialog();
    PrintPreviewDialog Druckpreview = new PrintPreviewDialog();
    Druckjob.DocumentName = "Rechnung";

    Druckjob.PrintPage += new PrintPageEventHandler(Druckjob\_PrintPage);
    Druckpreview.Document = Druckjob;
    Druckermenue.Document = Druckjob;
    if (Druckermenue.ShowDialog() == DialogResult.OK)
    {
    	Druckjob.Print();
    }
    Druckjob.PrintPage -= new PrintPageEventHandler(Druckjob\_PrintPage);
    

    }
    void Druckjob_PrintPage(object sender, PrintPageEventArgs e)
    {
    Graphics g = e.Graphics;
    StringFormat lineFmtRight = new StringFormat();
    lineFmtRight.Alignment = StringAlignment.Far;
    g.PageUnit = GraphicsUnit.Millimeter;

    // Druckausgabe ...
    // Drucken ..
    
    g.Dispose();
    

    }

    bye jo

    C# csharp graphics

  • Textbox-formatting value using databinding
    J jogisarge

    hello @all, i use this code to format number values in a textbox:

    tbxProzentwert1.DataBindings.Add("Text", bs, "prozentwert1", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "#0.00#");

    I have no other Validation-Formatting in my prog. So the value will be formatted like 1 -> 1.00 0 -> 0.00 1.4 -> 1.40 thats ok. But if i write a character or leave the value blank, the focus will stick to the field. Now i have to put a 0 or any number i it to leave the textbox ... Is it possible to write a 0 to the value if the value can not be formated ? Bye jo

    C# question

  • debug sql with parameters
    J jogisarge

    sorry, i never did hat. can you give a example ?

    C# question database sysadmin debugging

  • debug sql with parameters
    J jogisarge

    Hi, i use VS2008 and SQLServer 2005. How can i debug a sql-statement, that includes parameters like this ?

    string sqlstatement = "INSERT INTO artikel (nr,text1,text2)" +
    "VALUES" +
    "( @parm1, " +
    " @parm2, " +
    " @parm3 " +
    " " +
    " )";
    SqlCommand sqlins = new SqlCommand(sqlstatement, con);
    sqlins.Parameters.Add("@parm1", SqlDbType.NVarChar).Value = var1;
    sqlins.Parameters.Add("@parm2", SqlDbType.Int).Value = var2;
    sqlins.Parameters.Add("@parm3", SqlDbType.Int).Value = var3;
    sqlins.ExecuteNonQuery();

    so, how can i see the statement, that will be sent to the sql-server ? bye jogi

    C# question database sysadmin debugging

  • bind property to selected row from datagridview
    J jogisarge

    Hi, i have a Datagridview that shows a list of customers (List<customer>). Now i have a property named selectedCustomer. How can i bind the property to the selected row of my datagridview ? bye jo

    C# question sales

  • databinding + INotifyPropertyChanged
    J jogisarge

    Hi, i have a class "user" that implements INotifyPropertyChanged. with databinding i bind a objekt user1 to textboxes on a winform. If i change the properties from user1, the textboxes will be updated. Now i have a function that returns an objekt(user). user1 = getuser(); -> no changes in the textbox. with debugging i see, that the setter was not called. How can i get this done ? i want to see the returned data in my textboxes. bye jo

    C# question

  • global logininformation
    J jogisarge

    Hi, i have an application with my own Login-System. When a user starts the app and loggs correct in,i want to store user-data in a class "Logininformation". i have to access the Logininformation class in many other forms. How could this be done ? I know that global Vars are not allowed in C#, but how can i get this problem done ? bye jogi

    Windows Forms question csharp help

  • access element on usercontrol
    J jogisarge

    hi, i have a datagridview on a usercontrol "products" hosted from a form "productsform". my grid shows a dataset by using a bindingsource bsproduct with nearly 500 records. by clicking a row in the grid i want to show a detailform "productdetailform" with a usercontrol "productdetails" that has textboxes and displays the values. after changing the data, the row in the dataset should be updated, and the productdetailform should be closed. how can i handle this ? i thought i can deliver the bindingsource bsproduct to the productdetailform and bind my controls to the Usercontrol productdetails. delivering the bindingsource to productdetailform is ok, but how can i access the bindingsource in the code of the userontrol productdetails ?? bye jo

    Windows Forms question css

  • show detailfrom from datagridview
    J jogisarge

    Hi, i show products in a datagridview with a dataset as source. now i want to show a detailform by clicking a datagrid row. the changes in the detailform should be transfered to the dataset an shown in the datagrid. how could this be handled ? i use C# with VS2008 by jogi

    Windows Forms csharp question

  • Databinding - bind textbox and datagridview
    J jogisarge

    Hi, i want to show in a textbox the value from a selected row in my datagridview.

    DataSet dsHersteller = new DataSet();
    BindingSource bsHersteller = new BindingSource();

    dsHersteller = herstellermanager.GetList(); // - delivers a dataset
    bsHersteller.DataSource = dsHersteller.Tables["producer"];
    bsHersteller.Sort = "producer_id";
    dgvHersteller.DataSource = bsHersteller.DataSource;

    tbxHerstellerNr.DataBindings.Add("Text", bsHersteller, "producer_id");

    Now, when i start the app, the value of the textbox is the first row in datagridview. If i select another row, nothing changes in my textbox. I thougt, i bound the textbox to the grid ?? Can anybody give me tips for my problem ? By jogi

    WCF and WF css help question

  • change menustrip
    J jogisarge

    Hi, i want to change the colors of a menustrip(VS2008). i changed the backgroundcolor and the textcolor with the designer. the background is black and the text is grey. it looks nice but if i hover over the menu, the submenu pops up and the style looks like the standard style. How can i change the colors of the menuitems too ? bye jo

    WPF question

  • 3tier - dataflow
    J jogisarge

    Hi Thomas, thanks for your help. I made it like you described. Now i have a list(List) of customers (like your example) in my grid. How can i write the changed Data from the grid back to the DAL ? Can i Update the grid in one Step ? Or do i have to get the changed rows and update every changed row per code ? bye jogi

    C# question css database design architecture

  • 3tier - dataflow
    J jogisarge

    hello, i try to learn the 3tier-architecture But there are a few question: 1.How can i fill a datagridview in my UI. the grid should be filled by a dataset. user can change the data in the grid. How could this be realized ? a) The DAL returns a dataset to the BAL and the BAL forwards the dataset to the UI? b) The DAL returns a datatable to the BAL and the BAL creates a dataset and forwards it to the UI? c) other? 2.How can i update the database ? That should be realized with the DataAdapter, right? bye jogi

    C# question css database design architecture

  • forms or usercontrols or panels or what ?
    J jogisarge

    Hi, i try to explain. a mask is a window. My Programm should have a module stockmanagement with 3 Forms/windows. And a module suppliermanagement with 3 Forms/windows.

    C# csharp help question
  • Login

  • Don't have an account? Register

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