449 Posted Topics

Member Avatar for soeppp

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 ;)

Member Avatar for GeekByChoiCe
0
51
Member Avatar for Tschuikow
Member Avatar for Nicholas Ng
Member Avatar for pepemiso
Member Avatar for GeekByChoiCe
0
98
Member Avatar for HookDevil

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. …

Member Avatar for HookDevil
0
141
Member Avatar for Zack Richards

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] …

Member Avatar for Zack Richards
0
137
Member Avatar for Robtyketto

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 ;)

Member Avatar for GeekByChoiCe
0
123
Member Avatar for alecka_16

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]

Member Avatar for freepost
0
84
Member Avatar for ggl0rd

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) …

Member Avatar for ggl0rd
0
79
Member Avatar for Arunabh Nag

[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!

Member Avatar for samir_ibrahim
0
99
Member Avatar for ident

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.

Member Avatar for GeekByChoiCe
0
207
Member Avatar for darkelf94

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 …

Member Avatar for GeekByChoiCe
0
89
Member Avatar for scooby36

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 * …

Member Avatar for scooby36
0
97
Member Avatar for Sib

[icode]batchVal = batchVal.Replace(",", chr(39) & "," & chr(39))[/icode] replaces , with ','

Member Avatar for GeekByChoiCe
0
34
Member Avatar for shikamaru
Member Avatar for GeekByChoiCe
0
55
Member Avatar for Desolator4u

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 :$

Member Avatar for Desolator4u
0
171
Member Avatar for ravikiran032

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

Member Avatar for ravikiran032
0
93
Member Avatar for kerek2
Member Avatar for kerek2

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]

Member Avatar for GeekByChoiCe
0
161
Member Avatar for nokomoli

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]

Member Avatar for Nada_ward
0
158
Member Avatar for GeekByChoiCe

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 …

0
483
Member Avatar for lolwtf

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.

Member Avatar for lolwtf
0
98
Member Avatar for tedhead2
Member Avatar for tedhead2
0
128
Member Avatar for houlahan

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

Member Avatar for GeekByChoiCe
0
89
Member Avatar for hjdaniel.sun

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 …

Member Avatar for hjdaniel.sun
0
118
Member Avatar for milhero

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

Member Avatar for milhero
0
143
Member Avatar for premsagar1000

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]

Member Avatar for manu2009
0
105
Member Avatar for markperfinan

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]

Member Avatar for markperfinan
0
384
Member Avatar for sana.khatib20

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 …

Member Avatar for GeekByChoiCe
0
72
Member Avatar for sana.khatib20

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.

Member Avatar for Piya27
0
97
Member Avatar for chatee
Member Avatar for Piya27
0
83
Member Avatar for mariyanix

more details and some code would help others to understand what exactlly you want to do.

Member Avatar for sonia sardana
0
78
Member Avatar for onaclov2000

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 …

Member Avatar for onaclov2000
0
953
Member Avatar for JohnPhilipps

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?

Member Avatar for JohnPhilipps
0
137
Member Avatar for ritu verma

[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)

Member Avatar for babbu
0
104
Member Avatar for GeekByChoiCe

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 …

Member Avatar for GeekByChoiCe
0
900
Member Avatar for scsachira

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

Member Avatar for scsachira
0
128
Member Avatar for kimbula...
Re: SQL

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]

Member Avatar for samir_ibrahim
0
123
Member Avatar for flavioweb1

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 …

Member Avatar for GeekByChoiCe
0
135
Member Avatar for babbu

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.

Member Avatar for GeekByChoiCe
0
65
Member Avatar for sonia sardana

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.

Member Avatar for GeekByChoiCe
0
104
Member Avatar for stevelk

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 …

Member Avatar for GeekByChoiCe
0
73
Member Avatar for NEo4

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.

Member Avatar for NEo4
0
86
Member Avatar for rak4u

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 …

Member Avatar for rak4u
0
161
Member Avatar for dileepkumars1

[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.

Member Avatar for dileepkumars1
0
145
Member Avatar for gibbshsu

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") …

Member Avatar for gibbshsu
0
425
Member Avatar for sonia sardana

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]

Member Avatar for GeekByChoiCe
0
650
Member Avatar for ritu verma

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 …

Member Avatar for ritu verma
0
143
Member Avatar for mansi sharma

this might help you [url]http://www.codeproject.com/KB/dotnet/CustomTabControl.aspx[/url]

Member Avatar for GeekByChoiCe
0
63

The End.