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
Z

Zap Man

@Zap Man
About
Posts
25
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • javascript wtih LinkButton Confirmation box Formatting Text
    Z Zap Man

    lol I diffently should have seen that. Guess I was just having a brain fart. Thanks

    .NET (Core and Framework) question javascript

  • javascript wtih LinkButton Confirmation box Formatting Text
    Z Zap Man

    I have a gridview that displays a delete LinkButton. I also have a javascript confim box display before any action is taken. This works just find. What I want to do is insert a carrage return in the confim box. I thought that I could use "\n" but for some reason when I try this the confimation box does not display and the row is deleted. below is the function I have that is displaying the box.

    protected void SetDeleteButton(Object sender, EventArgs e) {
    LinkButton btn= (LinkButton)sender;

        btn.Attributes.Add("onclick", "return confirm(\\"Removing this Category will remove all Sub-Categories and Products tied to this Category. Are you sure you want to proceed? \\");");
    }
    

    I get what I want from this except the format of the text is not neat. I would like to center the text if possible. and I want a new line where its asking the question "Are you sure you want to proceed?"

    .NET (Core and Framework) question javascript

  • column headers not showing
    Z Zap Man

    ok Never mind. The headerText was not showing because I did not set the foreColor in the column that was not to be visible.

    C# help question

  • column headers not showing
    Z Zap Man

    I have a datagridview with for columns. the datagridview is dinamically added. the 4th column is needed for an cellClick event so I have to have it. But I do not want to display it so I set the Visible property for that column to false. and it does not show. Cool right? Except in the process of making this column not visible the header text for all the columns dis appear; I could set the with of the DataGrid to chop off the last column so its still there but no one can see it. and this is probably what im going to do but was wondering if anyone had this problem or a resolution to this. Mike

    C# help question

  • load images dynamically in to sysetem resourses
    Z Zap Man

    ok I have given up on the wpf. I spent all day yesterday trying to install a trial version an kept reciving errors. And none of the links to install it actually work. So far im not impressed by it. I think I'll just stick to c# vs for now. probably will just be inserting some DirectX into the code to render my images as sprites. This should free up a little stress on the cpu. It sounds like there are alot of others out there using wpf but I think theres more that just got tired of all the crap and errors that I went through.

    C# graphics help game-dev question

  • load images dynamically in to sysetem resourses
    Z Zap Man

    ok I answered many of my questions. I downloaded a sample project that they had and yes they used tons of C#. a could other files that I could not open like vail. Im still searching for a download the link to blend isn't working so im still searching. lol Thanks again for all your help Mark.

    C# graphics help game-dev question

  • load images dynamically in to sysetem resourses
    Z Zap Man

    ok this is the information I need. Again Mark I say thanks. Have you used WPF? would all my code be transferable, meaning Im I going to have to learn a new language or does it render C#. Im looking at a few sites that give information on WPF but before I decide to transfer to it or something like it I need to know how fast I can implemt the application over. my app is finished and sold yesterday. I cant spend tons of time changing it over right now. maybe in a couple of months but not sure. The bad thing is if I kept up on things maybe I could have suggested WPF but instead I just did what I was told and never gave it a second thought.

    C# graphics help game-dev question

  • load images dynamically in to sysetem resourses
    Z Zap Man

    The system goes through a file and sets all parameters at that point. The graphics are read off several different files. at the time when starting the project. I thought that loading the Images into a Image variable would be faster than loading them into a string aka path. That way it would not have to go get the file then convert it over to an Image at the time of display. right now I have panels working as screens. when one screen is displayed the others remain at size(0,0). The panels are preset at when loading the program and all the controls that belong to the panel, where the images are sitting and what size. so when a new srceen is shown all it has to do is resize the panel to the correct size from 0,0. I understand that windows has to repaint all these when displayed but im just trying to speed it up. The whole program runs on images.

    C# graphics help game-dev question

  • load images dynamically in to sysetem resourses
    Z Zap Man

    my application requires me to load tons of images dynamically based on a path set at run time. right now I have something that looks like this.

    private Image mybtn;

    public Image MyBtn{
    get{return = mybtn;}
    set{mybtn = value;}
    }

    public static void SetButtonImage(string imgPath){
    MyBtn = new Bitmap(imgPath);
    }

    the problem is that the images are slow. Slow loading, slow reloading a hover image. I have found that if I use a pictureBox instead its faster but not fast enough. The question is, is there a was to load these in like a temp resouce file that will enable every thing to run faster. Im looking into using DirectX and load them as sprites but not sure if its really going to help much. Please Let me know what you all think. Mike

    C# graphics help game-dev question

  • While MouseDown
    Z Zap Man

    :thumbsup:Thank you Mark This is excatly what Im looking for. Congrats to you!!!:thumbsup:

    C# help com

  • While MouseDown
    Z Zap Man

    Look I am not looking for Critics. If you cant help then don't bother posting. I understand timers perfectly. My app has a timer which runs a massive about of code. I understand what the program is doing. I am looking for a way around it.

    C# help com

  • While MouseDown
    Z Zap Man

    yes it changes on the mouse down to true. but the mouse up event never fires because the loop has not finished. but it will change in the mouse up event. if the value never changed then I would have to set it to const or read only. A static variable will change. private means this variable is not accessible from another class. when the form is initialized the variable is set to false. When the mouseDown event is fired then the variable is set to true. This is working. the problem lies in the loop. Because it is in the loop the MouseUp event never executes.

    C# help com

  • While MouseDown
    Z Zap Man

    I am trying to do some events while the mouse button is down. Here is what I have private static bool IsKeyDown = false; private void button1_MouseDown(object sender, MouseEventArgs e) { IsKeyDown = true; while (IsKeyDown) { Winamp.Winamp.VolumeDown(); } } private void button1_MouseUp(object sender, MouseEventArgs e) { IsKeyDown = false; } The problem is when it hits the mouse down event It continues to run the while loop and does not hit the mouse up event. I don't want to use a timer to do this. I did see some code that I think will work better in my app but I cant seem to get it to work can some one please help. http://stackoverflow.com/questions/1152525/c-winform-looping-event-on-press-button[^] private bool mouseDown = false; private void buttonScrollUp_MouseDown(object sender, MouseEventArgs e) { mouseDown = true; new Thread(() => { while (mouseDown) { Invoke(new MethodInvoker(() => [DO_THE_SCROLLING_HERE)); Thread.Sleep([SET_AUTOREPEAT_TIMEOUT_HERE); } }) .Start(); } private void buttonScrollUp_MouseUp(object sender, MouseEventArgs e) { mouseDown = false; }

    C# help com

  • Using a Custom ScrollBar Within a TreeView C#
    Z Zap Man

    I have made a custom Scroll Bar somewhat like the one here How to skin scrollbars for Panels, in C#[^]. My Goal is to insert this control inside of a treeview and get rid of the standard scrollbar. I have been working and looking around for answers for two weeks. Could someone please help me out or at least point me in the correct direction Mike

    C# csharp com help tutorial

  • dynamically add a flash object to a C# desktop application
    Z Zap Man

    yep your right but the response did not answer my question. and if you were to read what I posted you could see that I did post with relevant code. I'm unsure of what creates the exception. its a generic error and leads to nothing to help be debug the problem. I was hoping that maybe someone else has done somthing like this or knows of any links that my help!

    C# csharp adobe help tutorial

  • dynamically add a flash object to a C# desktop application
    Z Zap Man

    I need to dynamically add a flash object to a C# desktop application. Could someone give me some overview on how to do this. I have been able to add it statically but when I go to try to create it dynamically I come up with unhandled win32 exceptions. Also I need the background to be transparent and having troubles with this too. Thanks for any help

    C# csharp adobe help tutorial

  • dynamically add Flash C# application
    Z Zap Man

    Heres what windows adds when you pull it into the form. private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HighCapacity)); this.timer1 = new System.Windows.Forms.Timer(this.components); this.myFlash = new AxShockwaveFlashObjects.AxShockwaveFlash(); ((System.ComponentModel.ISupportInitialize)(this.myFlash)).BeginInit(); this.SuspendLayout(); // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // myFlash // this.myFlash.Enabled = true; this.myFlash.Location = new System.Drawing.Point(39, 34); this.myFlash.Name = "myFlash"; this.myFlash.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("myFlash.OcxState"))); this.myFlash.Size = new System.Drawing.Size(192, 192); this.myFlash.TabIndex = 0; // // HighCapacity // this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.myFlash); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "HighCapacity"; this.TransparencyKey = System.Drawing.SystemColors.Control; this.Layout += new System.Windows.Forms.LayoutEventHandler(this.HighCapacity_Layout); ((System.ComponentModel.ISupportInitialize)(this.myFlash)).EndInit(); this.ResumeLayout(false); } I need to beable to load this dynamically. kinda like how I do this with a picture box foreach (object obj in sk.IMG) { imageButton = new PictureBox(); ImgButton imgBtn = (ImgButton)obj; arLocation = imgBtn.Location.Split(':'); arSize = imgBtn.Size.Split(':'); this.imageButton.Image = new Bitmap(imgBtn.PathOff); this.imageButton.Name = imgBtn.Name; this.imageButton.BackColor = Color.Transparent; this.imageButton.SizeMode = PictureBoxSizeMode.StretchImage; this.imageButton.Size = new Size(Convert.ToInt32(arSize[0]), Convert.ToInt32(arSize[1])); this.imageButton.Location = new Point(Convert.T

    C# csharp adobe help tutorial

  • dynamically add Flash C# application
    Z Zap Man

    I have a .skin file that the app reads and it needs to know what to load from there. The skin file is built through and editor which contains all the information that it needs to build the form. everything is working well except my flash. See I will never know the exact object or the ammount of objects that need to be loaded. some forms may have 1 flash object were others may have 3 or more or none. Since I will not know I cant go to the front of the form and add my flash object there it will need to be loaded in the back. like all my other controls. And Im not sure how to go about this. I've seen it done in vb so I'm sure I can do it in C#. the flash object is a circle and when pulling the shockwave flash control onto the form it makes a white box. setting this white box to transparent was also done in vb.

    C# csharp adobe help tutorial

  • dynamically add Flash C# application
    Z Zap Man

    I need to dynamically add a flash object to a C# desktop application. Could someone give me some overview on how to do this. I have been able to add it statically but when I go to try to create it dynamically I come up with unhandled win32 exceptions. Also I need the background to be transparent and having troubles with this too. Thanks for any help

    C# csharp adobe help tutorial

  • C# area map
    Z Zap Man

    That did it lol. Thanks allot dude!!!!!:cool:

    C# csharp javascript html 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