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
D

Data_Dragon

@Data_Dragon
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to protect my project from multiple installations?
    D Data_Dragon

    A registry would only work on one machine, the original, installing a registry would not prevent them from installing it on another machine because it would not be present on that machine, a better solution would be to make a custom serial key as was said earlier, for that comp and it only, mabe with its IP address if the computer is never moved or other computer info, talk with the client first, and get the info, or hard code it into the code for custom perchases. Thats just one idea, if you can get the server varification of a one-time-use serial number that would be best, if you MUST stick with registry keys this: http://www.codeproject.com/KB/system/modifyregistry.aspx[^] might help... best of luck!

    C# sysadmin tutorial question

  • Simple screensaver crashing
    D Data_Dragon

    i am rather new to C#, i am switching from java, i followed through with a baisic c# screensaver tutorial, then i tried to add a picture and make it bounce around the screen. i added a picture box set to a picture(LM), i made a loop to make it move, then tried to figure out how to start it, i added it the end of load. this is probably extremely noobish and i am sorry,but if someone would help thatd be great

    //Form1.cs--------------------------------------------------------------------

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

    namespace ScreenSaver
    {
    public partial class Form1 : Form
    {

        private int screenNumber;
        private Point MouseXY;
        int curX = 1;
        int curY = 1;
        Boolean running = true;
    
        public Form1(int screen)
        {
            screenNumber = screen;
    
            InitializeComponent();
            this.run();
           
        }
        private void form1\_Load(object sender, System.EventArgs e)
        {
            this.Bounds = Screen.AllScreens\[screenNumber\].Bounds;
            Cursor.Hide();
            TopMost = true;
           
        }
        private void onMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (!MouseXY.IsEmpty)
            {
                if(MouseXY != new Point(e.X,e.Y))
                {
                    running = false;
                }
                if(e.Clicks >0)
                {
                    running = false;
                }
            }
            MouseXY = new Point(e.X, e.Y);
           
        }
       public void run()
        {
                while (running)
                {
                    loopMove();
                    Thread.Sleep(1000);
                }
    
                Close();
        }
    
        private void LM\_Click(object sender, EventArgs e)
        {
    
        }
        private void changeLMY(int y)
        {
            LM.Left += y;
    
        }
        private void changeLMX(int x)
        {
            LM.Top += x;
        }
        private void loopMove()
        {
            int fX = this.Top;
            int fY = this.Left;
            if (LM.Top >= fX - 300)
                curX = -1;
            if (LM.Top == 0)
                curX = 1;
            if (LM.Left >= fY - 300)
    
    C# tutorial csharp java graphics help
  • Login

  • Don't have an account? Register

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