|
thanks for doing that for me
now i understand the mean of delegate but i still not understand how to use , i m tring to know about it
it will more easy to undertand if someone help me through example than read in webs
|
|
|
|
|
I don't understand - if I write up an example, it will just be another example on the web.
I suggest reading the articles, trying to follow them ( it's really pretty easy ) and asking specific questions if you get stuck. That way, you give yourself a chance to learn, and we're still here to help if you really can't manage on your own.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
man im really confused because i have two big problems and i dont know which should be solved first. if you give me codes so i will learn \ understand my self to see them
i need just codes
please
thanks
|
|
|
|
|
Seriously - any code I give you will be no better than the code in an article. If you can't understand an article, then you won't understand the code from me. So, just try.
You realistically have three options
1 - stop coding
2 - pay some one to do it for you
3 - learn how to do it.
I don't have enough info to give you code any better than what's on 100 articles, but even if I did, that would not be helping you. What you want to do is very straightforward. Read an article, think about it, and try to write your own code that follows the (straightforward) example. Then, if you get stuck, at least you tried to write some code, and that alone will help you learn, even if you need to ask here again, posting your code and explaining what you've tried.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
man i read alot of articles but they dont have code that will help me
i can understand all code if you try to give or give any address for article
i search on google but nothing found
|
|
|
|
|
|
searching words
1.text change through form2 vb.net
2.form1`s text change
3.text changing
4. how to change textbox text from form2
5...... more
and man the address you give me i read all and i cant understand because it too advance and based on database,and im new in vb.net
thanks im still trying to get this
|
|
|
|
|
thanks man now the time is come to end this topic too , now i get the articles which can help me but they open only in vs 2005 , so now im thinking to buy it.however i read the codes of articles but it will more easy when it open as program
|
|
|
|
|
You needed to search for delegates - that's what I told you to use, so that's what you needed to search for.
xmen_xwk wrote: i cant understand because it too advance and based on database,and im new in vb.net
I reiterate - buy a book, a simple book, and work through it. Forget this project for now. If you can't understand those articles, then it's beyond you at this stage, so work up to it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi there
I`m a newbie to the programming in visual basic.
I have made myself a website in visual basic, and precompiling, and the ctrl+f5 utility is all working, and I`m pretty happy with the site.
But now let`s approach the problem:
I have tried to publish the site to my server, but al I get is a list of folders and files. The same happens when I upload via ftp.
I have a sql file attached to the website, but I dunno which program to use.
I`ve tried to use phpmyadmin, but with no luck.
Can anyone help a newbie please?
PS I use Visual Studio 2005
-- modified at 11:43 Saturday 30th September, 2006
-=Why Me?=-
|
|
|
|
|
Is ASP.NET running on the site ? If not, the server won't know what to do with an aspx file, you'll get a directory list or a message to say you don't have permission for directory browsing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well I don`t think that ASP.NET is running by default, But is there a way I can install it?
BTW thanks for the reply
-=Why Me?=-
|
|
|
|
|
If IIS is installed on a machine and you install the .NET framework ( make sure it's the same one your site uses, probably 2.0 ), it will install ASP.NET.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hehe.. I just found out that the webserver doesn`t support asp.net, so I changed my web provider.
This should be up and running in a few days.
Then I will probably drop in and bother all you nice people here with more newbie questions
-=Why Me?=-
|
|
|
|
|
I want open a file with my program as default when i click on that file
i need Delphi or VB code for this task when i execute my program setup and install my program a file for example when i click on *.Nouri this file open with my application i want a source code that if i install my program this task done no i go to My Computer->tools->Folder Option->File Types. Thanks.
|
|
|
|
|
How does this differ from the question that you asked six minutes earlier?
---
b { font-weight: normal; }
|
|
|
|
|
if you go folderoption in my computer and go to file type you can change
file extension; but i want change it in application that i write in Delphi or VB no in my computer->Folder Option -> File Type
|
|
|
|
|
You might want to open RegEdit and look under HKEY_CLASSES_ROOT. You'll have to modify the registry just as you see here. For example, if you wanted to modify the entry for the .TXT extension, you'll have to find the txtfile key under HKEY_CLASSE_ROOT. Take note of how the registry keys and values are laid out. What you put under here will change depending on what you want to modify. You'll have to look at a bunch of different keys for various file extensions to get an idea of what you have to change and how.
WARNING! Make a backup of your HKEY_CLASSES_ROOT key BEFORE you make any modifications. If you don't know what you're doing and why, you will screw something up and you're only recourse is to restore from the backup!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hellow to all ..
i am trying to build in crystal report , Matrix report , anyone have idea how to to this ?
if so please send me a link , or tell me , thxx
|
|
|
|
|
hi all...just wanted some help know how exactly images are shared in yahoo or msn messenger?
|
|
|
|
|
The following properties are being used within the class, however when they are called from within a private sub within the class itself, intXPositions and intYPositions show a value of zero, even when the value has been set.
public class mainForm
...
Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Initialize plateau.
Dim myPlateau As Plateau = Plateau.Instance
myPlateau.XPositions = 1001 ' x = 0 to x = 1000
myPlateau.YPositions = 1001 ' y = 0 to y = 1000
dtgPositions.DataSource = myPlateau.dsPlateauPosition
dtgPositions.DataMember = "PlateauPositions"
Me.Text = "done"
End Sub
...
Public Class Plateau
...
Private intXPositions As Integer
Public Property XPositions() As Integer
Get
Return intXPositions
End Get
Set(ByVal Value As Integer)
intXPositions = Value
End Set
End Property
Private intYPositions As Integer
Public Property YPositions() As Integer
Get
Return intYPositions
End Get
Set(ByVal Value As Integer)
intYPositions = Value
End Set
End Property
...
Private Sub initDataSource()
'Create PlateauPostions, a working dataset that retains information about
'positions occupied on the grid.
Dim dtPlateauPositions As New DataTable("PlateauPositions")
'define attributes
With dtPlateauPositions
.Columns.Add("xPosition", System.Type.GetType("System.Int32"))
.Columns.Add("yPosition", System.Type.GetType("System.Int32"))
.Columns.Add("occupied", System.Type.GetType("System.Boolean"))
End With
'enforce composite primary key
Dim colPrimaryKey(1) As DataColumn
colPrimaryKey(0) = New DataColumn("xPosition")
colPrimaryKey(1) = New DataColumn("yPosition")
'create dataset
dsPlateauPosition.Tables.Add(dtPlateauPositions)
'initialize positions as not occupied
Dim rowNew As DataRow = dtPlateauPositions.NewRow()
Dim intXCount, intYCount As Integer
For intXCount = 0 To intXPositions 'value is 0 when it is expected to be 1001
For intYCount = 0 To intYPositions 'value is 0 when it is expected to be 1001
rowNew.Item("xPosition") = intXCount
rowNew.Item("yPosition") = intYCount
rowNew.Item("occupied") = False
dtPlateauPositions.Rows.Add(rowNew)
Next intYCount
Next intXCount
End Sub
...
Jon
|
|
|
|
|
It's hard to say, as you haven't included enough of the code to follow it. You don't have any Instance , dsPlateauPosition or PlateauPositions properties in the class, and you never call the initDataSource method.
I see one problem in the code, though. You only create one DataRow object, so you would be adding the same data row to the table 1004004 times.
---
b { font-weight: normal; }
|
|
|
|
|
True, I actually excluded parts of the code intentionally (remarked with ...). I have updated the code to create a new row each time (see below), but the data set is still not being updated with rows.
Imports Rover
Public Class Plateau
'Singleton class. Must use Instance to initialize.
Private Sub New()
initDataSource()
End Sub
Public Shared ReadOnly Instance As Plateau = New Plateau
Private intXPositions As Integer
Public Property XPositions() As Integer
Get
Return intXPositions
End Get
Set(ByVal Value As Integer)
intXPositions = Value
End Set
End Property
Private intYPositions As Integer
Public Property YPositions() As Integer
Get
Return intYPositions
End Get
Set(ByVal Value As Integer)
intYPositions = Value
End Set
End Property
Public ReadOnly dsPlateauPosition As New DataSet("PlateauPositions")
Public Function isOccupied(ByVal Location As Coordinate) As Boolean
End Function
Public Function setOccupied(ByVal Location As Coordinate) As Boolean
End Function
Public Function clearOccupied(ByVal Location As Coordinate) As Boolean
End Function
Private Sub initDataSource()
'Create PlateauPostions, a working dataset that retains information about
'positions occupied on the grid.
Dim dtPlateauPositions As New DataTable("PlateauPositions")
'define attributes
With dtPlateauPositions
.Columns.Add("xPosition", System.Type.GetType("System.Int32"))
.Columns.Add("yPosition", System.Type.GetType("System.Int32"))
.Columns.Add("occupied", System.Type.GetType("System.Boolean"))
End With
'enforce composite primary key
Dim colPrimaryKey(1) As DataColumn
colPrimaryKey(0) = New DataColumn("xPosition")
colPrimaryKey(1) = New DataColumn("yPosition")
'create dataset
dsPlateauPosition.Tables.Add(dtPlateauPositions)
'initialize positions as not occupied
Dim rowNew As DataRow
Dim intXCount, intYCount As Integer
For intXCount = 0 To intXPositions - 1
For intYCount = 0 To intYPositions - 1
rowNew.Item("xPosition") = intXCount
rowNew.Item("yPosition") = intYCount
rowNew.Item("occupied") = False
rowNew = dtPlateauPositions.NewRow() 'updated!
dtPlateauPositions.Rows.Add(rowNew)
Next intYCount
Next intXCount
End Sub
End Class
Jon
|
|
|
|
|
That's better, now one can see what the problem is.
How could the intXPositions and intYPositions values used in the initDataSource method ever be anything other than zero? The object has to be created before you can set the properties, and the initDataSource method is called when the object is created. At the time you set the values of the properties it's too late for them to be used in the intDataSource method.
Now you create a data row for each row, but you create it after you have put the fields in the row, which means that you lose the reference to the row that contains the fields. What you will be adding to the table is an empty row. Also, as you don't create any row before the loop, you will be trying to add fields to a row that doesn't exist the first time. Create the row first, then add the fields to it.
---
b { font-weight: normal; }
|
|
|
|
|
oops
Jon
|
|
|
|