|
Thanks Mike, Thanks a lot for that elaborated reply which helped me to clear my doubt. and i've voted 5
|
|
|
|
|
i need to create a setup file for a database project in vb.net that will create a database and also install a server when the setup file will be installed.and that program will be run in any other computer which have no vb.net or sql server.
that means sql server and .net framework and database will be installed by the setup file execution like any other software.
please help me.
|
|
|
|
|
Have you done a search for articles here on CP? If I recall, there may be one or two...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hello all
Does anyone know how to produce a windows form with no title bar that is
resizeable but also shows text on the taskbar button.
I can get what I need by creating the form, making the border sizeable,
removing the control box and removing anything from the 'Text' property.
Only problem then is that the button on the taskbar shows no text either,
just an icon and I need it to show text and the icon (as a normal form
would)
|
|
|
|
|
Cant be done:
the form shows the title unless it is an empty string;
the taskbar shows the form's title.
taskbar shows title ==> form shows title.
|
|
|
|
|
Luc Pattyn wrote: Cant be done
Well, unless he wants to write his own complete OS that handles such a thing, but who would want to use it. Kind of defeats the purpose...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
yes can be done.
Make FormBorderStyle to None and write customized form resizing code. now you can display Form text in Task bar as well.
Regards
Kaleem
|
|
|
|
|
Good for you, sounds like you solved it
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Just wanted to close the second circle around.
|
|
|
|
|
Hi
I have built a datagrid which should populate a set of images whose urls are stored in my database, and set each of the images in my datagrid to there corresponding addresses
I have a simple databind method which binds a dataset from a select query into my datagrid
But i am not sure how to access the image address return values, so that I can populate the values thru my datagrid.
here is my code this far
any help much appreciated
Cheers
Boyindie
<code> <asp:DataGrid runat=server ID=dgImage AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Height="73px" Width="385px" DataKeyField="imageId">
<Columns>
<asp:BoundColumn DataField=imageId HeaderText="Image ID" ></asp:BoundColumn>
<asp:TemplateColumn HeaderText=Products >
<ItemTemplate ><asp:Image runat=server ID=imageHolder ImageUrl="~/test/<%imagetable %>" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:ButtonColumn HeaderText="View item" CommandName=getDetails ButtonType=PushButton Text=Select></asp:ButtonColumn>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<EditItemStyle BackColor="#2461BF" />
<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<AlternatingItemStyle BackColor="White" BorderColor="#0000C0" />
<ItemStyle BackColor="#EFF3FB" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
</asp:DataGrid></code>
<code>'Builds .net mysql connection and passes connection string into method
Dim connection As New MySqlConnection(connectionString)
'Open connection to DB
connection.Open()
'Create mySql command string for passing query or SPROC(Stored Procedure)
Dim cmdString As New MySqlCommand
'Set Command to equal mySql connection, so can pass SQL query
cmdString.Connection = connection
'Set command string to equal SPROC
cmdString.CommandText = "sp_image"
'ONLY PLACE THIS IF SPROC, sets the command to a SPROC
cmdString.CommandType = CommandType.StoredProcedure
'Create dataAdaptor for passing data between .net and mySQL
Dim dataAdaptor As New MySqlDataAdapter
'Sets command object to datAdaptor
dataAdaptor.SelectCommand = cmdString
'Creates a dataset which will be filled with data from
'dataAdaptor
Dim ds As New DataSet
dataAdaptor.Fill(ds)
'Creates Table which is filled data from dataset
Dim dataTable As New DataTable
dataTable = ds.Tables(0)
'Sets datagrids source to datatable
dgImage.DataSource = dataTable
'binds ds to datgrid
dgImage.DataBind()</code>
|
|
|
|
|
Hello everyone ,
I have an application which I want analysing its performances.
CPU time, memory...
there are tools like Vtune...but I have to use .net performance tools or libraries.
But i do not have any idea about them
Someone can help me?
Thanks.
assia
hgfh
|
|
|
|
|
You can use the PerformanceCounter class which ties into the Performance Counter in the Administrative Tools section of Control Panel. You can pull down many different performance metrics with this class...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Ok thanks Paul
hgfh
|
|
|
|
|
You are very welcome, and I think there is an article or two here on Code Project about using the PerformanceCounter class.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
1) I'm running VS2005 under XP Pro.
2) I'm writing an ASP.net 2.0 app that provides user authentication/access to a classic ASP site.
3) The internal IIS server in VS2005 is not capable of running classic ASP code, so I installed IIS 5.x. I would like to have installed IIS 6, but that's evidently not possible under XP Pro (if anyone can claim otherwise, by all means, do so).
My problem is that IIS5 apparently is only partially aware that .Net 2.0 is installed on the machine. I can't seem to browse http://localhost (I get the access denied page).
Should I have installed IIS5 before installing VS2005, or am I simply missing some simple yet vital tidbit of info?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I haven't had a problem with .net 2.0, but I once had a problem with .net 1.1 where I installed asp.net first and then iis 5.X. asp.net did not work right. So I reinstalled asp.net and everything started to work correctly. So I think that is probably what you need to do. By the way there is no way for you to run iis 6.x on an xp pro box.
Hope that helps.
Ben
|
|
|
|
|
Look in the properties for the website (in IIS), and go to the ASP.NET tab. Check that you've selected the .NET 2 settings.
If there are problems, you may end up having to do an aspnet_reg.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I m new for .NET, i want to change the input language to "URDU" as soon as my application runs..... Bt i dont know how to do it any help?
(Jameel)
|
|
|
|
|
Hi
I was wondering if someone could assist me with this, my laptop has recently broken down and I have had to install visual studio on my desktop
But my desktop is running on Windows Media Centre, is it possible to run and asp application off this machine as i can't get my project to compile
Any help appreciated
boyindie
|
|
|
|
|
I presume since you posted this in the .NET forum you actually meant ASP.NET application.
If so then yes it is possible to do this on Media Centre edition of windows. What is the error you are getting - that might help track down the problem.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
I have sorted the error, jus realised i had downloaded an older version of the mysql .NET connector
cheers anyway
boyindie
|
|
|
|
|
When I am using Crystal reports in asp.net I want to Export the report but it shows an "Logon Failed Error".
|
|
|
|
|
shankari.L wrote: "Logon Failed Error"
Sounds like user credentials are wrong somewheres.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I haven't had a need (or the time lately) to look at Framework 3.0, much less 3.5... I was under the impression that the additions in 3.0 were Vista specific. If I'm not planning on hoping on that sinking ship, is there a point to using 3.0? Is 3.0 relevant to XP/2000? And along those same lines, what about Studio 2008 and Framework 3.5?
Obviously I need to look into it, but thought I'd get some preliminary opinions from you guys first.
|
|
|
|
|
3.0 is NOT Vista specific. Well, mostly... 3.0 is the 2.0 base class library with extensions for Windows Communication Foundation (not Vista specific), Windows Workflow Foundation (not Vista specific), Windows Cardspace (not Vista specific), and Windows Persentation Foundation (mostly Vista specific). A kind-of crippled version of WPF worked on XP SP2, but nobody I know uses it on XP. It works much better on Vista.
3.5/VS2008 has LOTS of changes. Read[^].
|
|
|
|