449 Posted Topics
Re: since inf files have the same structure as ini files [URL="http://www.developer.com/net/asp/article.php/3287991"]this link[/URL] might help you ;) | |
Re: try [icode]if typeof(obj) is [Enum][/icode] | |
Re: good job, bumping a 2 years old thread *impressive* | |
Re: just clear the listview before filling the new values. [icode]ListView1.Items.Clear()[/icode] | |
Re: hmm ok if i understood you right you want to install some programs without the user to interact? and finally find out when the program is done with the installtion? then you should take a look into FindWindow, GetWindowText and SendMessage API each installation step has its own window title. … | |
Re: Add a savefiledialog (here sfd) to your form the following code you add into your save click event [code=vb] With sfd .FileName = stri.Replace("Hello my name is ", "") & ".rtf" .InitialDirectory = My.Application.Info.DirectoryPath & "/Saved/" .ShowDialog() End With[/code] and the next code you just add to your code [code=vb] … | |
Re: To create the installer (.msi) you just need to build the setup project. ignore the "publish" stuff from your application. But keep in mind, each time you change something to your application you have to rebuild the setup project aswell ;) | |
Re: hmm i dont wanna be a bitch BUT are you expecting us to do your homework? please read [URL="http://www.daniweb.com/forums/announcement58-2.html"]this topic [/URL] | |
Re: if its just about the "look" of the code then thats how my style would look like: [code=vb]Imports System.Data Public Class frmANGGARANBARU Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim sql As String Private Sub frmANGGARANBARU_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) … | |
Re: [code=vb]dim newForm as new form2 newForm.show[/code] if i have to guess with that information you posted d'oh please give us some more details and post the code where the exception occurs! | |
Re: to be honest im not quite sure what exactly is the problem :$ can you explain it a bit more detailed? like what does not work at the moment and what it should do. | |
Re: If you build the project Setup in VS then you can easily set the depencies to download from vendors site means if the installer detects that one or more depencies are missing it will download it from the vendors site. no need to include the net installer into your project … | |
Re: remove the code from the load event and create a method in this form such as: [code=vb] Friend Sub fillDetails (byval _name as string) Con = New SqlConnection("Data Source=WHITES;Initial Catalog=ESHAN;Integrated Security=True") con.Open() Dim cmd As New SqlCommand Dim rdr As SqlDataReader Dim Param As New SqlParameter cmd.CommandText = "Select * … | |
Re: [icode]batchVal = batchVal.Replace(",", chr(39) & "," & chr(39))[/icode] replaces , with ',' | |
Re: hmm you need help with creating the c++ dll's or with the calls from VB to the dll's? | |
Re: hmm i wonder if there is a specific reason why not using the query style from Pacman21. If so im very interessted into the reason since i always use that style aswell. The link you have posted dont tell me why :$ | |
Re: go to your Project -> Properties -> Application set Shutdown Mode to "When last form closes" on that way you can close Form1 after Form2.show and the application runs until you close Form2 too | |
Re: if you just want to check if entry exist no matter how often then this is the way to go: [code=vb]if ListBox1.FindStringExact(textbox1.text) then msgbox "entry already exist" end if[/code] | |
Re: are you creating that gridview at runtime? then your could add a global declaration: [icode]Private withevents dataGV as datagridview[/icode] after this you can already find the events for that control just as all others. and use it on runtime like: [icode]dataGV = new gridview[/icode] | |
Im trying to inject my vb.net dll into the notepad process to hook one of its functions. Now it seems i face two problems.... GetProcAddress returns 0 (it also does if i call that function via c++ dll) Its might be Vista? anyway next problem is that i want to … | |
Re: i assume you want to search the listbox for the text that is written in the textbox when pressed the button? if so then you could use: [icode]ListBox1.FindString(textbox1.text)[/icode] or [icode]ListBox1.FindStringExact(textbox1.text)[/icode] if that isnt what you wanted then please give us more details. | |
Re: to find out what is the problem you better post the errors you get. | |
Re: u can use: [code=vb]Dim btnToDelete As Control = GetChildAtPoint(New Point(x, y), GetChildAtPointSkip.Invisible) Me.Controls.Remove(btnToDelete )[/code] replace x and y with the current click location | |
Re: go to your project properties to the Application tab and change the "Shutdown Mode" to "when last Form clsoses" if u now have Form1 open you can do Form2.show Form1.close the application will still run but you dont have any forms hidden. the application will end if the current form … | |
Re: the question is how are the email addresses are saved in the text file? if they are seperated by newline you can just replace newline with comma while adding to the rtbTo | |
Re: Add a new project to your application. choose "other project type" -> Setup and deployment -> Setup project If you have made some changes to your application you just need to Build the solution again to update the setup. More information about creating setups you can find [URL="http://msdn.microsoft.com/en-us/library/19x10e5c.aspx"]here[/URL] | |
Re: dont know what line 39 is since you didnt use code tags for your post but if i would have to guess i would say [icode]wb.Worksheets(ActiveSheet.Index).ChartObjects().Chart.Name + ".png", filtername:="PNG")[/icode] should be [icode]wb.Worksheets(ActiveSheet.Index).ChartObjects(0).Chart.Name + ".png", filtername:="PNG")[/icode] | |
Re: im sorry if i ask now a stupid question but are you tring to debug your application or just running it. this error message mostly comes up while trying to debug an external dl. [URL="http://msdn.microsoft.com/en-us/library/3sehk0fb(VS.80).aspx"]here[/URL] you can find a solution for that case if you dont debug while u get … | |
Re: if i have to guess then you try to insert a value into the DB for a field that is primary that already exist. but would help ofc if you post the code snippet where the error shows up. | |
Re: suggestions would come if you tell us what validation you need. | |
Re: more details and some code would help others to understand what exactlly you want to do. | |
![]() | Re: if you want to fill a control in a seperate thread then you have to invoke the control or the complete form. else you will get a cross thread exception. Below an example.... [code=vb] Private Delegate Sub AddItemsDelegate(ByVal newItem As String) Private Sub Form1_Load(ByVal sender As Object, ByVal e As … ![]() |
Re: could you please tell us how you "open the folder"? like you open it with the explorer or do you display the folder names in your form? | |
Re: [icode]ListView1.SelectedItems(1).BeginEdit()[/icode] cant worrk out. You have multiselect set to false so there is always only one item selected. so it have to stick on 0. remember ListView1.SelectedItems(1) doesnt mean its the next item in list, its the next selected item (which doesnt exist on multiselect=False) | |
Hello I am coding an FTP program, the downloading/uploading happens in a seperate thread. The problem is now how to pause/resume the download (even on servers that don't support file resume), an easy/working way is to pause/resume the working thread with thread.suspend but it tells me that this function is … | |
Re: Is your server behind a router? if so just set the portforwarding to the port the server is using and forward it to the machine on what the server is running. And also make sure the Client is connecting to the right IP and port | |
Re: Im only in MYSQL but this might also works in MSSQL [icode]SELECT * FROM Employee WHERE Employee.EmpID NOT IN (SELECT EmpID FROM Training WHERE TrainingType=0);[/icode] | |
Re: if you just want to check if the textbox is empty then do [icode]if editarNodeTextBox.Text="" then Return False[/icode] or if you dont want to allow any spaces at all you can do [icode]if editarNodeTextBox.Text.contains(" ") then Return False[/icode] here is a small Regex example: [code=vb] Sub Main() Dim objAlphaPattern As … | |
Re: If you go to Project -> Application and look for "Shutdown Mode:" its set by default to "When startup form closes" You can set this to "When last forum closes" but then make sure you close all your forms instead of hiding. | |
Re: where comes "location" from? did you set it as global variable? if not then this is might be the problem. else check if the location got the correct value. | |
Re: you do in your query: sqlquery = "SELECT username FROM pass WHERE username = '" & cmbUserName.Text & "'" but you want to fill this control with the username dont you? could you please explain a bit more what exactlly you try. it might help also to set a breakpoint … | |
Re: you could add a Module to your project and put the function as "friend Function" in this module. after that you can call this function from every form inside your project without importing namespaces. | |
Re: You can add your HTML template into the resources like that: name: html value: [code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>$filename</title> <body> here comes the $book or $textsearch</body> </head> [/code] if the user have clicked the button you just … | |
Re: [icode]My.Computer.Network.UploadFile("test.log", "192.168.1.104")[/icode] Normally it is even easier to send local files. Could you please subscribe the problem a bit more detailed? like what exception you get if u try and so on. | |
Re: or you can go to Project - WindowsApplication1 Properties - choose the Application Tab and click on "View Application events" Then the ApplicationEvent.vb opens.... There you can add your code [code=vb] Private Sub MyApplication_NetworkAvailabilityChanged(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs) Handles Me.NetworkAvailabilityChanged If e.IsNetworkAvailable Then MsgBox("Yippiiee we r online") … | |
Re: for the image you can check out this link [url]http://www.codeproject.com/KB/dotnet/CustomTabControl.aspx[/url] for the second thing you can use [code=vb] Private Sub TabControl1_Deselected(ByVal sender As Object, ByVal e As System.Windows.Forms.TabControlEventArgs) Handles TabControl1.Deselected 'remove image index and text End Sub [/code] | |
Re: If i understood your problem right then this would be the solution [code=vb] Private Sub TreeViewCategories_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeViewCategories.NodeMouseClick If e.Button = Windows.Forms.MouseButtons.Right Then TreeViewCategories.SelectedNode = e.Node ContextMnuTreeview.Show(TreeViewCategories, e.X, e.Y) End If End Sub [/code] You might raise the TreeViewCategories.NodeMouseClick event to get the … | |
Re: this might help you [url]http://www.codeproject.com/KB/dotnet/CustomTabControl.aspx[/url] |
The End.