Jump to content

Cyber Axe

Member
  • Posts

    75
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Cyber Axe

  1. thats exactly what i wanted to do thanks (i suck at explaining what i am trying to achieve most of the time)
  2. I tried that and it didn’t work, though is an mdi container not a window that opens all windows within the main window and can’t be moved outside it? Because I don’t want to do that what’s I am trying to do is make the main form "second from top" more like so other things that are topmost such as dialogs and such are always on top but the main form is always on top of other apps though it doesn’t seem to be possible
  3. i want to make my main form always on top but have all child dialogs and forms and message boxes always on top of the main form ive got all my child forms/dialogs set to top most but if i set topmost for the main form then its what ever is active thats on top anyone know how to make children always ontop of the parent regardless of parents settings? or are there any z-index type parameters around?
  4. thanks, that worked though i changed chr(234) to vbCr though i no longer need to use that method after playing aorund with that one i had the idea to google for multiple delimiters and came across the MSDN example page for the split function i changed it to Dim sArray As String() = Split(TextBox.Text, vbCrLf, -1, CompareMethod.Text) and it seems to work perfectly
  5. the function i am testing doesnt sort it so it must be the split
  6. tried using the left() funcion doesnt work i also tried manually joining the array into a string by putting it through a loop and adding each line to the array but same result as string.join argh
  7. thanks for the suggestions, ive been looking at the WRT54G but it doesnt appear to have a built in DSL modem which is the most important part! and i couldnt even find the GP2 on the shipping sites i usualy check (mainly for reviews an such) i am now checking out the Linksys WAG54G which looks a lot like hte WRT54G but with a DSL modem integrated anyone had any experience with that model? edit: nevermind the WAG54G has gotten shockingly bad reviews seems to suffer from constant disconnection and stuff just like this one
  8. i have a s*** souter that cost me quite a bit not that long ago and its s*** unfortunatly i had to get soemthign that connected to the net cos old modem burned out and my i somehow ednedgetting this pos anyway every router i look at on the net seems to have some downfall i'm looking for one that can connect to ADSL has built in switch WIFI at a minimum b and g though i'd like Pre-N/MIMO too even though i prolly wont use it for ages and a firewall along with easy yet good configuration options liek the ability to open a ranege of ports some routers dont do this and most imortatnly DOES NOT CRASH when connected to p2p networks and bit torrent would be nice to have one that also had VoIP built in though not really needed at the moment so anyone know any decent routers? thanks
  9. thanks dman both work perfectly and thats yet another thing checked off my task list shouldnt be too long before i can release it (which will be when the tasks are finished) i'll be sure to add you to the credits for all the help you've given me though i am having another problem whenever i use the split and join method you gave me for the Sort Alphabetically script for other things (the remove white space and insert) it seems to double the amount of CRLF's and so doubles the amount of lines you cant see it by going to the bottom line and using that to get the current line but its viewable from the insert box the amount of lines increase afterwords the only way that seems to get around this is to do a loop and trim the end of each line in the string array however this (if i remember correctly) remove all trailing spaces and such too which i dont want to remove in some cases do you know of any alternative way of getting around this? thanks
  10. My code is shown below the problems i am having are... i search when the caret is at the startof the text box in teh first line at the start of hte line then [lengthPosition = InStr(varPosition, frmNotepad.txtNotepad.Text, Value, CaseSensative) 'Find Value After Caret varPosition] comes back in error it just highlights the line in yellow and doesnt say what the error is the other problem i am having is when searching upwards the loops back around and starts form the bottom upwards and i want to stop this form happening anyone got any suggestions Public Sub FindNext(ByVal Value, ByVal Direction, ByVal CaseSensative) If Value IsNot Nothing Then ' Only run if Search String is not Null ' Set The CaseSensative to the appropriate Search Method If CaseSensative = False Then CaseSensative = CompareMethod.Text Else CaseSensative = CompareMethod.Binary End If ' Set Search Start Location Based on Selection Length Dim varPosition As Integer = frmNotepad.txtNotepad.SelectionStart + frmNotepad.txtNotepad.SelectionLength ' Search for the Text In the specified Direction from the text cursor Dim lengthPosition As Long ' Declare Search Result Variable If Direction = "Down" Then lengthPosition = InStr(varPosition, frmNotepad.txtNotepad.Text, Value, CaseSensative) 'Find Value After Caret varPosition Else Dim varText As String = ReverseString(frmNotepad.txtNotepad.Text) 'Set varText to txtNotepad Contents Dim varTextLength As Integer = Len(varText) ' Get the Length of varText If varPosition > 0 Then ' Attempt to Stop the Search Looping when at Start of Document lengthPosition = varTextLength - InStr(varTextLength - frmNotepad.txtNotepad.SelectionStart, varText, ReverseString(Value), CaseSensative) - 2 'Reverse Everything to Find Value Before Caret varPosition End If End If ' Select Searched Text If lengthPosition > 0 Then frmNotepad.txtNotepad.SelectionStart = lengthPosition - 1 ' Move Caret to Start of Text frmNotepad.txtNotepad.SelectionLength = Len(Value) ' Set Length of Selection to the Search String Else MsgBox("Cannot find " + Chr(34) + varFind + Chr(34), MsgBoxStyle.Information) ' Display Message if no more Instances of Search String in Specified Direction or None at all End If CaretRefresh(frmNotepad.txtNotepad) ' Scroll txtNotepad to Caret Position SetCharacterPosition() ' Update Line / Character in Status Bar End If End Sub
  11. i allready have my PC Set as the DMZ which basically does that for all ports plus on my router you have to put in evert port one by one so you can imagine putting in the entire bit torrent range would take ages plus you can only put in a max of 50 indivudual settings on my router you have to set Public Port Start, Public Port End, Private Port, Port Type, Host IP Address and all i can find on routers with that configureation is you have to set start end and private all as the same value to open a port and its not possible ot open a range of ports from what ive read
  12. i have a WELL PTI-850G wireless router and it crashes if i load up most p2p and sometimes on torrent ive been trying to find firmware for it to hopefully fix problems (it also has some substandard features which i am hoping is fixed in a newer firmware such as the ability to open a range of ports) there is a firmware upgrade on http://www.joyce.cz/ but it seems to be exactly the same other than not having english regions in default dsl settings (i actually got this as unbranded and took me ages to find out that it was the WELL PTI-850G since it doesnt even have a number on the modem itsself and the fact it was czechslovakian didnt help!) through my searching i have determined that my router is the same as this model http://www.paradigm.com.tw/P2_Wireless_P850g.html just in a different case and so ive been looking into finding the firmware for that but have had no luck does anyone know where i might be able to find the firmware? or know of any other that may work?
  13. i wanted to avoid making me own so it both kept the windows feel and worked with any future vers of windows (incase the look of the dialog ever changes) and such but i may have to resort to that if i cant figure it out i'd like to have an actual encoding box like other apps do and cos i want my notepad app to look as much like the origonal as possible ot keep simplicity and seamless ness as it were besides i cant add any more types to the list cos ive pretty much maxed it out by putting in almost all text based file types thanks though i need it for Visual Basic 2005 Beta 2 which i stuck in the subtitle though i may be able to figure something out with this
  14. all i want to do is add an encoding drop down menu to it like in notepad but thers no built in function to do and the only info i can find comes from http://www.dotnet247.com/247reference/msgs/45/228852.aspx though it is way over my head does anyone know any good examples of how to do this?
  15. i have an array of strings and what i want to do is remove any array strings that have a length of 0 or = "" / nothing / null but i cant figure out how to do this the other thing i want to do is a smarter array sorting method that sorts numbers 0 1 2 3 4 6 7 8 9 10 instead of 0 1 10 11 12 2 20 21 3 and so on anyone know where i could find info on this type of sorting or have the appropriate code to do so? ive been googling for ages with no luck
  16. i tried notepad 2 but i cant remember why but i disliked it ive tried all the so called note pad alternatives but all are either bloated, slow or over complicated they are more wordpad clones than notepad clones my notepad alternative is clean, fast and simple and keeps the "rawness" as it were of the origonal thanks for that alpha sort code dman almost perfect just need to mod it to remove extra spaces and smart number sorting
  17. i origonally planned on making it mroe or less an exact clone except supporting mac and unix text files and better find and replace (since normally this ends up almost crashing notepad) but i'm also planning on adding a few extras such as alphabetizing the textbox and inserting text at the start or end of each line with auto incremental options and have been thinking about the possibly of multilingual support since it doesnt look that hard to do (also couldnt think of much else to add other than maybe colourization of html/xhtml tags and maybe auto tabbing though if i add them they probably wont appear in verison 1) i even have it loading and using the origonal notpads settings though have yet to add saving to registry on exit i didnt want to overcomplicate it or bloat it like seems to have happend with most others that are out there ive almost got it completley replicating all of the origonals features except for find, find replace, and goto line and have yet to get alphabetization and inserting to work though the latter shouldnt be to hard after i figure out the goto line
  18. i changed the textbox to allow 999999999 i prefere using a standard text box because richtext boxes tend to mess up the tab aligning. thanks for the code just tried it out and it works
  19. ive looked all over google and i cant find a solution that works all the solutions are for old visual basic versions and dont work anymore i want to get the current line number and cursor position of a text box it seems do able if i changed to a rich text box but i would rather keep it a normal text box does anyone know how to achive this?
  20. i managed to get the Lines working in a nomral text box and they now output in the proper format
  21. since ive been unable to find any decent notepad replacments that are basic and fast (most i would consider wordpad replacements) ive stated making my own but one thing ive not been able to do is save the txts in windows format just their origonal format does anyone know to convert CR (Mac) and LF (Unix) to CR+LF (MS-DOS/Windows)? i was able to open them and have them display correctly by using a rich text box rather than just a normal textbox also does anyone know how i can get and goto a specific line number in a text box and also ive been trying to write a function that will alphabetise the entire text box but have had no luck anyone have any ideas?
  22. http://www.notetab.com/ntl-gif.html <-- Notetab lite dont look very "lite" lol ive had a look at all of those but way ott imo they're a bit too feature rich for a basic text app which is what notepad is ment to be if i want multi tab html and office docs and hex editing and lal that stuff and all that stuff i'll stick to dreamwaver, ms word, etc thanks though
  23. ive been looking up notepad alternatives but all of them seem to be way over featured personally i'd rather have one thats is practically the same as notepad but has better search and replace and maybe support for unix txt's though the latter isnt as important anyone know of any such notepad alternatives?
  24. thanks to both of you
×
×
  • Create New...