|
If the contents of the panel fit within the width of the panel then the horizontal scrollbar shouldn't appear. I just tested this out of curiosity.
Are you sure the contents aren't being clipped horizontally? Perhaps an overhanging label?
Otherwise you could expand the panel until all contents fit.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
my application should copy specfic row at click event
and i used find method to search rows
my code as follows:
for each dr as datarow in sourcetable.rows
dr=sourcetable.rows.find(textbox1.text)
r=destinationtable.newrow
r("column1")=dr("column1")
r("column2")=dr("column2")
r("column3")=dr("column3")
destinationtable.rows.add(r)
next
but when the code executed the destinationtable rows exceeds according to the source table rows count .
all i need is to copy the displayed row (one row at time)
many regards
|
|
|
|
|
The reason for this behavior is quite simple. In your code you loop through all the lines in the source table, and you always add a new line.
dr=sourcetable.rows.find(textbox1.text) seems a bit strange to me. dr already represents a row from sourcetable (because of the loop), but you try to assign it a value from that same table.
If the line dr=sourcetable.rows.find(textbox1.text) even works at all you need to forget about the loop. Otherwise try something like:
For Each dr as DataRow in sourcetable.Rows<br />
If dr.Item("Name_of_the_column_you_are_searching") = textbox1.Text Then<br />
'create the new row according to you code<br />
'so a new row only gets created when<br />
'textbox1.Text is found in the sourcetable<br />
next
Hope this helps,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
thanx johan
i'll try your code
regards
|
|
|
|
|
i want to grid control for a form for backend of xml can i able to do ?
pls explain if yes means how ?
sathish
|
|
|
|
|
Why would you want to use msflexgrid ? .NET is full of grids, which can take XML as a data source.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to multiple entries like record type and i want to store it in xml that only i want to use flexgrid with xml
sathish
|
|
|
|
|
That made absolutely no sense at all. MsFlexGrid doesn't handle XML and neither does the DataGrid or the DataGridView in the .NET Framework. The XML is handled by the DataSet and DataTable classes, which are bindable datasources for the DataGrid and DataGridView classes. They won't work with the older-than-dirt FlexGrid.
|
|
|
|
|
hi all
i am using notepad to make a web page
so please tell me how i can connect to database mysql from notepad
thanks
hi
|
|
|
|
|
You can't connect to a database from notepad.
If you mean how to write code to connect to the database, there are thousands of examples out there. Just google for something like "vb.net connect mysql". When you have looked at some of the examples, you can come here with more specific questions that are more suited to be answered in a forum.
---
single minded; short sighted; long gone;
|
|
|
|
|
paras_s12 wrote: how i can connect to database mysql from notepad
It cannot be done.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i have a textbox for user key in the value, but i need to convert the data into two decimal place, for example,
user input: 123
then i will put this input to a function to convert it into 123.00
user input: 123.456
then i will put this input to a function to convert it into 123.45
how i code this function ?
Regards,
Chee ken
|
|
|
|
|
Dim Result as Decimal = Ctype(FormatNumber(UserInput,2), Decimal)
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
I had downloaded the spftware "XAN Game studio Express".
On msdn.com site thet had shown that we can make games using 1)Visual C# 2) Visual Basic 2005 Express Edition & 3)Visual C++ Express edition.
I had knowledge of c++ ,c & VB.Net
But i dont know about C#
So can i make this game using VB.Net ???
Please help needed urgently
HERE IS THE LINK : http://msdn.microsoft.com/vstudio/express/game/[^]
|
|
|
|
|
At the moment XNA game studio express just works with C#. There is no technical reason why you cant use the XNA framework with VB.NET because XNA is basically just an extension of the dotnet 2 runtime.
The things you will be missing most using VB.NET is the game templates but as long as you add the correct references to your VB project you should still be able to use XNA.
I will just add a slight correction to what i have just said. It applies to XNA dev for the PC only. VB.NEt automatically adds references to the microsoft.visualbasic namespace which is not available on the 360. The link below should provide all the info you need.
http://www.alanphipps.com/VisualBasicdotNET-XNA.html[^]
Jon
|
|
|
|
|
Hi,
I am reading from a CSV file. I have a drop down with the name of the column header. I loop through the rows in a data set. The value in the CSV file is R 106.80. I am using VB.NET 1.1. Here is my test code:
Dim boolReturn As Boolean
Dim dblResult As Double
boolReturn = Double.TryParse(ds.Tables(0).Rows(i).Item(ddlSitePrice.SelectedItem.Text), NumberStyles.AllowCurrencySymbol, CultureInfo.CurrentCulture, dblResult)
Response.Write(dblResult.ToString() + "<br />")
The result it brings back is 0, why doesn't it want to convert?? I am past frustrated.
Please can someone help me??
Regards
ma se
|
|
|
|
|
Have you checked the value of the boolReturn variable, so that you know that the parsing worked at all?
Is the current culture suitable for parsing the data?
---
single minded; short sighted; long gone;
|
|
|
|
|
do doubles start with 'R' in your language ?
|
|
|
|
|
Sebastian T Xavier wrote: i am developing a text editor windows forms in c#.
Hmmm...maybe you should try the C# forum then.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
I want to access a file from a remote machine through a VB.net windows application. How it can be done?
|
|
|
|
|
Hi
you can do it very easily, i developed a software where my word file were saved and accessed from a single server. to do that you have to customize the accessing path for file that is : -
path="\\servername\drivename\path.extension"
*here server name is the remote computer name is your network.
*drivename is the sharable drive name of the server (but here you have to mention the share as name for the drive and dont use : after drive letter.
with regards
Yogesh Agarwal
|
|
|
|
|
I need to in step wise ,how to create DB in SQL server 2005,
I would like to have an explian about it also
|
|
|
|
|
Pls post your Question in the Suitable Forum.
For more Details about Creating Db in Sql Server 2005 Get it[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
I'm developing an application for a samll company to handle their customers over the phone for my second year project.
What I want to know is how to set the user (administrator/client) privilages and how to validate when they are logging on to the system.What kind of security part I can include for this project and how should I retreive data from the SQL database.
|
|
|
|
|
Are you looking to do this from the database level or from within your app?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|