20,899 Topics

Member Avatar for
Member Avatar for kosay

hi I need to code a tool repaire exe file how I can write this reg key [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @="\"%1\" %*" "IsolatedCommand"="\"%1\" %*" thank you

Member Avatar for kosay
0
70
Member Avatar for Weliaz

Hello i have a problem. I have a program which is supposed to download a file in a seperate thread, while the program checks file size. However i get this error when i try to debug (F5): Object reference not set to an instance of an object. Code: [url]http://pastebin.com/7QkyJYf7[/url]

Member Avatar for Mitja Bonca
0
109
Member Avatar for markdean.expres

Guys, why can't I find a property for my richtextbox for centering its text? A textbox has a property named "TextAlign" while in richtextbox, there is none. How do I center the text in my richtextbox?

Member Avatar for Mitja Bonca
0
70
Member Avatar for aldeene

does anyone knows how to program using vb.net with rs232 module?, all i know is that i should use a compolet, but i can't understand a thing regarding the sending and receiving bit data to the machine.. I use CJCOMPOLET from OMRON

Member Avatar for aldeene
0
87
Member Avatar for 44shooter

Hello everyone. I have been struggling with my programming class from day one. I still can't seem to grasp the complete logic on how to write code. Anyhow, I have an assignment due that I am stuck on. Here is the assignment: In this exercise, you code an application that …

Member Avatar for TheClan
2
2K
Member Avatar for rEhSi_123

I am having problem deleting my data on click event [QUOTE]Private Sub btnDel_Click[/QUOTE]. Here is my code: [CODE]Dim inc As Integer Dim cs As New SqlConnection("Data Source=Connect\SQLEXPRESS;Initial Catalog=ForumCrawl;Integrated Security=True") Dim dbSource As String Dim da As SqlDataAdapter '("SELECT * FROM search_result", cs) Dim ds As New DataSet Dim sql As …

Member Avatar for rEhSi_123
0
169
Member Avatar for amond

[CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ListView1.SelectedItems.Count = 1 Then '// check if only 1 item is selected. With ListView1.SelectedItems(0) '// with Selected item. Form2.TextBox1.Text = .Text '// item text. Form2.TextBox2.Text = .SubItems(1).Text '// item column 2.Text Form2.TextBox3.Text = .SubItems(2).Text …

Member Avatar for Mitja Bonca
0
105
Member Avatar for ninjatalon

I have a program where it takes about 4-6 seconds to load(lets call it form2). form2 has a lot of code so what I want to do is create a progress bar. Form1 has the button that takes me to form2. So what I want to do is load a …

Member Avatar for AnkitGuru
0
141
Member Avatar for markdean.expres

Guys how do I set a column of a datagrid so that it will only accept numbers? I have this column labeled "Grade" which of course, should not accept letters. I have done setting its Format property but it is not working... Please

Member Avatar for Mitja Bonca
0
98
Member Avatar for priyamtheone

Is there any predefined property by which I can set the DisplayFormat/DisplayStyle of a textbox? Suppose I want a textbox to hold the actual value 888888888888.88 and show it formatted as 888,888,888,888.88. In short it should hold 'Double' data type value and show it with thousand separators and decimal places …

Member Avatar for Mitja Bonca
0
182
Member Avatar for mwenyenia07

We have software like doPdf which prints without necessarily giving hard copy output. can somebody send me a code that can print a crystal report with a printer without giving physical output which will enable me save the file with a given name before sending it via E-mail.

Member Avatar for Mitja Bonca
-1
201
Member Avatar for rini389

hai i am getting the error " IErrorInfo.GetDescription failed with E_FAIL(0x80004005)." when trying to execute the following code [CODE]Dim cmd As New OleDb.OleDbCommand("(select regno from s1 where batch=" + bt + ") intersect (select regno from s2 where batch=" + bt + ")", con)[/CODE] pls help me to solve this …

0
50
Member Avatar for rscoville

I am trying to read through a table and for each row execute a few lines of code. (The lines of code are taking an data type integer column which contains a time HHMM and a data type datetime column which contains a date. The code combines the time into …

Member Avatar for rscoville
0
151
Member Avatar for rEhSi_123

Hi Guys need a bit of help! Basically I have a parent table called users which stores all the user info with a prime key field called ID. Now in the child table which has a seperate foreign key associated with the ID field in the parent table. What I …

Member Avatar for adam_k
0
2K
Member Avatar for jlrafli

could you help me, please ! ... because i am newbie, sorry :) at form vb net 2005, i can browse file .mdb (C:\my documents\db1.mdb), I have created a table in sql server database, where table is the same as the access table that will be imported, after that when …

Member Avatar for debasisdas
0
118
Member Avatar for dibakarmishra

I need help on DataGridView CheckBox. How can make a button enable or visible while only one checkBox of a datagrideview is checked? I tryed this , and it works but it only works when the datagrideview checkbox column is selected but i need when only one checkbox is checked …

Member Avatar for adam_k
0
1K
Member Avatar for meetarun007

Hi to all, I'm creating an application in which the form contains one datagridview and 20 pictureboxes. When the DGV is populated, the user will drag a row from DGV and drop in any one of the pictureboxes. The picturebox should able evaluate a column value(say column 1) from the …

Member Avatar for adam_k
0
2K
Member Avatar for vijaybrar

Hi i am just new to VB.NET and our teacher told us to experiment on for loop in a ODD SUM Program you need to add all odd numbers from Input One to Input Two like that but i can't stop it from adding continuously for example i input the …

Member Avatar for adam_k
0
236
Member Avatar for bklynman01

I have a piece of code that takes two strings, puts them together, then attempts to save that result into a table in a database. For some reason, the database is only showing the second half of the string ([ICODE]Me.txtRev.text[/ICODE] in this case). When in debug, I can see that …

Member Avatar for Mitja Bonca
0
274
Member Avatar for udigold1

I'm trying to format a DataGridView, with style color, etc. The DGV loads (via buildGrid method) at the startup of the form, as you can see in the constructor's code: [CODE]public Report1(DataSet dsReport1, string sDateRep) { InitializeComponent(); sDate = sDateRep; dsReportGrid = dsReport1; orgDataset(); buildGrid(); } [/CODE] Here's the code …

Member Avatar for ddanbe
0
562
Member Avatar for Leodumbi

Hi everyone I've been having a small problem. on learning process of vb.net and sql server 2005 I hit a wall I want to know how can I filter the items on my datagrid which is displaying the data from my SQL server database, through a textebox text. sorry the …

Member Avatar for jgat2011
0
138
Member Avatar for lpmike

i need to get data from checkbox in a groupbox. in the groupbox, it also have a label. so my coding as below [CODE] For Each chkbox As CheckBox In gboSysGroup_AccessRights.Controls If TypeOf chkbox Is CheckBox Then If chkbox.Checked = True Then Cbx.Add(chkbox.Name.ToString) End If End If Next[/CODE] so when …

Member Avatar for Luc001
0
180
Member Avatar for Fa3hed

this is code which opens new window link in same programe [CODE] Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow ' This will be triggered only when link tries to open in new window. ' That means active element in web document will always be a …

Member Avatar for pocohontus
0
1K
Member Avatar for kipslem

Please could someone help me on this issue? I have a VB.Net 2008 Application that I have already created it's setup. When I installed it on another PC (Apart from my Develoopment PC) I have this issue with viewing the reports. There are couple of reports created with the CR …

0
87
Member Avatar for shers

Hi, I have an IEnumerable as a result of LINQ, which contains Value and Count. After I get the result, I want to do a string manipulation on the Value and make the corresponding Count to half. Is that possible with LINQ? Thanks

Member Avatar for Unhnd_Exception
-1
181
Member Avatar for Purrenhage

I am needing help in understanding how to declare variables properly. I am needing to write as program that calculates the commission for a sales person. I keep getting a error listed below. I thought I declared the salestextbox, costtextbox as integers correctly to use them in the calculation. I …

Member Avatar for adam_k
0
150
Member Avatar for bluehangook629

Hey guys, I am trying to build a function where it calls a dialog box to select an excel file to upload. Once the file is selected then read all data from worksheet 1 except for the header row and insert them into a table while omitting duplicates. In the …

Member Avatar for debasisdas
0
172
Member Avatar for jaejoong

Is there a way that I can create this in vb.net for excel?? [COLOR="Red"]page 1 of 2[/COLOR] Title Name | Address . . . . Signature [COLOR="red"]page 2 of 2[/COLOR] Title Name|Address (continuation of page1) . . . Signature

Member Avatar for bklynman01
0
158
Member Avatar for Naveed_786

Dear All, How can i change the dtPicker style to 2D i.e what i want i want to have dtpicker in my textbox when i click in text box then the dtpicker should open how to achieve this please help me if it is possible in VB.NET. Thanks in advance.

Member Avatar for debasisdas
-2
94
Member Avatar for leo88

Hi, take a look to my coding: [CODE] Dim Dir As New DirectoryInfo("C:\Users\Leo\Desktop\Data Lau") Dim svrDir As New DirectoryInfo(" C:\Users\Leo\Desktop\Server") Dim FileList As FileInfo() = Dir.GetFiles("*.*", SearchOption.TopDirectoryOnly) Dim svrFileList As FileInfo() = Dir.GetFiles("*.*", SearchOption.TopDirectoryOnly) Dim fi As IO.FileInfo Dim svrfi As IO.FileInfo Dim isSame As Boolean = False Dim storfilelist …

Member Avatar for leo88
0
120
Member Avatar for srinim84
Member Avatar for kipslem
0
364
Member Avatar for VIPER5646

HI ALL! Let me start by letting you know that I'm still new to VB. All I know about Programing is with the use of google, Videos, and some good help from DaniWeb. I'm doing a program which searches datagrid colums with some classes That I have wrote. I have …

Member Avatar for VIPER5646
0
102
Member Avatar for Mindazz

Hello people :) I need some help. How can I get Webbrowser1 to navigate to each page and wait for the one page to completely load, then move to the next page...? Thank you for answers in advance! ;) Example. [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Member Avatar for polas5
0
2K
Member Avatar for rEhSi_123

Hi Guys need your help on this :( Basically I am developing a web crawler so once the html source is converted to plaintext in a textbox, i intent to save it in dB. But the dB seems to be having trouble excepting some characters into the table and throwing …

Member Avatar for rEhSi_123
0
220
Member Avatar for mwenyenia07

hi all, i want my system to run when the computer boots. can somebody help me with a code that can do so?

Member Avatar for debasisdas
0
80
Member Avatar for Tyster

Hi Folks, I have a simple app (coded in VB 2008 Express Edition) that uses an SQL Server database (in .mdf format) that works fine on my own machine. I created the database in SQL Server on this machine. I added the DB as a data source and it works …

Member Avatar for debasisdas
-1
135
Member Avatar for Netcode

I have written the following code in a class as my connection string. I want to retrive data from a field in a table in my database using this connecyion string. Please how do i go about it? [CODE]Public Class ConnectionString Public Shared Function ConnSQL() As SqlConnection Dim connectionString As …

Member Avatar for Netcode
0
658
Member Avatar for wan28

I am developing a windows phone application using VB.NET Can anyone suggest me of which database to use as MySQL is said to hang on a mobile device...

Member Avatar for brettg
0
92
Member Avatar for iZox

Morning Daniweb, I'm currently working on a bot for UnrealSkill witch is an game-hacking website. They have a special chatbox within they post a code every 5 minutes, codes are like this: US1337-9I0OMSYAUFDDNMJLGHJJROD NV This is where i'm looking for: - The bot needs to click the refresh button every …

0
54
Member Avatar for Reverend Jim

I have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each …

Member Avatar for Reverend Jim
0
165
Member Avatar for sabika abbas

hello i ve 2 forms form1 & form2. form1 has primary key(parent table) & form2 has the foreign key(child table) [code] me.mytableadapter.update(me.dataset.mytable) [/code] is working f9 but in form2 when i try to use [code] me.secondTableadapter.update [/code] here problem comes the update function is not coming neither recognized by form2 …

Member Avatar for adam_k
-1
49
Member Avatar for sabika abbas
Member Avatar for adam_k
0
37
Member Avatar for mwenyenia07

'ttudy the following code' [CODE]Public Function my_account() As Integer Dim accountNumber As Integer Try objconnection.Close() objconnection.Open() sql = "select min(accountNo) as ac from Invoices where dateDue='" & Today.Date & "'" objcommand = New Odbc.OdbcCommand(sql, objconnection) objdataReader = objcommand.ExecuteReader objdataReader.Read() accountNumber = objdataReader("ac") Catch ex As Exception MsgBox(ex.Message) Exit Function End …

0
79
Member Avatar for ILIAILIA

I am making databases and one of columns is bit(checked or not). an want to sum all the checked ones number field.how to find If is checked or not? Dim sum As Single = 0.0 For i = 0 To Table1DataGridView.RowCount - 1 sum += Table1DataGridView.Rows(i).Cells(4).Value() this is just how …

Member Avatar for ILIAILIA
-1
444
Member Avatar for BillyMagic
Member Avatar for BillyMagic
0
484
Member Avatar for Madiha Ahmed

I want to get the SNMP Getresponse in a datagridview..and i have created a program ..here is the code for getting GetResponse in DataGridView .. [CODE]Private Sub DataGridView2_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellContentClick Dim dt As New DataTable() Dim snmp As New SimpleSnmp Dim kvp As …

0
66
Member Avatar for alfredo11

Hi guys! I am having trouble debugging these codes. I tried putting "New" keyword in declaring the image variables. Can anyone help me please? I'm creating an RPG game [CODE] Dim picf(), picl(), picr(), picb() As Image 'Main problem: when I put "New" keyword it says I 'cannot use it …

Member Avatar for Luc001
0
105
Member Avatar for jayawant.sawant

hi, i have create simple chat application with windows live messenger.I have give reference of MessengerAPI type Library.then it works.after creating a setup file with inno software including interop.MessengerAPI.dll of chatting application(with windows live messenger).Install that setup on anather machine then following errors are generates. ( Error HRESULT E_FAIL has …

Member Avatar for Luc001
0
248
Member Avatar for jayawant.sawant

hi, i have create a simple chatting application with windows live messenger.I have give the reference Messenger API Type Library 1.0.Then in form_load() event i have create the object of that MessengerAPI type library, ie, in vb.net windows application.I have used visual studio 2008.I have both check windows xp service …

0
77
Member Avatar for Sonny101

Hi All, I have reached the stage in my studies that I must choose an elective and I would really like your opinion on what to do as I am not 100% sure although I am leaning towards Java. So I have a choice between SCJP & SCJD or MCTS: …

Member Avatar for Tellalca
0
235

The End.