- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
27 Posted Topics
Re: use proc.WaitForInputIdle() it will kind of halt your application until the main window of the proc is created .. here is a code suggestion [CODE] Dim proc As New Process() With proc.StartInfo .Arguments = "c:\equ.wmf" .UseShellExecute = True .WindowStyle = ProcessWindowStyle.Normal .WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\MathType" .FileName = "mathtype.exe" '<----- … | |
Hello has anybody come across a similar control to this one. [URL="http://img138.imageshack.us/img138/875/23102010172021.png"]http://img138.imageshack.us/img138/875/23102010172021.png[/URL] if so then please give me a link. thank a lot edit : found this one [url]http://www.filebuzz.com/fileinfo/38822/Angulum.html[/url] any better suggs are welcome though :D | |
Hello and welcome everybody to this new thread which i hope you enjoy so this is a new software that will make you able to convert addons for Firefox let's say you had firefox 4 installed but most of the addons are not compatible yet with it this software comes … | |
Re: here's an example i just made but not quite sure i grasped well what you want to do [URL="http://www.easy-upload.net/fichiers/07-09-~23910.201097213913.png"]screen capture[/URL] the example simply captures the image inside paint and shows it inside the richtextbox in the form using win32 procedures (declared in the pinvoke module) (tested on win7) | |
hello i have a datagridview (Dg) with 7 columns. i have a RowValidated event which tests if the validated cell is the first (index = 0) then sets the focus on the third cell with columnIndex = 2 BUT the cell that's getting focus after the row is validated is … | |
Re: try this one and see if it fits [CODE] Function StrToHex(ByVal str As String) As String Dim hexStr = "" For Each letter In str hexStr &= Hex(Asc(letter)) + " " Next Return hexStr End Function[/CODE] output example: StrToHex("a1X") = "61 31 58" | |
Re: try this Imports System.Net [CODE] Public Shared Function GetAllIP(Optional ByVal args As String() = Nothing) As Collection Dim strHostName As New String("") Dim col = New Collection ' Getting Ip address of local machine... ' First get the host name of local machine. strHostName = Dns.GetHostName() Console.WriteLine("Local Machine's Host Name: … | |
Re: i've done an imageshack login and used webrequest here's my code [CODE] Public Function im_login(ByVal pageUrl As String) As String Dim response As System.Net.WebResponse = Nothing Try '' Setup our Web request Dim request As System.Net.WebRequest = System.Net.WebRequest.Create(pageUrl) '' Retrieve data from request response = request.GetResponse() Dim s As String … | |
Re: i think ExecuteNonQuery is not it, because it returns no data rows but instead, ..the number of rows affected !! here's a code suggestion [CODE] Using upcmd As New SqlCommand("SELECT * FROM users WHERE userid = @userid", connection) upcmd.Parameters.Add(New SqlParameter("@userid", Me.txtuseridprofile.Text)) upcmd.Connection.Open() Try Dim dr As SqlDataReader = upcmd.ExecuteReader() If … | |
Re: salut fais attention a ce qu'il n'ya pas de caractere illegaux dans imageToCopy ou newImage des caractere comme :\/<>?|*" moi je pense que tu as une [B]"[/B] quelque part ;) et c'est myConnection et non pa myConnexion :p | |
Re: you have to show the "output" window. if no output is shown there then check the "immediate window" there's an option in Tools> Options> Debugging> General options> "Redirect all Output Window text to the Immediate Window" uncheck it if you want. | |
Re: create the buttons in design mode and set every button text to a certain letter than in the event of each button you just write textbox1.text += buttonX.text you could make just one event for all the buttons [CODE]sub button_clicked(ByVal sender As System.Object, ByVal e As System.EventArgs) handles btn1.click,btn2.click,... dim … | |
Re: hello you may use "settings" to store settings project properties> settings> valid Boolean user false then in the load event [CODE] If Not My.Settings.valid Then 'ask for the serial End If[/CODE] as for the auto focus after 5 chars i think this will do [CODE] Private Sub TextBox_TextChanged(ByVal sender As … | |
Re: hello this code may help in the click event of a button : [CODE] Dim tbox As New TextBox With {.Width = 200, .Name = "newtextbox", .Text = "hello", .Location = New Point(50, 100)} Me.Controls.Add(tbox)[/CODE] this will create a 200px wide textbox in (50,100)px saying "hello" | |
Re: hello .. how about storing the file as an array of bytes in the application resources and then generate the file on start up if it doesn't already exist ? [CODE] If My.Computer.FileSystem.FileExists("file.xls") Then My.Computer.FileSystem.WriteAllBytes("file.xls", My.Resources.xlsfile, False) End If[/CODE] project properties> resources> add resource> add existing file> browse the xls … | |
Re: it looks obvious try this [CODE]My.Computer.FileSystem.WriteAllText( filepath , DirectCast(Me.ActiveMdiChild, Form2).RichTextBox1.Text, False)[/CODE] filepath is a string (a path) which you can get out of a savedialog and assign to the richtextbox tag you code would look like this [CODE] Dim TextEditor = DirectCast(Me.ActiveMdiChild, Form2).RichTextBox1 If String.IsNullOrEmpty(TextEditor.Tag) Then If DirectCast(Me.ActiveMdiChild, Form2).SaveFileDialog1.ShowDialog = … | |
Re: i think maybe you would make all the other form borderless then show'em inside the main form. but you should use the setParent API function. make new module : [CODE] Imports System.Runtime.InteropServices Module Module1 <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ Public Function SetParent(ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As IntPtr … | |
Re: [QUOTE=xfrolox;1277278]@GeekByCoiCe it worked perfectly but, is there any way to prevent it to rename it in listbox ? cuz it says [Untitled - Notepad, 8056] i would like it to say Untitled - Notepad only... But im working on it, i hope you respond me back :)[/QUOTE] [CODE]ListBox1.Items.Add(New KeyValuePair(Of String, … | |
Re: hello and welcome ! you can merge this way [CODE] 'add each point in A2 to A1 For Each pt In ArList2 ArList1.Add(pt) Next [/CODE] then re-sort all in A1 [CODE] Dim cmp As New PointsComparer ArList1.Sort(cmp) [/CODE] you will need this class [CODE]Public Class PointsComparer Implements IComparer Public Function … | |
Re: yeah a facebook video uploader maybe or anything that uploads something like pics and stuff :p or a multi link sharer to facebook twitter .. that's what i can think of ! | |
Re: [CODE] strCustomerNumber = "SELECT CustomerNumber from tblcustomers Where CustomerName = '" & ddlCustomers & "'" [/CODE] try it | |
Re: can you post a snapshot of the form and the picture-box? anyways if i got you right then maybe this will help you out preserve the last B and put it in B1 [CODE] With B1 .X = B.X .Y = B.Y End With With B .X = e.X .Y … | |
![]() | Re: i did it once and it worked fine i remember i did row1:cell;cell;cell|row2:cell;cell;cell ... you can choose any other delimiter than use the split method to reload the text into the dgrid. |
Re: on the load event of form1 just write form2.show() is that it ? | |
Re: hmm i thought maybe you could have a flag set to true when another form gets focused then when the form(in question) is activated you do the work only if the flag is set to true then you reset it to false ! i think that way when the form … | |
Re: i guess it's pretty simple. you get the last value then you increment it right ? |
The End.