|
Hi.
How we can change the header text of the columns which r bounded from the databse
AS I donot want to show the the datafield name on the headre text of the columns in datagrid
e.g.
Dept_Code
Instead of this i want to display it as
Department Code
Hema Chaudhry
|
|
|
|
|
You could do it in your SQL SELECT statement:
SELECT Dept_Code AS [Department Code] FROM table
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes this can be a very good option
Thanks a Bunch
Hema Chaudhry
|
|
|
|
|
hi friends.....
help me.. i want an exe file to autoplay cd. that exe file - create in vb6?
thz
kamal
|
|
|
|
|
Windows has this built in already. What are you really trying to do? More specifications of your app would help.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave Kreskowiak
thank you for your reply
I mean that the cd autoplay a exe file on it, that exe made with VB does not work without install VB. How can i make exe file without framework (Support files) For example many programs on a CD. That cd autoplay exe which made with me ask what program you are going to install.
Thank you
Kamal
|
|
|
|
|
Write your .EXE in C++.
There are projects out there that can compile a .NET Framework Managed code-based app (like C# and VB.NET) into an native .EXE with that the required runtime support. They cost $,$$$ and have their limitations and restrictions.
I don't ever recommend using them...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Guy's,
Can any one Help me i want to highlight perticuler text from sentance using the vb script. for examlpe :
When Ever the form load it will give me the greeting
'Hi Sasmi' (in which 'Sasmi' should be Hilighted).
Sasmi
|
|
|
|
|
Highlight the text in what control? TextBox, RichTextBox, ... This makes all the difference in the world.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
My first preference is 'TextBox' control, but it is really helpful for me if you sent the 'RichTextBox' control also.
Thanks for your Response…
Sasmi
|
|
|
|
|
The TextBox doesn't support different fonts, or styles of fonts, in the box at the same time. You'll have to use a RichTextBox for this. Look into the .SelectionStart , .SelectionLength , and .SelectionFont properties.
You'll want to specify the SelectionStart and SelectionLength properties first, then set the SelectionFont property to how you want the selection to appear in the RTB.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey everyone, my name is Mike and I host and run a group in the United States called AlienX Software (www.alienxsoftware.com) the site is anything close to being done but what I'm looking for is a group of dedicated devoted developers who love what they do to be a part of the AlienX Team. Wilson and I (the other guy working on this project with me) are working on a few programs so far, and are looking to work on a lot more in the future. Projects consist of Arctic Fox (a desktop app that is designed for students high school/college that is designed to help the student in the study of chemistry. It converts chemical formula's does citations in MLA format for reports and written projects, allows you to log into AlienX for online help, the list goes on...) Media Center (not yet in development) Cam Crawl (uses a proxy to get around firewall settings, etc...). There are many more projects that we would like to start down the line but seeing as how there is only two of us. We would like more people to help out and be a part of this project, those who help get 100% credit to the source and development they produce, get there own personal staff page on AlienX, and get to work with an awesome dedicated team.
I have been looking for great developers out there and have found the best on the codeproject. I would like to state that I need more than just VB .Net developers, if your a web developer, flash developer, graphic designer, even C++ and C# developer, we need help everywhere, this site is so new google hasn't even crawled it yet. Wilson and I would really appreciate all the help we can get. Thank you everyone for taking your time to read this, sorry for the long note
If you have any questions or would like to be a part of this project please email me mclark@alienxsoftware.com
~ Mike
mclark@alienxsoftware.com
|
|
|
|
|
Anyone knows how to create listview with 2 checkboxes?
Thank you
|
|
|
|
|
Here is the code from the tutorial.... may make more since if you can go to
http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
<% @Import Namespace="System.Data" %>
<% @Import Namespace="System.Data.SqlClient" %>
Sub Page_Load(sender as Object, e as EventArgs)
BindData()
End Sub
Sub BindData()
'1. Create a connection
Dim myConnection as New SqlConnection(
ConfigurationSettings.AppSettings("connectionString"))
'2. Create the command object, passing in the SQL string
Const strSQL as String = "sp_Popularity"
Dim myCommand as New SqlCommand(strSQL, myConnection)
'Set the datagrid's datasource to the datareader and databind
myConnection.Open()
dgPopularFAQs.DataSource = myCommand.ExecuteReader(
CommandBehavior.CloseConnection)
dgPopularFAQs.DataBind()
End Sub
<asp:datagrid id="dgPopularFAQs" runat="server">
|
|
|
|
|
And the question is...??
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It appears there is a a stored procedure to get the code to work? I am not sure what he is doing there with the code to get it to work?
|
|
|
|
|
The tells the SQL server to execute a stored procedure, called "sp_Popularity", stored in the database specified in the connection string.
The stored procedure in the database runs on the SQL Server and returns a set of records. The ExecuteReader method returns a SqlDataReader object that the DataSource property of the DataGrid uses to retrieve those records.
In order to get the code to work, you'd need a connection string that specifies a database to connect to on an SQL Server, and either a SQL "SELECT" statement or stored procedure that returns records from that database.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave, I knew there was something missing.
I can get it to work the way I have been taught but I don't know how proficient it is ie:
Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
‘added the dsAuthors.Clear() method which clears any present data
dsAuthors.Clear()
‘added this statement to get the dsAuthors dataset I created
SqlDataAdapter1.Fill(dsAuthors)
‘added This was to bind the Datagrid I made
DataGrid1.DataBind()
DGKenn.DataBind()
|
|
|
|
|
I am not sure how he gets the data from the database using the code he has. If I try just using that code it does nothing and rightfully so since I can't see where he is getting the db info.
Remember I am a real newbie here to programming
|
|
|
|
|
I am new to VB.Net and I having some difficulty with the new codes.
I wrote the following code in VB6 and trying to implement the same technique in VB.Net.
autosql = "select * from orders"<br />
Set myorder = mydb.OpenRecordset(autosql, dbOpenDynaset)<br />
<br />
If myorder.EOF Then<br />
x = 1<br />
Else<br />
myorder.MoveLast<br />
x = myorder!autono + 1<br />
End If<br />
addordstring = "insert into orders values(" & x & ",'" & mebdate & "','" & txtaccount & "','" & phone & "','" & coname & "','" & psgname & "','" & cabno & "','" & authname & "','" & driver & "','" & mebpick & "','" & wait & "','" & mebdrop & "','" & from & "','" & txtto & "','" & fare & "')"<br />
<br />
Set addorder = mydb.CreateQueryDef("", addordstring)<br />
addorder.Execute<br />
MsgBox "New entry has been added", vbOKOnly + vbExclamation, "Success"<br />
clear<br />
End Sub
Can someone help please.
Thanks.
|
|
|
|
|
|
Hello
I was trying to find a solution to my problem with combobox
Here is my problem. I have 2 combobox and I have created a realtionship between them, so the value of the second combo will depent on the selection of the first. Now my problem is how do I get the AccountID from the second box ?
Here is the code(I'm using access DB):
" Dim ds As New DataSet
Dim cmdString As String = "select * from tblOrganization"
Dim da As New OleDb.OleDbDataAdapter(cmdString, con)
da.Fill(ds, "tblOrganization")
cmdString = " select * from tblAccount"
da = New OleDb.OleDbDataAdapter(cmdString, con)
da.Fill(ds, "tblAccount")
Dim relation As New DataRelation("ArtAuth", _
ds.Tables("tblOrganization").Columns("Organization _ID"), _
ds.Tables("tblAccount").Columns("OrganizationID") _
)
ds.Relations.Add(relation)
cbOrg.DataSource = ds
cbOrg.DisplayMember = "tblOrganization.Organization_Name"
cbOrg.ValueMember = "tblOrganization.Organization_ID"
cbAccount.DataSource = ds
cbAccount.DisplayMember = "tblOrganization.ArtAuth.AccountName"
cbAccount.ValueMember = "tblOrganization.ArtAuth.AccountID""
|
|
|
|
|
Hi Guys!! Sorry for the mess i made with my ID. i actually couldnt register on your site so i had to use a login ID i got on the Net with a password. So i used it for the time being. Hey, i guess you guys didnt hear about David Smith who is implementing Bittorrent in C#. Well he has released a library in .NET which i can now use for my Project. Plz dont think of me as some lame Guy who just need good code to use in his own work. Im in my Final year of Information Technology and well im also a State Level Cricketer. I play for Mumbai, India, if you guys have heard of it. So i have very limited time to slog on my PC. Im doing this project with my GirlFriend and we need something that will help us like a Library, which could atleast make us understand what the Network Management actually performes. Anyways, i'll definitely keep in touch with you guys and let you know my progress. If i need some help, i'll be counting on you. Can I??? Thanx. Cya. Bye. Take Care you Guys. Code Project Rulezzzzzzzz!!!!!!!! ;)
Devraj Raut!!!
|
|
|
|
|
Devraj Raut wrote: Hey, i guess you guys didnt hear about David Smith who is implementing Bittorrent in C#. Well he has released a library in .NET which i can now use for my Project
Didn't I pointed it out to you here[^]
Devraj Raut wrote: Code Project Rulezzzzzzzz
That's better.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Hey Colin!! This was for those guys who said that there is no Library in .NET for BitTorrent. Your Link was of great help. i heard the 55 min longinterview of David Smith. It was very interesting. i also got an open Sourse Bittorrent Client called BTSharp along with its Source. That might prove to be of enormous Help. Thanx Dude. Cya Later. CodePoject Rulezzzzzzzz!!!!!!!!!!
Devraj Raut!!!
|
|
|
|