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
C

cppwxwidgetsss

@cppwxwidgetsss
About
Posts
27
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • view box make everything big!!!
    C cppwxwidgetsss

    I have designed a grid to have a clock it is designed rather carefully, to have the capability to resize but now that i added my Viewbox to the grid the whole clock become larg what is wrong with that just take a look please <Window x:Class="GridResizeFontChange.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid TextBlock.FontSize="10"> <!--<Viewbox Stretch="Fill" MaxHeight="200" MaxWidth="200" HorizontalAlignment="Center" VerticalAlignment="Center">--> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="13*"/> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="37*"/> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="50*"/> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="50*"/> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="37*" /> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="13*"/> <ColumnDefinition Width="auto" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="13*"/> <RowDefinition Height="auto" /> <RowDefinition Height="37*"/> <RowDefinition Height="auto" /> <RowDefinition Height="50*"/> <RowDefinition Height="auto" /> <RowDefinition Height="50*"/> <RowDefinition Height="auto" /> <RowDefinition Height="37*"/> <RowDefinition Height="auto" /> <RowDefinition Height="13*" /> <RowDefinition Height="auto" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.Column="6" >12</TextBlock> <TextBlock Grid.Row="2" Grid.Column="4" >11</TextBlock> <TextBlock Grid.Row="4" Grid.Column="2">10</TextBlock> <TextBlock Grid.Row="6" Gr

    WCF and WF css wpf com question

  • WPF, Serial Port, MutliThreading
    C cppwxwidgetsss

    actually we have a bus-like serial port which means that we use the serial port in share with lots of microController and as the protocol is implemented before, we have not any mean to find out which device is sending a message (it is not expected before in protocol) so that I think this is a multithreading problem if someone have useful info help me please

    WPF csharp wpf hardware help question

  • WPF, Serial Port, MutliThreading
    C cppwxwidgetsss

    Hi I am working on a project in which Computer interact with some Microcontroller Computer sends some commands in a particular protocol, and receive some data in turn There is a problem: we have lots of Microcontroller connected to a computer via serial port, because serial port is another thread, we send command from computer but we don't know when exactly we receive the response of MicroController as we have lots of MicroController connected to computer, we can not have lots of delay for each command sending so I used a Interrupt based (Event Oriented) code, but you suppose I send a command to a MicroControler , but don't wait for response and send another command to another MicroController, ... at the other hand , we are receiving some data, that they are the responses the problem is here: we can not distinguish which response belong to with MicroContoller is there a solution for this problem? is it a multiThreading problem?

    WPF csharp wpf hardware help question

  • Executes a delegate on the thread that owns the control's underlying window handle
    C cppwxwidgetsss

    thank you very much I was really confused

    WPF csharp wpf com help question

  • Executes a delegate on the thread that owns the control's underlying window handle
    C cppwxwidgetsss

    Hi I want to use this lovely code in a WPF app but there is no Invoke method for WPF's TextBox so I have a run time error which say that the SerialPort's Thread is trying to change the TextBox that owns to another thread anybody have any idea? here is the code(article), I am talking about: http://www.codeproject.com/KB/cs/virtualports.aspx?msg=3291065#xx3291065xx

    WPF csharp wpf com help question

  • Right to Left Comments
    C cppwxwidgetsss

    Is there any Way to have some Comments in Right to Left Languages If there is please tell me

    C#

  • Strange Compile error , my Project Assemby cannot be found
    C cppwxwidgetsss

    Error 2 Assembly 'lab1' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. D:\wpf\lab1\lab1\Window1.xaml 4 18 lab1 I am using the following code in order to use my user control in my project but the error mentioned before occurs : xmlns:local= "clr-namespace:lab1" PS: my Project and also Solution Name is lab1 so i am referencing to my project please tell me what should I do, thank you

    WPF wpf csharp dotnet help

  • (WPF) If Xaml That powerful? in real? [modified]
    C cppwxwidgetsss

    HI ALL I was considering and trying to Import sophisticated Designs as Xaml in a Project of WPF I was Working with AI and also Tried MS Expression Design ========== 1) about AI I tried to use a Plug-in to export Xaml files, but when you have complicated images it just change that image to a simple image , I had a 3D effect on my Design , but it was simplified by the plug-in i used and just a very simple image had been made ========== 2) about Expression Design It didn't have any Effect, the only thing that you have is Gradient, as I saw and it is not enough to have a professional design ============= Conclusion: I think The Xaml or at least Xaml Generator are not that powerful to produce complicated, professional designs ================ I want to tell me if it is really rigt or wrong and if I had mistake in part 1 and/or 2 tell me if there are other tools, plug-ins , and etc Thank you Am I banned to write message? Does anybody see my post? or is there any problem that I don't get any answer?

    modified on Wednesday, July 15, 2009 5:28 AM

    WPF wpf csharp design tools help

  • Eliminating The standard shape of a bitmap(actually xaml based) button, How to :)?
    C cppwxwidgetsss

    Hi I am new in WPF so in advance I apologize if it is just a simple question I have a vector based (actually xaml based) image in the resources and I want to have a button that just contain that image and I don't want to have a button that just contain that image ,I want a button that does n't have the traditional standard shape of a button, I mean I want a BitmapButton only a bitmap I want to appear instead of button , nothing else I have a code that do this but still show that standard view that I don't like Please Tell me what should I do to eliminate that. Thank you P.S Here is the code:

    <Button Grid.Row="5" Height="75" Width="220" Padding="2" >
    <ContentControl Template="{StaticResource Credit-Card}" />
    </Button>

    WPF wpf graphics question csharp css

  • GDI+, problem with Invalidate() method
    C cppwxwidgetsss

    Hi, I have a form that is designed by GDI+, it has some buttons(images) I want to change the button when the mouse is over the button so I handled the MouseMove event with the OnMouseMove and I calculated if the mouse is in the button region , after that if it was, I call the method Invalidate() so that the button should be repainted but the problem is that the Program runs very slowly, and you can see the mouse movement in slow motion, when I comment the Invaliate() method in the code, everything is good, I also checked the code with an empty method of OnPaint() so that the problem is not because of OnPaint() but Invalidate() by the way i am using the Double Buffred Form I am confused somebody help me thank you P.S: here is the whole code: From1.cs

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace paintImage
    {
    enum ButtonState
    {
    NotSelected,
    Blue,
    Green

    }
    public partial class Form1 : Form
    {
        ButtonState Language = ButtonState.NotSelected;
        private bool MouseOutLanguageTraining = false;
        private bool LanguageTraining = false;
        private bool MouseOnLangugeTraining = false;
        Rectangle LanguageButtonPosition = new Rectangle(774, 617, 218, 42);
        //private Point MouseClickPosition;
        //private readonly Brush TextBrush = Brushes.White;
        //private readonly Font ButtonFont = new Font("alefba", 18,FontStyle.Bold);
        
        readonly Image piccy;
        readonly Image ButtonSelectedBlue;
        readonly Image ButtonSelectedGreen;
        readonly Image ButtonNotSelected;
    
        private readonly Point\[\] piccyBounds;
        private readonly Point\[\] LanguageButtonBounds;
        public Form1()
        {
            InitializeComponent();
            piccy = Image.FromFile(@"C:\\pics\\page12.png");
            ButtonNotSelected = Image.FromFile(@"C:\\Pics\\Button Not Selected.png");
            ButtonSelectedBlue = Image.FromFile(@"C:\\pics\\Button Selected Blue.png");
            ButtonSelectedGreen = Image.FromFile(@"C:\\pics\\Button Selected Green.png");
            AutoScrollMinSize = piccy.Size;
            piccyBounds = new Point\[3\];
            LanguageButtonBounds = new Point\[3\];
            
            const int resolutionX = 1024; //the x dimension of the display resolution
            const int resolutionY =
    
    C# graphics help csharp winforms linq

  • GDI+ how to not painting the background image [modified]
    C cppwxwidgetsss

    Hi, and thank you for your answer but unfortunately I eliminated the "e.base();" from the code but the problem wasn't solved I am trying the other option you mentioned

    modified on Saturday, June 20, 2009 8:29 AM

    C# graphics csharp visual-studio winforms linq

  • GDI+ how to not painting the background image [modified]
    C cppwxwidgetsss

    Hello everybody I have a Form and I use the GDI+ to have a User Interface I have a Button(just an image) that should be repainted when it is clicked and I use a flag at the mouse event handler to know when the button is clicked and in the OnPaint method I check it FIRST, and if the flag was True I don't paint the BackGroundImage, because it is painted before (at the startup of the Form) but I don't know why that BackGroundImage is gone when the event occures and only my button and the BackColor of the Form is shown =>>note: I don't want to use BackGroundImage because I think it will paint it all the times that the Form is repainted, and it is process intensive Thank you P.S: If you want to read this code better you can copy/paste it in VS.NET and select all the code and use CTRL + (K) then CTRL + (F) to format the code in a good format to be more readable here is the OnPaint method: protected override void OnPaint(PaintEventArgs e) { if (LanguageTraining) { //dc.FillRectangle(Brushes.White, new Rectangle(744, 617, 248, 42)); dc.DrawImage(ButtonSelectedBlue, LanguageButtonBounds); LanguageTraining = false; base.OnPaint(e); return; } base.OnPaint(e); Graphics dc = e.Graphics; dc.TranslateTransform(AutoScrollPosition.X, AutoScrollPosition.Y); dc.TranslateTransform(AutoScrollPosition.X, AutoScrollPosition.Y); dc.DrawImage(piccy, piccyBounds); dc.DrawString("Language Training", ButtonFont, TextBrush, new Point(755, 625)); } Here is all the code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace paintImage { public partial class Form1 : Form { private bool LanguageTraining = false; private Point MouseClickPosition; private readonly Brush TextBrush = Brushes.White; private readonly Font ButtonFont = new Font("alefba", 18,FontStyle.Bold); readonly Image piccy; readonly Image ButtonSelectedBlue; readonly Image ButtonSelectedGreen; private readonly Point[] piccyBounds; private readonly Point[] LanguageButtonBounds; public Form1() {

    C# graphics csharp visual-studio winforms linq

  • what is the best and more professional GUI designing?
    C cppwxwidgetsss

    Hi, I want to ask a question about GUI designing in C# I have a project to do , and it has only a few forms to show and it is very important to have a very special and also very beautiful GUI I want to know is it better to have a GDI+ and/or have a System.Drawing or/and it is better to have a custom Control help me please thank you all :-D

    C# question graphics csharp winforms help

  • Using STANDARD C++ within another Projects like C#
    C cppwxwidgetsss

    Thank you It would be better if you told me how to do that and again thank you

    C / C++ / MFC csharp c++ question visual-studio

  • Using STANDARD C++ within another Projects like C#
    C cppwxwidgetsss

    Hi I want to use a C++ program as a part of a project in C# and I know how can I do this when the program is Managed CPP But I want to know how can I include my Standard Cpp code in a C# project and I use Visual Studio 2008 and I want to know is there any template for creating a standard CPP project apart from the "Empty Project"? I appreciate your answers thank you :)

    C / C++ / MFC csharp c++ question visual-studio

  • Microsoft technologies Simplicity && illiteracy VS complication && professionalism [modified]
    C cppwxwidgetsss

    I have that kind of job but you know I have migrated to C# and I told my Manager some reason for migration and now I can not change what I did, you know thank you, that you remind me that good days that I was coding in CPP untill 9m, my love, and feeling good

    The Lounge csharp help c++ visual-studio linux

  • Microsoft technologies Simplicity && illiteracy VS complication && professionalism [modified]
    C cppwxwidgetsss

    I have that kind of job but you know I have migrated to C# and I told my Manager some reason for migration and now I can not change what I did, you know thank you, that you remind me that good days that I was coding in CPP, my love, and feeling good

    The Lounge csharp help c++ visual-studio linux

  • Microsoft technologies Simplicity && illiteracy VS complication && professionalism [modified]
    C cppwxwidgetsss

    maybe you are right but I am not talking about MFC I am talking about C++ standard itself with the strength of GUI designing of WXWIDGETS and i appreciate your answer

    The Lounge csharp help c++ visual-studio linux

  • Microsoft technologies Simplicity && illiteracy VS complication && professionalism [modified]
    C cppwxwidgetsss

    ya gimme a big hug thank you for your -> remainder but c# still thinks he is out of that but i have to use pointers in c# in that project, because of low speed of processing in an image processing part of that project ;)

    modified on Wednesday, May 6, 2009 7:29 AM

    The Lounge csharp help c++ visual-studio linux

  • Microsoft technologies Simplicity && illiteracy VS complication && professionalism [modified]
    C cppwxwidgetsss

    I used to working on a big project, with lots of code and with a lot of customizable GUI, the name of the platform i was using was "wxwidgets" and it was a platform that is based on C++ ,I was learning lots of things especially in visual programming and i could do whatever i wanted because of strength of c++ and the platform itself and it had got a handy dandy (and simple) help , it was just a chm file that i could find all i wanted simply there but i migrated to C#, (and i used to be familiar with the technology of .NET especially C#) but now i feel that C# say nothing about anything , it stay you away of the real knowledge of visual programming (especially and other base concept in general term) and i feel if you want to learn c# especially by the means of books and videos you will just learn a shell of all is happening under the hood and you still can not find exactly what you want or maybe somethings doesn't exist to be found I want to know if you all programmers agree with me or you are not thank you all especially some of you that tell me about your idea about the issue thank you'all and i am talking about the technology of Microsoft Co. why all are talking about my style of writing or literature ?

    modified on Wednesday, May 6, 2009 7:04 AM

    The Lounge csharp help c++ visual-studio linux
  • Login

  • Don't have an account? Register

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