Jump to content
Xtreme .Net Talk

Illusion

Avatar/Signature
  • Posts

    107
  • Joined

  • Last visited

Everything posted by Illusion

  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...
  16. Yes, the program works fine when on the same network segment. How do you tell it to listen on a certain port if it sends on a completly random one... And it was working so well! bleh :confused:
  17. Hi, I was wondering if someone to could help me and put me out of my misery :P I have written a program to talk across the network, which works quite well, I have read most of the posts about making the program talk across the internet (port forwarding etc) and for the most part, it works.. however.. it seems that it is being sent from my TCP port.. but 'Ethereal' is saying its being moved to a different port.... I thought this might be my router, and changed to a different one, but its doing the same thing ... This is what I get... I sent data out ipaddress:9000 and ethereal says 9000 > insertrandomport so when the data gets to the other computer it reads it coming from an incorrect port and ignores it... I have setup the router for start and end port to be both at 9000 on TCP and restarted it to make sure the changes have sticked. Please could someone help me .. . Thanks Daniel.
  18. Hi, I wondered if someone could help me. I am using two objects which are not docking correctly, I want the first object to dock to the left (Dock: Left) and then I want the second one to fill the rest of the space (Dock: Fill), unfortunatly I am getting the second one filling the whole form and the first object docking on the left of the second, which is all backwards. I did put the objects onto the form in the correct way (1st object, 2nd object) that I wanted to use them.. but i'm confused why this is happening. Any ideas? Thanks Dan.
  19. Hi, thanks for replying, I actually forgot about this post I made, sorry abotu that. The code works fine, it was the computer I was using it on that didn't work, I have no idea why. It's all made by microsoft as a sample to Sockets if anyone wants to use it. Thanks Illusion.
  20. Hi, I was wondering, is there a way to show all domain computers using ASP.net ? If so how? Thanks Daniel.
  21. Hi, I was messing about the .Net socket code yesterday, hoping to make some use of it, (simple chat program, you know the sort) I tried to run the program which worked fine, but the listener doesn't open a port so doesn't listen... maybe I am missing something, but either way its not working :( Any ideas? a snippet from the MS Socket samples (which can be found on their website). Private Sub DoListen() Try Dim port As Integer = "5000" mobjListener = New TcpListener(port) mobjListener.Start() Do 'Dim x As New Client(mobjListener.AcceptSocket) Dim x As New Client(mobjListener.AcceptTcpClient) AddHandler x.Connected, AddressOf OnConnected AddHandler x.Disconnected, AddressOf OnDisconnected 'AddHandler x.CharsReceived, AddressOf OnCharsReceived AddHandler x.LineReceived, AddressOf OnLineReceived mcolClients.Add(x.ID, x) Dim params() As Object = {"New connection"} Me.Invoke(New StatusInvoker(AddressOf Me.UpdateStatus), params) Loop Until False Catch End Try End Sub Thanks Daniel.
  22. Hi, I tried on a different computer and it worked fine, but not on this computer. I noticed though, I have basic office and the other computer has full office, would this make a difference? @PlausiblyDamp: its not an ASP.NET program, so I wouldn't think I would need it. Would I?? Thanks Daniel.
  23. Hi, I was wondering if some kind soul could see fit to helping me with my little problem... I am trying to use Outlooks feature of sending mail.. and it is not working, I have copied code and even downloaded code from other websites about doing all fancy things with it, yet it will not work. It will always crash on this line: Dim ol As New Outlook.Application() and say file not found! I have included all different references to try and get it to work.. but I might be choosing the wrong ones.. I have added: MAPI Microsoft.Office.Core Office Outlook I don't see anyother references which stand out for it. I am about this close '----' to smashing my monitor :mad: so any help would be kindly appreciated! :) Thanks Dan.
  24. :o It worked!!!!! thank you so much.. i spent the weekend looking for a solution, even posted on the main newsgroup board!! .. :D Thanks again Dan.
  25. Hi, I am having a problem with converting some c# code to vb.net. I have this code FServer.OnConnect += new TIdServerThreadEvent(TCPServerConnect); FServer.OnExecute += new TIdServerThreadEvent(TCPServerExecute); FServer.DefaultPort = 6000; FServer.Active = true; I can convert all the other code, but I dont know how to handle delegates so I cant get it to work. I tried putting RaiseEvent at the start of the code, but didn't work... Any Ideas Thanks Dan.
×
×
  • Create New...