Jump to content
Xtreme .Net Talk

Illusion

Avatar/Signature
  • Posts

    107
  • Joined

  • Last visited

Personal Information

  • Occupation
    Student!
  • Visual Studio .NET Version
    Vs.NET 2008
  • .NET Preferred Language
    VB.Net, Asp.Net, C#, Java

Illusion's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, ahhhh .. I didn't know about that control.. oops *is still new at asp.net 0:)* .. thanks for that :)
  2. Hi, I'm having a little problem with the asp.net forms. I have a master page and a default page created from new, I've put; <form id="form1" method="post" runat=server enctype ="multipart/form-data" > <input id="uploadMyFile" type=file runat =server /> <asp:button id="cmdSend" runat="server" Text="Send" onclick="cmdSend_Click"/> </form> on the Default page, but when I run it I get ' You can only have one form tag ', which I can understand, but how do I go about making it so I can upload files using the form on the Default.aspx? .. or is there another way. Thanks
  3. Hi, ah thanks :) it was more along the lines, in 1.0 dotnet the zip lib I was using works fine.. but in 2.0 dotnet they fixed something which messes up my program but is a bit different.. so had to check which code to use... lots of problems .. lol :) Thanks again Illusion. :cool:
  4. Hi, I wondered if anyone can help me.. How do I find the dotnet version that the user is running? so for example.. If idotnet = 1 then msgbox("You are running dotnet version " + idotnet) else msgbox("Program doesn't support your dotnet version!") end if Thanks Illusion.
  5. lol .. so simple.. doh!! thanks!! really appreciated that :) Thanks again!
  6. Hi, I wondered if someone could help/point me in the right direction :) I add some text to a richtextbox and call the undo method and nothing happens.. however if i type into the box and call the undo method it works.. what am I missing here :| .. I add the text by : richtextbox1.text = "blah" richtextbox1.text = richtextbox1.text + " and more blah" so I then click on the undo button and nothing happens.. im guessing its not registering to be undone.. but how do I go about getting it to be accepted? I did try cutting and pasting, but thats just a dirty fix.. any clean ones? Thanks
  7. Hi, I am looking for the API (I assume its the API.. not sure really, im listening at windows.forms.Messages at the WParams and msgs..) for the print dialog and the arrow keys. What I want to be able to do is stop any attempt at the print dialog box from appearing (for example if your on a website and you have those print buttons which pops up a dialog box for printing, I want to stop that) Also I want to do stuff with the arrow keys .. I have the mouse buttons, but can't find much of the rest .... iv been to the msdn site and got lost... :s If anyone could help i would be grateful :) Thanks
  8. Hi, oh it wasn't my flash, it was any flash... I did find a solution the other day tho .. a weird one though... incase anyone else comes across the problem Public Class myWebBrowser Inherits System.Windows.Forms.WebBrowser Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) Select Case m.Msg Case &H21, &H201, &H204, &H207, &H21 ' WM_LMOUSEBUTTON MyBase.DefWndProc(m) Return End Select MyBase.WndProc(m) End Sub 'WndProc End Class You have to put this in a component and put that on your form, it does fix the flash thing abit .. but you end up having all sorts of other issues with it instead... Thanks.
  9. Re: Thanks! its not always XP .. I saw a cash machine which crashed and went into windows ME .... it finally made sense, the machine was always very very slow at giving out money.. and it was powered by ME .. lol
  10. Hi, I wondered if someone could help me out. I am having a bit of problems with the webbrowser control. At first I thought it might just be something I am doing, but looking at other peoples browsers and I also just made a very quick browser, it seems to the do the same thing on all of them. I am trying to make the browser work with flash.. naturally it works.. but will only work with one click and thats it (just now I found out that if you click off of the flash game and click back on it, it works, but you have to do this repeatedly if you want to do anything else. Anyone have any suggestions?? all I have in my sample code is a textbox and a webbrowser with this code Public Class Form1 Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode = Keys.Enter Then Me.WebBrowser1.Navigate(TextBox1.Text, False) End If End Sub End Class Would appreciate any insight anyone has... Thanks Dan.
  11. Hi, I tried the API thing, but it gave the same problem. Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As IntPtr, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SetWindowPos(Me.Handle, IntPtr.Zero, 0, 0, 1024, 768, 64) End Sub I will try the other stuff.. I did really want to use full screen and be able to control the key presses. Other than directx, what way could I do it? Thanks
  12. Hey, I tried that one before posting, (sorry I should have said). I got this message.. A call to PInvoke function 'fullscreen!fullscreen.Form1::SetWindowPos' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. Thanks
  13. Any Ideas?
  14. Hi, I was looking for a way to make my form fullscreen. I have tried a few things and looked on the interweb :) but nothing seems to work, but it looks like it should. for example: Const HWND_TOPMOST = -1 Const HWND_NOTOPMOST = -2 Const SWP_NOSIZE = &H1 Const SWP_NOMOVE = &H2 Const SWP_NOACTIVATE = &H10 Const SWP_SHOWWINDOW = &H40 Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SetWindowPos(Me.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE) End Sub would work if form returned a hWnd and not a handle like it is doing now.. The fullscreen needs to cover the windows start bar and also stay on topmost too. Any ideas? Thanks Illusion
  15. The program works on my LAN, but when I try and get it to work outside if it, it won't connect. As I said, I was scanning the ports and the program tries to connect on a port, but its not the one I tell it to connect and its not the port i'm trying to forward.. so I'm very confused. I have a dlink 504, i've configured port forwarding before, i'm not sure why its not working the way I want it now though...
×
×
  • Create New...