Main Topics
Browse All Topics I am using the following code to allow only a letter, number, or backspace to be entered into at vb.net textbox:
Private Sub txtSearch_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPr
Hi All,
I have to display thumbnail images in ListView control. How to give space in between thumb image in List View? (like padding to images)
I have tried:
lstDPView.Margin = new Padding(10, 10, 10, 10); //// Doesn't work... :-(
...
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.
I am struggling with trying to get my Active Directory queries to export to a text file so that I can use them as input for other scripts. I'm sure I'm missing the obvious because this has to be an easy thing to do. I have tried using...
I am able to render a remote ssrs report inside an aspx page using the ReportVIewer Control.
I would like to pass two variables from code behind to the report parameters as the page loads. Here are some more details:
Parameter 1 Name:...
What website link(s) displays a list of all KeyChar
values so I can change my below method ?
Example:
// 45 = dash/minus
// 13 = enter...
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...
Hey there everyone, I'm hoping there is a simple fix for this, but I would accept a complicated one after messing around with it for the last day and a half!
I am putting together a module that will drop into a DotNetNuke portal and I'm...
please see attached app.config file, when i do this:
Database db = DatabaseFactory.CreateData
where Logging is an entry in my config file:
<configuration>
<configSections>
<section name="dataConfiguration"..
1. I have installed .NET Framework 1.1 + 2.0 on my Windows XP system.
3. When i first install the framework everything works fine
after few days that the application working i get this message :
".NET Framework initialization error" "Unable to...
I need to update my regular expression so it has the following:
* Accepts all positive decimal values (currently only accepts values greater and equal to one (1))
* i.e accepts ---> 0.0001
* Can have maximum 3 decimal places.
*...
Im am trying to achieve this but pretty lost.
I want to populate list of records into a dropdown combobox from DB. But I need the dropdown list to be checkboxes. So that users can select multiple options.
Ive been using Devexpress components...
Hey,
===Preamble===
The title pretty much sums up what I am trying to do. I have created a class to help me streamline dealing with Tiff images in .NET. The problem I am having is showing that image, and acting on the file at the same time.
...
I'm trying to get the value of the hidden field "hidden1", but for whatever reason my Javascript code is not working.
Any help would be appreciated.
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
Hello Experts,
I have the following HTML Markup below. Everything works fine except that the TextBox Control that I have to add based on the information from AJAX website tells you to use a TextBox for the content. My problem is that when I...
Hi,
Lets say I have a text file.
Always when I try to write to it with the following code, It erases what was already in it:
// create a writer and open the file
TextWriter tw = new...
I'm having problems using the .NET 2.0, System.DirectoryServices assembly to perform a simple LDAP search.
I'm using the following code to perform the search.
1 public void LDAPSearch()
2 {
3 try
4 {
5 ...
Hi,
I am using
=FormatDateTime(Fields!myD
My reginal settings are "DD/MM/YY". So why is it returning "MM/DD/YY"??
I have other reports developed at the same time on the...
I am creating a method to set visibility false on a certain panel and then widen another div to consume the rest of that content area in my current design.
However I cannot figure out how to change the class attribute of a div tag that is set...
Good Afternoon,
Have an Adobe Acrobat I/P form that has 200+ fields - have easily updated the TextBoxes in this input document using iTextSharp and PdfReader/PdfStamper logic that is in thousand of sites on the web but need to also update...
Hi everyone,
I am new to a company using infragistics controls. I am using Ultrawebgrid v2. I have used .NET gridviews but there is almost no help online for Infragistics stuff. I want to add a checkbox column as the first column in the...
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...
Good morning all, I'm coding a project in visual basic 2008 professional. In essence this part of the program captures a signature drawn on the screen by a digitizer, I want to capture this to a bitmap file so I can do things with it later. I...
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...
Hello,
I am trying to pass a data set to a crystal report. The following is an example of the code I am running the the constructor of the crystal report view form.
CrystalReport1 report = new CrystalReport1();
crViewer.Visible =...
Hi guys. I have just changed the default identity for my Website's application pool. The reason ive done this is to run the site's scripts as a specific user so it has specific access to files.
Once change the Application Pool identity from...
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....
Hi experts! I'm having a problem using a WebClient. It seems that I keep getting the old "process cannot access the file because it is being used by another process" excpetion. Somehow, my own code must be causing this problem, because even after...
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...
Anybody manage to select a printer tray for printing?
Dim pd As New PrintDocument
pd.PrinterSettings.Printer
Now I want to enumerate the available printer trays, (say in a combobox),...
Hello Experts. I'm getting into this MVC thing with Entity Framework and I'm loving it. However, I've been hitting snags left and right when it comes to this many-to-many relationships. Here you'll see the database diagram:
and here are the...
Hi,
I am currently using the RDWeb Access with Windows Server 2008 R2 formely TSWeb. I would like to have the tick automatically checked on the option that says "I am using a private computer that complies with my organization's security...
Can some one help me convert let say "14.5" into "14,5" and vice versa using Globalization. I tried what I could in vain and finally I had to use String.Replace which is not a viable solution for me.
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...
I need to be able to decrypt a string that is encrypted with a certificate using SHA1-RSA. This is being used to integrate a .NET application with authentication from an existing system that cannot be changed.
Please provide sample code, or a...
Hi Experts,
I have a devexpress gridview bound to sqldatasource. On the selection of a row in this grid I want to pass student Matric No to second Dexexpress gridview so that it gets populate too with student data. I can get the Matric no,...
Hi Experts,
I have some code I am using where I split a comma delimited file (originally and excel sheet) into columns to insert into a table via dataset. Now I need to modify the code so that I can choose to read specific columns only from...
Hi, I'm having trouble capturing LeftButtonDown and MouseDown events for the button in Wpf. Right button events are captured fine, but left seem to be ignored. Is this a WPF bug or am I missing something really simple?
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 help with sending a file to a remote server using a POST request (along with other either POST and/or GET data).
I have researched this an the only thing that does both (GET and POST at the same time) I have found is cURL.
I have used...
I'd like to simply load a crystal report, pass in parameters, and print. I tried PrintToPrinter, but I got a database login failed and from research it seems that I have to set the printer which could be anything. So I pulled in a report...
I am using kerr.credentials - which is a win32 assembly. My c# app works fine with this until i deploy it on a machine without visual studio installed. Then it cannot load the win32 assembly (which wraps native c and c++ code).
How can I...
Hey,
I've lost my Visual Studio .NET 2003 Pro Preqrequisites disk. I need to know what the prerequisites are so I can install them manually.
I already have the following installed:
- WinXP SP2
- Microsoft .NET framework 1.1
- Microsoft...
I am able to upload a program to the barcode scanner, with CE 5.0, and it has wireless access to the LAN, but I am not able to scan. I probably will need libraries, and I will have to activate them. Please some help.
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...
Hi All,
I have been trying to programmatically set the outcome for an approval task in Sharepoint 2010. I created a sample SP Designer workflow to assign two tasks in parallel to users on my computer, so two approval tasks are created when an...
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...
Hi
I am using Telerik RadGrid control to display display from a dataset.
Based on the data in a particular column of the row I would like to display different background color for different rows.
Let me say for example I have column called...
Hi experts,
I have string ="11/111/112/113/114/115/"
I need convert it into ArrayList() by using C#
ArrayList displayList = new ArrayList();
displayList[0] = 11;
displayList[1] = 111;
displayList[2] = 112;
displayList[3] = 113;...
Hello,
How do msiexec uninstall the Installled component using the product code. how it gets the installed path and removes the component from the comuter.
Also in...
I am using Telerik RadGrid control to display display from a dataset.
Based on the data in a particular column of the row I would like to display tooptip for this row.
Let me say for example I have column called MARKS in my grid, if this column...
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...
Hello,
I need some help from someone who has already use the webBrowser control along with a proxys.
What I need is the following.
1 - Set a proxy for a webBrowser control.
2 - Load a specific site.
3 - Execute a routine over the site....
I have RadTabStrip from Telerik.
In a javascript function I would like to find the index of the selected tab. How is best to do that?
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...
Hi experts,
As the title says all: Where to download .Net Framework 1.1.4322? I have a program that require to have .Net Framework 1.1.4322 to be installed. I have tried to search for that download in microsoft.com All I have found was .Net...
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 .NET webservice that is called from a .NET webserver. If it takes more than 90 seconds for the webservice to return data, there is a timeout exception from System.web.services
Where can I increase the timeout value to prevent this...
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,
I have a infragistic ultragrid populated from database.Also , i have a text editor as editor control for some colomns.The data in those colomns will be 'o' sometimes which is displayed as 0.000. What i want to do is if at all the value is 0,...
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...
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...
One of our applications (which worked fine yesterday!!) now generates the error "An unhandled exception of type 'System.StackOverflowExcep
Description: An unhandled exception...
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...
We have a problem with the use of .NET System.DirectoryServices.A
We are have 2 domains (in the example called dom1 and dom2). Domains are trusted, and we can add dom1 members to dom2 groups. If I have understood correctly then a...
Hi Experts,
I need some help here.
I hope this is a quick one but I can't seem to figure it out.
I have a TreeView with CheckBoxes.
I need all child nodes to be checked automatically if user checks the parent Node.
Thank you in advance
Currently I'm working on a reporting website in VS 2010 using ASP.Net 4.0 and the 2010 RDLC designer. The report I'm building is similar to a Master-detail report, but I'm trying to do it with nested tables. I'm pulling my data programatically...
Using reporting services I am trying to set the visibility on a text box using the IIF condition.
if parameter value != -1 then show report
else if parameter value = -1 and parameter value => -1 then show report
else if parameter value = -1...
Hi,
I've read plenty of posts about incompatibility of standard OLEDB and ODBC drivers with x64 Windows systems. But due to specific reasons I cannot run my IIS in 32bit mode. Is there any free or commercial ODBC driver which would allow me to...
I have an xml document with 100 nodes, each node has 10-15 attribues.
I iterate through the nodes and try to read all the 15 attributes and store it...
If the attribute does not exists in the node, then ...
Hi Experts,
I'm struggling with a webservice that I have created.
If I connect to it using another .net windows application, I'm able to connect and run a web method correctly.
I put this application on my clients pc and it still works...
Hello, I have the following code, I put this into App_code.
public static void PrepareGridViewForExport(C
{
LinkButton lb = new LinkButton();
Literal l = new Literal();
string name =...
Hi,
I want to print a receipt after each sales transaction in my application under VB.Net. I use the receipt printer to print the receipt. I can find one method to do so (directly send the btyes to the printer). But the problem is the receipt...
newbie question,
how do i create a char array in vb.net. i'm translating the following code to vb and am able to create an unsigned int array in vb, but not a char array with hex bytes as shown in the last line of the following example.
//...
A VB .net application won't run on 64 bit Windows 7. I read that I can use "corflags.exe" to run the program but can't find it. I unsuccessfully tried downloading it from a few differenct web sites, and I also tried installing .net framework...
Hi ,
Could you please suggest some good references for XAML tutorial, starting from beginner to advanced.
Thankyou
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...
I am trying to read the app.config of a winform exe from within a DLL that is called by the EXE.
I am using the code given below, the variable 'config' is picking up the EXE ok, but how do I access the app config settings from here? I want to...
I switched my TFS server to a new domain and what a headache. I'm down to the following problems:
*On reboot I get several errors in my error log:
*I can access sharepoint central administration ok
*I can kinda connect in team explorer. I...
i am getting this error using updatedpanel in ASP.NET with AJAX
Control with ID 'UpdatePanelClient' being registered through RegisterAsyncPostBackContr
I've been getting this error message, "CS1012: Too many characters in character literal". I want to execute a javascript function when an asp button is clicked.
Here's the l.ine of code that's giving me the problem...
<asp:Button...
Hi Experts,
I'm sorry I thought I had this sorted but when I came to put all the snipets of code together that I received from other questions it went badly wrong so I really need to go from scratch to get my head round this as I'm pretty new...
I have a .NET 4.0 WinForm app. I am using a GridLookupEdit to select a company that fills in a XtraGrid GridControl. These are DevExpress controls.
Everything works fine until I hook the GridLookupEdit dropdown to the GridControl. The grid...
Hi,
I have written my own custom gina, which then calls into a .net assembly(dll).
Within this assembly im trying to connect to a SQL database, but receive the following error:
The type initializer for...
Is there any way to append to a csv file (and retain the proper formatting)...
This is what I currently have, but each loop will over-write the csv file... out-file is able to append, but the formatting stinks... export-csv would be the best...
Getting the error some time in the line below:
DataRow[] drGroupConstituentsClient = dtGroupConstituentsClient.
Error: Min (3) must be less than or equal to max (-1) in a Range...
I have an ASP.NET application with which I need to generate several forms and reports. The form I am asking about requires two parameters, the Client ID and an Authorization Number. These two pieces of data are stored as session variables in...
I need to print a page with a list. The way it is set up is that the first page have a header with the list of up to 20 lines of items. If there are more than 20 then an additional age will be printed starting with item 21 to upn to 50 (total 30...
I have a Word form letter template with the following fields:
«EmployerName»
«EmployerAddressLine1»
«EmployerAddressLine2»
«EmployerAddressLine3»
«EmployerCity», «EmployerStatePostalCode» «EmployerZipCode»
In a windows application the...
Hi,
We recently bought Asp.net Ajax control. We are migrating to asp.net grid ti radgrid. In my grid I ma editing and updating my rows. When I am trying to implement that in radgrid I am getting too many errors. Can any one help me how to do...
Hi!
What I would like to do is have my application launch a word document which has fields specified (just text). For instance:
<firstname> <lastname>
<city>, <state> <zip>
Then I would like for my app to find those tags and replace with...
Hi Experts,
Need help looping through a dataset and populating 2 textboxes with values. I'm building a webpage using VB.NET with an Access database. I'm using a dataAdapter(daNews), Dataset (dsNews) and a DataTable (dtArticles). The...
Hi all,
I am trying to update the Vehicles table of my database.... All the fields to be updated are string type. When I run the following code there is no error and the msgbox displays but the record doesnot get updated.... I have...
Hi,
I am developing an application with win forms. I have added a web browser control to the form. And I am navigating one of dsa URL. I have written the code to refresh every 30 seconds. But whenever refresh occures I am getting following...
I have an SSRS report that takes on parameter. I need to loop through an array of the parameters, pass it to the report, generate a pdf of the report (i don't need to see view it at this time), save it, and move on to the next item in the array...
I've created a gridview populated with data from a SQL database and added a checkbox to each row using item templates. How do I pull back data from the grid to a variable based on what the user has selected?
For example I have a list of 5...
We are trying to move some utility programs from VB6 to .NET - in VB6 doing SQL statements with Access was simple - but I do not see an easy way to open the database now - I am looking for sample code that will make this easy for inhouse...
Hello experts,
I am utilizing a WebBrowser control. I have a custom toolbar that accesses certain features of the control, one of them being a print button. The print button calls the ShowPrintDialog() method to display the WebBrowser's...
I have a program that dumps the database info into a dataset and then the user can delete certain records in the dataset. Now I need to take the changes the user has made, either a record change or a deletion of a row and update to the real...
CodeCruiser
588,856
Sage
6,000 points yesterday
Profilekaufmed
377,702
Wizard
10 points yesterday
ProfileBuggyCoder
268,007
Guru
1,600 points yesterday
ProfileTheLearnedOne
232,552
Guru
4,900 points yesterday
ProfileIdle_Mind
193,005
Guru
0 points yesterday
ProfileJamesBurger
156,812
Guru
2,000 points yesterday
Profilewdosanjos
124,308
Master
2,000 points yesterday
ProfileDhaest
115,720
Master
0 points yesterday
Profilesedgwick
112,918
Master
1,600 points yesterday
Profilenepaluz
101,325
Master
0 points yesterday
ProfileMlandaT
95,921
Master
2,100 points yesterday
Profilenavneethegde
74,442
Master
0 points yesterday
ProfileMasteraco
70,367
Master
0 points yesterday
Profilebinaryevo
70,365
Master
0 points yesterday
Profileambience
69,104
Master
0 points yesterday
Profileemoreau
68,230
Master
0 points yesterday
ProfilePaulHews
49,486
0 points yesterday
ProfileAndyAinscow
45,290
0 points yesterday
ProfileChinmay_Patel
43,411
0 points yesterday
Profileged325
41,700
2,600 points yesterday
ProfileRolandDeschain
41,317
0 points yesterday
Profilenishantcomp2512
39,486
0 points yesterday
ProfiletommyBoy
36,550
0 points yesterday
Profilemroonal
35,000
0 points yesterday
Profilesanthimurthyd
34,650
0 points yesterday
Profile