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
S

seq

@seq
About
Posts
32
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating your own shareware
    S seq

    thank you very much, its exactly what I was looking for.

    IT & Infrastructure question

  • Creating your own shareware
    S seq

    Hello, There are many shareware programs out there.. and I was wondering what exactly should I take into consideration when publish my own software as shareware: 1. How should I receive the money for it (is paypal a good way?) 2. How should I limit the program.. Should I give it a fully functinal 30-day trial ? limit some functions? 3. Should I warry about people cracking my program ? whats the best and easist way to protect it ? 4. What other things should I take into consideration ? I wonder if any of you experienced people would answer me this questins.. or give an advice. Maybe there is a good article about publishing software as shareware (which I wasnt able to find)? Best regards, Pawel

    IT & Infrastructure question

  • Adding dynamicly controls to a Panel
    S seq

    Hello, I have the following problem, In a window form I have a panel (with autosroll enabled) and inside this panel I would like to add dynamicly other panels. I have a variable that holds the number of panels inside the main Panel. So whenever I add a new panel,its location is calculated by (number_of_panels+space_between_two_panels)*panel_height The code works fine.. until I scroll down the mainpanel to the bottom, then when I add a new panel inside it there is a huge gap between the last panel and the newly added one. Any one can tell me why? and how to solve it ?(I dont want to scroll the main panel all the way up just to add a new panel). Help appreciated, Pawel

    C# help tutorial question

  • VS - change file name - HELP!
    S seq

    yeah after hours of searching.. I started writing the code again.. well its a good lesson to me, to make backups of all precious data I have.. Sorry for the spam ;-) I just went mad

    C# help csharp visual-studio algorithms tutorial

  • VS - change file name - HELP!
    S seq

    I know this topic doesnt really fit this section.. but my program was written in C# and I didnt know where to put it ;) So the problem is I deleted accidently my main c# file from vs project and that way it was also deleted from the real file system. I used ontrack recovery and it doesnt seem to be in the deleted files.. nor is it in the trash. I made a test and after I deleted another file from the project it landed in the trash with a different random like name xs =] Anyone one know how to recover this file ? or does the vs has anykind of after-deleter-change-name algorithm? Im really despered.. i spent alot of time on it =/

    C# help csharp visual-studio algorithms tutorial

  • Scale form with it controls
    S seq

    nevermind Scale() does the trick

    C# question help

  • Scale form with it controls
    S seq

    Hello, I have a problem, I have an application which is about 900x700 size by default, and it looks fine on a 1024x768 desktop resolution, but on computers where there is a 800x600 resolution set its huge, it event doesnt fit the screen. So my question.. is there anyway to scale the mainform so that all its content will be scalled down or up too ?

    C# question help

  • keyboard layout for a selected window
    S seq

    Hello, Im looking for a way of changing the keyboard layout for a user-defines window. Any one know how to achieve it ? or any software that does it ?

    C# tutorial question

  • Rotate Text - Problem
    S seq

    well, I actually use the MeasureString and TranslateTransform, but the problem is that Im drawing the string in that way - Rotate the graphics by an user-specified angle - Draw text - Rotate the graphics back to the previous position After this three steps I got an imaged and a text drawn on it on an angle I specified. The only problem is that I want to draw the text lets say in the middle and Im not sure how to get the coordinates of the point that after the rotating back the text will be at the middle of the image. Its actually a math matter, but Im not sure how to solve it.

    C# graphics help tutorial question

  • Rotate Text - Problem
    S seq

    Hello, I have a problem, my application is drawing a simple text in the middle of a window, but the text is rotated by a user-defined angle. The problem is I cant make the text appear in the middle (the rotating makes the point change its location. My code looks like follows: graphics.RotateTransform(-rotateAngle); graphics.DrawString(mystring, myfont, myBrush, drawpoint, new StringFormat()); I know I should put a graphics.TransformTranslate(_x,_y) - BUT I HAVE NO IDEA HOW TO FIGURE OUT THE POINTS for that purpose (before the locatin I was simply using X=width/2-measurestring/2, Y=height/2-measurestring/2). Any one know the maths for that ?

    C# graphics help tutorial question

  • 3 state Button - weird behaviour
    S seq

    Hello, I wrote some code for using some buttons in my application which depending on the state can be one of the 3 images: - image_button_mouse_over.png (mouse is over my button) - image_button_mouse_norma.png (mouse left my button) - image_button_mouse_clicked.png (button clicked or mouse down) I used the events (mouse_enter/mouse_leave/mouse_up/mouse_down/mouse_clicked) and depding on that and appropiate image is set to the button. IT WORKS FINE untill.. I click a button which display any window/dialog/whatever, when I do this the button stays after the click in the normal state (LIKE IT SHOULD BE), but when I close the window/dialog it remains in the image_button_mouse_over state even when I put into my code button_clicked(object sender,eventargs e) { button1.Image=image_button_mouse_norma_handler; dialog.ShowDialog(); button1.Image=image_button_mouse_norma_handler; } I checked and the mouse_leave event is fired, right after the showdialog() is lunched, but It doesnt change anything... Any Ideas ?

    C# question

  • Debug/Release dissapearing toolbar images
    S seq

    Hello, I use the images from a ImageList, there also other controls which use images from the same ImageList and they are displayed properly. So I guess it has nothing to do with the address. But thank you for taking your time to answer my question, although the problem is still not solved. - Pawel

    C# csharp visual-studio debugging help question

  • Chat program with server behind a router
    S seq

    Well, I guess that MSN server has a public IP, apparently you dont have one, so there mainly two solutions: 1. You put on the router somekind of port redirection to your chat server (to the right port of course) 2. You use some kind of VPN software like hamachi (hamachi.cc)

    C# sysadmin question lounge

  • icons needed
    S seq

    Here is a great (but polish) site with icons, http://www.ikony.w.inds.pl/[^] altough I think you posted it in the wrong forum, - Pawel

    C#

  • keys
    S seq

    You can use the SendInput() function from the native win32, here is an example how to do it: http://www.cornetdesign.com/2005/04/screen-print-capture-in-c-using_08.html[^] - Pawel

    C# help question

  • Debug/Release dissapearing toolbar images
    S seq

    Hello, I have a problem with the toolbar in visual studio 2005, when I compile and run my application in the 'Debug' Configuration everything is fine, but when i switch the configuration to 'Release' the images in my toolbar simply dissapear (I only the text next to the images, but no images). Anyone have an Idea what might be wrong with that?

    C# csharp visual-studio debugging help question

  • Directx8 - drawing a square - messing up things [modified]
    S seq

    Hello, I wrote a code on directx9 to draw and fill a square using ID3DXLine which looked like that: (I should add that this code is inject/hooked into a game). ID3DXLine *pLine; void fillrgba(int x, int y, int w, int h, int r, int g, int b, int a) { D3DXVECTOR2 vLine[2]; pLine->SetWidth( w ); pLine->SetAntialias( false ); pLine->SetGLLines( true ); vLine[0].x = x + w/2; vLine[0].y = y; vLine[1].x = x + w/2; vLine[1].y = y + h; pLine->Begin( ); pLine->Draw( vLine, 2, D3DCOLOR_RGBA( r, g, b, a ) ); pLine->End( ); } But now I have to make it work under DirectX8! And there exist no ID3DXLine, so I tried something like this float PanelWidth = 150.0f; float PanelHeight = 200.0f; pDevice->CreateVertexBuffer(4 * sizeof(PANELVERTEX), D3DUSAGE_WRITEONLY, D3DFVF_PANELVERTEX, D3DPOOL_MANAGED, &g_pVertices); PANELVERTEX* pVertices = NULL; g_pVertices->Lock(0, 4 * sizeof(PANELVERTEX), (BYTE**)&pVertices, 0); //Set all the colors to white pVertices[0].color = pVertices[1].color = pVertices[2].color = pVertices[3].color = 0xffffffff; //Set positions and texture coordinates pVertices[0].x = pVertices[3].x = -PanelWidth / 2.0f; pVertices[1].x = pVertices[2].x = PanelWidth / 2.0f; pVertices[0].y = pVertices[1].y = PanelHeight / 2.0f; pVertices[2].y = pVertices[3].y = -PanelHeight / 2.0f; pVertices[0].z = pVertices[1].z = pVertices[2].z = pVertices[3].z = 1.0f; pVertices[1].u = pVertices[2].u = 1.0f; pVertices[0].u = pVertices[3].u = 0.0f; pVertices[0].v = pVertices[1].v = 0.0f; pVertices[2].v = pVertices[3].v = 1.0f; g_pVertices->Unlock(); pDevice->SetVertexShader(D3DFVF_PANELVERTEX); pDevice->SetStreamSource(0, g_pVertices, sizeof(PANELVERTEX)); pDevice->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2); When I use the above code it messess the game up, is there any similar thing like ID3DXLine in DX8 ? I would rather avoid using vertexes, just make it as easy as possible without the BeginScene()/Endscene() and so on, just like ID3DXLine did. Regards, Pawel -- modified at 4:42 Tuesday 29th August, 2006

    C / C++ / MFC graphics game-dev question

  • Hooking up Direct3D... but which one ?
    S seq

    thx I found the answer. // IDirect3D::PResent and Flip

    C / C++ / MFC question game-dev help tutorial

  • Hooking up Direct3D... but which one ?
    S seq

    Hello, Im trying to write an applicatn which would draw upon a fullscreen game some text (a simple in-game text), and I came across the information I should hook up Direct3D functions and this is what I did using an example (hooking up CreateDirect9Device), but this function is executed only once at the beginning, and I am wondering which function should I hook so that I would be able to draw the text inside a already running game ? (And then how can I write the text ? with what commands ?) Its very important to me, and I would appreciate any help in that. Regards, Pawel

    C / C++ / MFC question game-dev help tutorial

  • Ribbon Control
    S seq

    Hello all, I wonder if any of you have found/written a free Ribbon Control (the office 2007 style)? I found some ribbon controls while googling but none of them are free (not even for non-commercial use). Regards, Pawel

    C# 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