I have a UserControl, containing a FormView, containing a DropDownList.
The FormView is bound to a data control.
Like so:
<asp:FormView ID="frmEdit" DataKeyNames="MetricCode" runat="server"
DefaultMode="Edit" DataSourceID="llbDataSource" Cellpadding="0" >
<EditItemTemplate>
<asp:DropDownList ID="ParentMetricCode" runa...
I'm creating a GroupBox at runtime and setting its Text property. Usually, the text is only on one line, but sometimes it wraps. The problem is that the controls contained in the GroupBox cover up the GroupBox's text.
What I'd like to do is determine if and when the text wraps. Specifically, I'd like to determine how much extra height t...
Hi,
I'm having problem with MS Chart chart type column. If there are only 9 bar in the chart like the following picture, then the axis-x label show up properly.
However, there are more than 9 bars bar the chart, the axis-x label wont show up properly, some of them just dissappear.
Here's my mark-up for the chart:
<asp:Chart I...
I want to find & enumerate explorer.exe.
Found 'EnumChildWindows' API call but how to 'get' explorer.exe hwnd ???
...
i need to use a single button for all forms in a vb.net project.
The single button should be called in the forms to perform operations.
For eg.,
In a form i need to save, update the records.
When i call the button, save and update buttons should be appeared at runtime
using the single button.
guide me....
...
I am trying to create a text file using VB.Net with UTF8 encoding, without BOM. Can anybody help me, how to do this?
I can write file with UTF8 encoding but, how to remove Byte Order Mark from it?
Thanks in Advance.
edit1:
I have tried code like this;
Dim utf8 As New UTF8Encoding()
Dim utf8EmitBOM As New UTF8Encoding(True)
...
Hi guys I always got this error from my site and it keeps bugging me.I've been trying to figure out the cause of this error but I can't really figure it out.
Here's the stacktrace:
at BasePage.Page_PreInit(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e...
I made a custom scrollbar that sits beside a normal textbox.
I would like to scroll the text box like you would any other one with my control. How can this be done?
Thanks.
...
Hi,
I have small web app that generate PDF files as a report. I'm trying to delete those generated PDF files after 10 sec that they are generated. What I want to do is to read a folder with PDF files every 10 sec, and delete all the PDF files inside that folder.
I read this post of Easy Background Tasks in ASP.NET. The following code i...
I've found this at connection strings.com
http://connectionstrings.com/mysql
Do I need to download connector-net from this site: http://dev.mysql.com/downloads/connector/net/
I recycled the code that I used in connecting vb.net with ms sql:
Imports system.data.sqlclient
idnum = TextBox1.Text
lname = TextBox2.Text
fname = Text...
I get this error, while I'm testing the code below:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[student](ID, LASTNAME, FIRSTNAME, SCHOOL) VALUES ('333', 'aaa', 'aaa', 'aaa')' at line 1
I just recycled the code that I used in manipulating ms sql...
I'm trying to add a datagridview in vb.net, but it does not allow me to change the connection string or the database that should be imported to connect to it. The only thing that I'm seeing is the previous ms sql database that I connected with datagridview and everytime I click the new connection, the window closes and it leaves me with ...
I have a winform project which lists all the files in a specified folder. It allows the user to select a new destination for each file, and when the user has chosen the destinations for all files that he would like to be moved, it moves the files, one by one.
My next step is, I need to display a confirm form when the files are being mov...
Hello!
I have several entities I need to make IEquatable(Of TEntity) respectively.
I want them first to check equality between EntityId, then if both are zero, should check regarding to other properties, for example same contact names, same phone number etc.
How is this done?
...
I hav visual studio 2008 project and in client computer in crystal report there occurs error and the message is "CrystalDescision.CrystalReports.Engine, Version=10.5.3700.0,Culture=neutral..."
so how can i load cyrstal report without installing visual studio 2008...
...
LastInput.time is an Integer and m_idleTime is an Integer too. This line sometimes generates an Overflow exception, I think that this happens when both values are big negative values.
(Environment.TickCount - lastInput.time) > m_idleTime
How can I avoid that? With casting?
(CType(Environment.TickCount,Long) - CType(lastInput.time,Lon...
How do I get to increment a textbox content after clicking on a button?
...
I have the following code that I need to migrate from VS 2003 (.Net 1.1) to VS 2008 (.Net 2+)
but I get compilation error -
System.Xml.Xsl.XslTransform' is obsolete: This class has been deprecated.
I probably need to use System.Xml.Xsl.XslCompiledTransform instead.
but I do not find the matching Load() and Transform() overload versions...
The current applications uses .net printdocument to create print jobs which it sends to a standard printer. We use the blackice tif print driver to capture the output and manage it from there. The problem is that some print jobs take 30 seconds to come out of the queue, and blackice will not allow you to change settings on the driver (li...
Hi,
I'm trying to send an image to Imgur's server.
Everything went fine and I'm getting the URL of the image from the parser but when I'm trying to open it on the web browser, I'm not getting the image... only a "broken image" icon.
I think it's a problem in the convertion to the byte array.... but I don't get it. please let me know/fi...