Main Topics
Browse All Topics Hello,
I have a combobox that once you enter the control, sets the .DroppedDown property to True so it will expand the box to show the contents. Then a user can start typing stuff in and it will scroll to any matches in the box. From there I...
Good Day
Experts:
I have come across a bit of trouble with some date calculation here in one of my programs.
NewDate = DateTime.Now.AddDays(3).To
So, I am adding 3 days to today's date. Seemed ok. Well, I actually...
Hello Experts,
I am developing an application that will utilize the webbrowser control. (VB.NET 2005) I need to trap user interactions within the webbrowser to trigger an event.
I was able to trap link clicking within the webbrwoser but I...
Hi,
I am using VS2005 and coding in VB. I want to get the value of a datatable row, first row, column called option1. I dont know how to get it... :( Any ideas, code below of what im trying to do. The line where i have dt.tables is the line...
Hi all,
I have an .NET EXE file .
I want to find the file created date and modified date in C# application. Can we do it through reflection or with IO stream?
Thanks
Adib
Hi I have a DataGridView, which I'm creating at run-time. The code I'm using is listed in the snippet below. My DGV has 2 columns. I'm adjusting the first column's width to 50 and I would like the second column to FILL to the right of its...
I developed a VB application that performs some database manipulation using ADO on both SQL and Oracle. I used ADO because I was basically re-writing an existing VB6 application in .NET and didn't have the allocated time to devote more effort...
How do I format the following timespan object to 2 decimal places?
My code below is outputting "0.2333333333337" but I need to simply output "0.23"
lbl.Text = String.Format("{0:#.##}", ts.TotalMinutes.ToString)
The following VB.Net code, uses DirectShow to capture an image from a webcam and show it in a picture box. When the button 'Grab' is pressed, I want to capture the image into a second picture box.
It's just about working, except the image is not...
I have a vb.net 2005 program using .net framework 2.0 management classes, which loops through every computer on the local LAN and pulls back some WMI information.
When I run it from one particular Windows 2003 server, it fails on every...
This is my first web site. I'm using visual studio 2005 to create an ASP.net website with vb.net (I started with "A blank ASP.NET Web site"). I have a gridview whose DataSourceID is set to a SqlDataSource that gets its data from SQLserver 2005....
I have gridview(AspxGridview) displaying a list of names. I want to add a checkbox to the template and when a user selects a number of checkboxes and hits an 'Add' button I want to get all the rows in the gridview that were Checked.
Later I...
I'm trying to set up a Telerik RadGrid with custom edit form and having some problems figuring out how to get the update to work on edit. This is a total noob question, so I'm hoping for a quick answer without too much flack! I have a few things...
Below is the code I use to send the fax. It works 60% of the time. When it doesn't work, I get an error from Right Fax that says "Problem Converting Fax Body or Cover Sheet" with the data "Error 2 occurred while trying to load the images for...
I've found a lot of answers on how to align the Header Text for a column but when I set the HeaderText to MiddleRight alignment, there is some sort of padding after the Header text that I can't figure out how to get rid of. Since this is hard to...
I have a Star Micronics SP300 (POS) printer. It is installed as a
windows printer with Generic Text Only drivers. I'm using RawPrinter
Helper Class to
send data to the printer. See: http://support.microsoft.c
. It works correctly...
I have some code that will allow the import of Excel *.xls spreadsheet using ADO.NET (2) and, while I can get it to import somewhat, I need to change the datatype of all columns to a string so that data is consistent. I thought I could create...
Microsoft Visual Studio 2010 Service pack 1 fail to install can some one help me and Security Updatefor Microsoft Zvisual Studio 2010 (kb2542054) Can some one help install this program. I am using windows 7 Ultimate 64bit.
Hi Experts,
I am trying to use a group by expression but am not able to obtain what I want.
Below is what I am working with. Essentially I want to be able to select a variety of columns from the ledger table but group by the client no. Even...
Hi experts,
How can i check if a key exists in a namevaluecollection.
For hashtable we have something like containskey.
How can i check for namevaluecollection?
Regards
Abhinay
Hi,
I want to get the value from the first cell (i.e. index 0) in the selected row of a DataGridView. The code Im using at the moment is:
dgvCurrentJobs.CurrentRow.
I've also tried:
...
I am using ReportViewer as a template so that I can print out labels from a Zebra printer. I am able to do this successfully by using my textboxes as parameters. The problem that I run into is that I want the user to just click a button on my...
I am trying to create a dynamic link button and raise the onClick event. I first tried this with a linkbutton but it did not work. I was able to get it to work with a hyperlink control but the problem with this is I can get the onMouseOver, on...
How do you refresh a DataGridView with the current contents of the database after you do an UPDATE?
Private Sub btnUpdatePosition_Click(By
...
I am using Visual Studio 2008, VB, ASP.Net, with a 2008 SQL database. I am using Telerik Reporting with a Telerik Report Viewer.
The reports reside in a class library and the class library has been referenced to the web application.
I'd...
the title says all.. its was working b4.. now it gives me this wierd error:
Error 1 Unable to copy file "obj\Debug\f.pdb" to "bin\f.pdb". Access to the path 'bin\f.pdb' is denied. Painel
Hi All,
I am creating a winforms application i have three forms - the Main Form (with splitcontainer panels 1 and 2) a parent form called "search orders" and the child form "order details". what i have is that when i open the parent form...
Hello All,
I'm doing a mp3 alarm, everything works fine, except I need to rerun the timer when the song finish playing and can't do it !!
here's my code...
Please help...
thanks...
Hi ! I am new to .Net VB (Studio 2005) and I need to insert into my form a window that would be able to capture a picture from a webcams (1 or more) and save it to a jpeg file as soon as I click on the capture button on the form.
I have...
hi,
I am trying to Format my date
but i am getting error;;
Dim mydate As Date = Format(cmbScheduleDate.Tex
cmbScheduleDate.Text Value is 05/30/2007 10:00 AM
I am getting error :Conversion from string "MM/dd/yyyy" to...
Hi,
I run monthly reporting. SPs generate the reports into tables in SQL 2000 server.
I have a linked workbook that contains links to the report table in SQL.
Everymonth a SSIS package runs the SPs to generate the reports in SQL server....
I have included DataFormatString formatting on some columns in a GridView.
These string are able to be setup by the end user but i'm having trouble finding a good list of examples i can include in my end user documentation.
Anyone know some...
Unable to convert my date properly...Using VB.net 2003
Have
Dim Currentdate as date
currentdate = Format(Date.Today, "MM/dd/yyyy")
It gives me Mar 22 2007.
Need it to do: 03/22/2007
I am running into the "Unhandled exception has occurred in your application" error from one of my pcs that is trying to run a server-based application. My PC is Windows XP with .NET 2.0 Framework installed. I have attached the detailed error...
I have a mask of : 00/00/0000 90:00
But need to check if its empty, the .text property returns "__/__/____ __:__"
So I can't check to see if the text = the original mask.
I'm close to pulling my hair, and I don't have allot left ... help...
I have project with third party toolkits. It was working fine.. but suddenly started crashing on install.
I just did rebuild but when try to install the setup it says
"Application" has encountered a problem and needs to close. We are sorry for...
Hello experts
I need urgent help
I have a radGrid in which i want to have an image column that will display different images depending on the selected DataField value.
Like i have a field called status in on of my table which contains...
I amusing C# and also using Templates. Iamtrying toget the select row value from a gridview. but the code I use is give me a casting error.
Hi, I have a query which craps out with the error:
"An explicit value for the identity column in table Table_Name can only be specified when a column list is used and IDENTITY_INSERT is ON."
The table itself has a primary key and identity,...
I want to show image (exist in my local drive ) in a header section of VB.NET RDLC report. but i could not understand how to implement it.
I have the following script which is using 'Select Case':
Dim ctl As ToolStripButton = CType(sender, ToolStripButton)
Dim MoveUp As Boolean = False
Dim thisLV As ListView = AccountsLV
Select Case ctl.Name
...
I have a static image containing a circle
Triangle size needs to always be the same area (should make it easy)
Triangle could be placed in different region of circle,
Triangle will always be pointed to the center
I need something similiar...
Hi,
Part of when I code and I add collections, I generally notice that an error 457 comes up stating that if a collection exists, you can't add it. Okay, so fine... which is why I'll end up using an error handler technique to go around the...
Hi there,
I'm trying to use the MaskedEditExtender to validate the user input dates. My problem is that the dates need to be in the YYYY-MM-DD format and the MaskedEditExtender doesn't seem to like that.
I changed the culture to...
Hello,
I have been stuck on this for nearly 2 weeks now and can't see the problem. All Internet searches have shown what I have is correct, but it doesn't work for me.
Basically, I'm setting the Select Command for my SqlDataSource in my C#...
The code snippet below calculates the timespan between two periods
DateTime dtStart = DateTime.Parse(StartTime.T
DateTime dtEnd = DateTime.Parse(EndTime.Tex
TimeSpan ts = dtEnd.Subtract(dtStart);
...
What happened to the InStr Function in VB.NET? There is no starting position for the function. My question is how would I find the 2nd, 3rd etc. ocurrence in a string. Thanks for the help.
In VB6 I would simply do something like:
Dim...
I need to receive an output parameter from an existing stored procedure. The procedure has one input parameter and one output parameter. I can test the procedure using the query analyzer and it is producing the correct output parameter. The...
I wrote a Visual Basic 2008 application targetting the .NET Framework 2.0. It runs fine on my development PC, but when I run it on a deployment machine, I get the following error:
Could not load file or assembly 'stdole, Version=7.0.3300.0,...
How do delay(sleep) in VB.NET?
Using VB.net Express 2008 I've compiled and published a small application, but when I run the setup.exe on WinXP SP3 I got the following error: Unable to install or run the application. The application requires that assembly ADODB Version...
I need to convert 4bytes or an Integer to a float value in VB.NET,
This is 2 example that i need to get.
3196355566 (int32) = -2,58819e-1 (float) (I used winhex to get this float value)
3212265194 (int32) = -9,659258e-1 (float)
I tried ...
Hello,
I am trying to make a text box that has the following properties...
1. Only numeric information is acceptable
2. The backspace key gives focus to a different text box
3. The enter key give focus to a different text box
It seems...
I'm currently developing a software in Nepali. The authorised date format for the office use in Nepal is Bikram Sambat. So, I need to have date facility in BS for the software. But it is quite tough as computer system do not accept BS dates. The...
I have a DataRow[] and I want to convert it to a DataTable. Is there any direct way of doing it or i need to read the DataRow[] row by row and add one row at a time to the Table. Also if i do this, i would have to add equivalent columns to that...
Can someone please tell me what I am doing wrong here. I have spent over 4-5 hours combing the Net trying to find what is missing and I cannot. Using VIsual Basic.
I am (trying to) export a GridView using a SQLConnectionString - using the...
I am trying to modify a report (rdlc) at runtime.
I have found several examples, but di not succeed (several hours of trying...)
The attached code snippet shows the sentral part of the problem.
The doc.load(stream) gives an error saying...
I have a WIndows 7 Home Premium 64-bit computer using one of my apps. All was fine until last Friday. Now the user gets the following error when executing my VB.NET 2005 application.
>>
An error occurred while attempting to load the Crystal...
Still coming up to speed on VB.NET 2005 from VB6. In VB.NET, you can use the application settings to store app info. Problem is, in the IDE, its a read only attribute. Yes, you can use User Settings that are both read/write, but the problem with...
Greetings All,
I have done this in VB6 but not sure how to do it in VB.NET. Here is my VB6 Code:
------------start VB6 code---------------
Select Case KeyAscii
Case 3 'Ctrl-C Copy
'Do something when Ctrl-C...
Hi
I am writing Windows Application in VB.NET in 2005.
I have 1 form
on that form i have 2 DataGrids are there:DataGridView1 and DataGridView2
User Darg some rows from DataGridView1 then drop on to DataGridView2
up to here fine i have...
I have a form with a DataGridView control on it and I am trying to add a right click context menu when the user right clicks on it.... I have been able to add the context menu but all of my items on the menu are launching when the user right...
Hi Experts I want to read back data from a sql server database and store the data in an arraylist. My problem is that I want to add the first 3 fields into a seperate row for each database row. I can't get the right syntax. The way the code is at...
I built a small Windows Form in VS.NET 2005 that basically just enters parameters into a stored procedure (SQL 2000) and runs it.
It runs fine on my development machine, but when I try to install and run it on the client it will be used on, I...
I have written a vb.net (VS 2008) program that allows the user to select and audit large text files. Some of these files can be over 100 mb. The program allows the user to run the application over and over without any problem until the user...
Hi,
I am looking into "OOPS" - Object Oriented Programming Concepts. I have the following definition for "Abstraction". Can you please explain / justify me this concept in simple terms ? Even though this seems to be simple but i want to...
I have a project in which one column is a hyperlink column. Ideally, when the user clicks on the hyperlink, three things happen:
1. The row the hyperlink is in is selected
2. The data in the hyperlink column is passed to a session variable...
I am using VB.NET and I have a Stored Procedure that I call and get a set of Records from using an ADODB.Recordset.....
So, I have a Valid ADODB.Recordset and I want to take the results and put them into my Datagridview Contorl via, the Data...
Hi,
I would like to know which event to capture to resize a form to a specific height and width.
My form has the follwoing set : FormBorserStyle -> Fixed3D. WindowState = normal.
In the constructor I set:
Me.Height =...
I have aprogram which connects to the FTP server I have the upload peice working I can get he file directory yada yada where the problem lies is
1 - Cant get it to download the code completely(ill attach my download code and the error)
2 - I...
I have a Windows VB.Net application for doing some changes in a SQL Server 2005 database.
When the "Update" button is pressed it takes 5-7 seconds to process, so I'd like a little "wait" indicator to pop up until it's done.
Private Sub...
Dear Experts.
I am having a Vb.net form which gets connected with a SQL SERVER 2005 in a different PC.
and i m doing my various I/O operation on the database very efficiently.
But some time due to some network Problem, i get some error...
I'm using a sql select in VB 2005 to retrieve a DateTime field from a SQL Database.
The value comes back like this in Query Analyzer:
2007-02-21 20:24:40.983
Is there a compatible data type in VB to hold this value in this format?
My...
I am converting some old code .... I have a stored procedure that returns 1 row with 30 or so fields, that I need to update off a form.
To populate the form I call a SQLDATAREADER and fill each text box control. Once data is updated, what is...
Hi
Im trying to make an ap with 3 checkboxes for bold italic and underline text
so which ever ones are seleced when you click a button a label will then be styled with that font
so if you check bold and italic then the font will be bold...
I wrote a macro that formats pasted data and then adds page numbers to the footer. In the original workbook that I created the macro it works perfectly, adds the pages numbers no problem. I then moved the macro to my personal macro book so that I...
Hi!
This task is seemingly really simple. From within VB.Net, I need to somehow save each page of a pdf document as a jpg.
I know I can buy software that will convert a pdf to a jpg from a command line, and I know I can even...
Hi,
I have a datatable with data in it:
1. InvoiceNo.
2. InvoiceDate.
3. InvoiceAmount
4. ReferenceDate (used to get the 30days , 90days..etc from InvoiceDate)
5. CustomerName
I use that datatable to create report in CR:
Invoice...
I am trying to use the LogonUser API with pretty much the same code as found on MSDN.
It functions as expected in the dev environment which is in the domain i am trying to authenticate to. But when i execute it on a workgroup machine (test...
Hi,
I'm using VB .NET 2003 and exporting to Excel using late binding after finding out that early binding and all the different versions of Excel at our Office just won't play nice together.
I thought I tested the following code and it ran...
Hi
I've got a DataGridView on a windows form with various columns added by the Data Source. I also added a DataGridViewButtonColumn. The problem I'm having is that I have no idea how to add code to these buttons. Pls Help
Thanks
Elmo
Good Afternoon
Experts:
I am using VB.net and need to iterate through a recordset and output the results to a text file?
I have the iterating through the recordset all done, but I cannot find how to send it to a text file.
How can I...
The datatable.Rows.Contains() method does not find the primary key value in the datatable and it definitely exists in the table.
I populated a datatable with a single column of values using a datareader, then set the PrimaryKey to column(0), the...
I need to convert a MemoryStream to a byte array..
Here is my code..
Dim ms As New MemoryStream(ccDocument) 'ccDocument is a byte array
Dim ccReturn As Byte(ms.Length)
ms.Read(ccReturn, 0, ms.Length)
Can anyone tell me if the above...
Hi there,
I am trying to set the colours of a datagrid based on a value.
Trouble is the .net 3.5 COMPACT framework is different to what I am used to.
Normally to colour the rows I would use something like .......
Dim r As Integer
...
Hi,
I have a vb.net application I am developing in Visual Studio 2005.
I have two combo boxes on a form, one which displays a list of room types in a hotel, and the second combo box displays a list of room types for the selected room type...
Hi all!
I need to develop an VB.NET app that will make a POST request to an WEB Server.
Actualy, i have an ASP Script as an example of how could i be this post to my web server. The ASP code is show below:
<%
' Server URL, HTTPS
const...
I'm building a CMS that will allow the users to upload large files for downloading from their website. I have the upload page working, but anytime I try to upload something larger than about 15-20MB, I get the following error...
...
Hi
I'm using an Infragistics UltraTabControl version (Infragistics2.Win.UltraWi
In my code depending on a certain data criteria I try to change the tab being displayed, with the following line of code....
Converting a Access project over to VB.Net ..
This is their code in Access
strPayoutACC = "SELECT statement"
Set rsInvoice = db.OpenRecordset(strPayout
If rsInvoice.RecordCount > 0...
I have a VB.net form that is diplaying data fine using the following db connection and controls on the form. The form is a series of text boxes that display data returns as a sum statment with sql queries and joins. The form itself is...
Hi,
I'm able to get a Javascript confirmation popup on normal button, but how do i do the same on the buttonfield in Gridview?
Below is my code, i'm able to get the popup, but clicking on "OK" doesn't do anything (it suppose to process...
i am trying to install a vb.net windows service on a machine that has the .NET framework on it.
but when i run the command prompt installutil ....myservice.exe
i get
"installutil is not recognized as an internal or external command"
...
I wonder if someone can help me track down this problem - when running from within VS2008, there are no issue. When published, only Default.aspx has issues - if I bypass it, everything works fine...
Description: An error occurred during the...
Hi all
We have been using Crystal Reports for about 8 years from now. We designed all the the reports in Crystal Reports Ver 8.0
We have our applications running in VB6 . Same crystal reports get opened very fast almost instantly....
How do I change the font color and bold property on a VB.Net TreeView node?
Basically, I want to display the root node in bold red font, the child nodes in nonbold blue font.
I have been searching the web for a clear way on how to export gridview data to excel 2007/2010. All I can find is how to do it to .xls (excel 2003). Does anyone have an example or know how to export into excel 2007 or excel 2010. My code as...
I'm attempting to add the data from an excel file (that is formated the same way as the datagridview) into a datagridview. The probelm I'm getting is the xls data is being appended to the existing datagridview. the current datagridview remain and...
Hey Guys:
I'm trying to figure out how i can retrive how many recorsds the reader read, thi is what i got:
Sub SelectTop(ByVal SiteID As Integer, ByVal TableName As String)
Dim strSQL2 As String = "SELECT TOP 1 PERCENT * FROM " &...
We are trying to use the Microsoft.mshtml on a web application of ours that is running Server 2003. We have tried to deploy it but it always throws the error:
Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0,...
CodeCruiser
1,541,075
Genius
8,400 points yesterday
Profilekaufmed
303,871
Wizard
500 points yesterday
ProfileIdle_Mind
230,817
Guru
2,010 points yesterday
Profilenepaluz
192,076
Guru
0 points yesterday
ProfilePaulHews
161,438
Guru
520 points yesterday
ProfileBuggyCoder
150,598
Guru
0 points yesterday
ProfileJamesBurger
123,179
Master
0 points yesterday
Profileemoreau
112,211
Master
0 points yesterday
ProfileMasteraco
102,128
Master
0 points yesterday
ProfileTheLearnedOne
80,982
Master
0 points yesterday
ProfileDhaest
63,803
Master
2,000 points yesterday
ProfileMlandaT
53,803
Master
2,100 points yesterday
Profilewdosanjos
53,796
Master
0 points yesterday
Profilemlmcc
53,048
Master
0 points yesterday
ProfileRolandDeschain
41,679
10 points yesterday
Profilesrosebabu
31,025
2,000 points yesterday
Profilemas_oz2003
28,400
0 points yesterday
Profilesedgwick
27,350
0 points yesterday
Profilejacko72
26,596
0 points yesterday
ProfiletommyBoy
25,850
0 points yesterday
Profiledlmille
22,160
0 points yesterday
Profileimnorie
21,664
1,600 points yesterday
ProfileCluskitt
21,418
0 points yesterday
Profilerobert_schutt
20,440
0 points yesterday
Profilenavneethegde
20,332
0 points yesterday
Profile