|
"the structure must be boxed and unboxed" -> In opposition, each object of type custom class must be instanciated. What would propbably cost more overhead?
Is there a difference, where objects of type class and structures are stored in memory internally ? I heard something about heap, stack , .... What would be the consequences of this objects stored at different places in memory concerning speed , memory consupmtion, overhead? Can anybody help?
Thanks
Marc Sommer
|
|
|
|
|
Hi,
I consider myself a pretty good classic ASP developer, and in an attempt to break into the .NET world, I have downloaded a sample application from Code Project called CodeBank (http://www.codeproject.com/useritems/codebank.asp?target=codebank[^]), and I'm having difficulty getting it running.
I have follwed the authors instructions (such as creating a new SQL 2000 dB and restoring from the supplied .bak file and creating various IIS virtual directories), and am getting a Parser Error returned from IIS. Seems to be when it gets to the "inherits" part of the code, because if I remove this, it works (partially, and then falls over somewhere else!) <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb" Inherits="codebank._default" %> .
The error returned when going to the main page of this project is:
Server Error in '/Codebank' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'codebank.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="codebank.Global" %>
Source File: D:\Inetpub\wwwroot\codebank\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 I have looked around the newsgroups, and have found some references to compiling or building the project, but the download page for this project does not mention any need for it. Is this a pre-requisite for all downloaded projects so that they will run on a new server?
Basically, I'm stuck and don't know what to do next, and I'm hoping that you might be able to point my aimless "changing of files here and there to get it to work" into something more productive.
Ciao,
-==============-
www.e1design.com
-==============-
|
|
|
|
|
Hi everybody!
Is these any way to detect whether Shockwave Director is installed in the system by using VB?
Could you please let me know if it's way!
Thanks for your help!
|
|
|
|
|
Ok, does anyone out there know why the ComboBox in .NET Highlights the Text in the Edit area when the Control is resized at Runtime (i.e. when it is Anchored Top, Left, and Right)? This is VERY annoying! Especially when the Control is disabled and it looks Highlighted!!! I'm tried Combo.Refresh and maybe other SubClassing techniques which don't work at all! ARGHHH!
|
|
|
|
|
Hi folk,
I have my form class with the
public sub openformmodify(BYVal form_modify_Objname as string)
The problem is if the name of the object is product generally I must crate the object:
dim form as product = new product
But I want that the name of the class must be pass as string and the object must be create by the string value es.:
public sub openformmodify(BYVal form_modify_Objname as string)
dim form as (form_modify_Objname)?? = new (form_modify_Objname)??
End sub
?? How can make this?
|
|
|
|
|
|
Yes, I found an example of VB.NET but seems too complicate. Is there a way more fast and more simple? Could you provide an example?
Thanks you
|
|
|
|
|
Hi folks
I have made an application server in visual Basic.NET whose responsibility is to continuing checking the mobile connected to the PC.
I have used the Nokia Model 6210 and the connecting cable DLR3p and have used the libraries from Nokia site and the packege of that library name is Nokia SDK ver 2.1.
This package provides the libraries for the programming in VB or vb.NET.
Now My question is that i want to connect Multiple mobiles to the PC HWO DO I DO THAT.
is their any one to help me
|
|
|
|
|
I can fill a datagrid from SQL.. I can do this with ADO/JET but I am at a loss on how to get a single record to display on my form from an SQL database using my current connection.
I am looking for a clear and simple example. Thanks
Gollnick
|
|
|
|
|
There should be lots of examples out there of how to return multiple records, looping through records, returning one record etc. But here's a simple example of how I get back a record from a SELECT statement:
Private Function GetCustName(ByVal CustNum As String) As String<br />
Dim strConn As String = ConfigurationSettings.AppSettings.Item("connectionstring") 'Read connection string from web.config<br />
Dim conSQL As New SqlConnection(strConn) 'Create the connection<br />
Dim cmdSQL As New SqlCommand("SELECT CustName FROM Customers WHERE CustNum ='" & CustNum & "'", conSQL) 'The query I want to run<br />
Dim Rdr As SqlDataReader<br />
conSQL.Open() 'Open the connection<br />
Rdr = cmdSQL.ExecuteReader() 'Execute the query<br />
Rdr.Read() 'Read the record (only returns ONE record!)<br />
GetCustName = IIf(IsDBNull(Rdr("CustName")), "", Rdr("CustName")) 'Read the value from a field called 'CustName'<br />
conSQL.Close()<br />
End Function
This function returns a value from a record when you pass it a search criteris. If you want to populate text boxes on your form, then after the 'Rdr.Read()' line, you could do something like:
myName.text = Rdr("Name")<br />
myAddress1.text = Rdr("Address1")<br />
myAddress2.text = Rdr("Address2")<br />
etc...
Hope this helps,
Regards,
John.
www.silveronion.com[^]
|
|
|
|
|
I am working on an image editor app for a VB.NET class in college. I have been looking for code for a image display control that can zoom, pan, and be scrolled. Our professor is allowing us to use other people's controls as long as they are cited as being the creators of the control.
I've tried writing a UserControl to do this, but it's ugly. I get a lot of flashing (from Invalidating) when I scroll, and I know there's errors in my math somewhere because I can't always scroll back to where I started.
I'd also like to get a good old magnified pixelated look when I zoom, but instead I'm getting the bi-linear or tri-linear filtering. Is it possible to get around this and just get blockiness?
Thanks in advance for any and all help.
To not know is bad.
To not wish to know is worse.
|
|
|
|
|
I am 3/4 finished with one but unfortunately it is in VB Classic. If you want to help me, (porting it or just finishing it to be used in .NET thru interop) just let me know.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I'd be up for both helping finish it and porting it. If you like, I can send you my code as well, goofy as it is, so you can see where I was coming from.
To not know is bad.
To not wish to know is worse.
|
|
|
|
|
I'm going to finish my viewport myself and maybe I'll send a copy to you. Too bad the .NET scrolling support is so lousy, but what they didn't give us, we can make ourselves.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I am writing code for Messenger Type Application in VB.Net, the Problem is that How to Send and Recive File Between two or more client using HTTP without involving Server That Mean On the base of IP Adresses like DCC Chat.
Plz If U have any Example in VB.Net of Above Problem Send meSource Code at
"ahsanbintaj@hotmail.com".Thanks.
Ehsan Malik ( Developer SharpClub)
|
|
|
|
|
Hello,
Does Anyone know how to find the index of the First Visible
Row in the .NET Datagrid
would help, thanks
Gregory J Lynch
Hack
|
|
|
|
|
I have a usercontrol and one of it's members is a type safe collection (inherited from CollectionBase.DictionaryBase).
Now I want this collection to be bindable (read-only) to a datagrid. I have added the attribute Bindable(True) to the property and implemented IListSource in the control and returned this list from GetList() overloaded function but it doesn't show up in the datagrid's bindings.
What step(s) am I missing?
Thanks in advance,
Duncan
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It trurns out I should have implemented IBindableList not IListSource.
Now the datagrid lists my control as a source in the DataBindings but it doesn't show any columns - I take it it doesn't know what the type safe collection type looks like? How do I add property descriptions to my existing class so the data bound grid can pick them up?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It turns out I should have implemented IBindableList not IListSource.
Now the datagrid lists my control as a source in the DataBindings but it doesn't show any columns - I take it it doesn't know what the type safe collection type looks like? How do I add property descriptions to my existing class so the data bound grid can pick them up?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hello
I want to dial a number using modem in VB.NET
e.g
I gonna use a function like that
Dial "9089740987398"
When the other side answer, I would speak to microphone and hear the person from speakers.
How can I do that?
Please help
Success on your works
Regards
Best Regards
Emre YAZICI
|
|
|
|
|
Hello
When I place a control at design time, normally, I can move the control by pressing UP DOWN LEFT RIGHT keys after selecting.
But nowadays I can't. When I press UP or DOWN or LEFT or RIGHT button; Vb.net moves the form, not the control.
Also when I right click one of the controls the commands wihch are Cut Copy Delete are disabled in the popup menu.
Sorry I can't use remotepicture linking. Because my site does not support it. You can see it http://www10.brinkster.com/eyazic/a/main.htm
Please help me it is very important, I can't design anymore
Thank you
Best Regards
Emre YAZICI
|
|
|
|
|
You haven't said what control your trying to place. Is a standard toolbox control or a user control.
Also, is this a web or windows form and does this happen to all controls you now place?
It is possible to lock a controls position but the outline normally looks different to that shown in your screenshot but just check the controls properties and you should find a property named locked.
Regards
Wayne Phipps
|
|
|
|
|
Thank you for your answer.
I already know the Lock property (in the popup menu)
But the problem is not connected with it. There is no problem on placing.
After placing when I try to move one of "ALL" objects it causes.
They are not locked.
Also I cannot use "CTRL+C" keys to copy or "Delete" keys to remove a control when this happens.
Best Regards
Emre YAZICI
|
|
|
|
|
How can you define the length of a MenuItem in pixels in vb.net when you set... Ownerdrawnmenu to TRUE.
Problem: a MenuItem have a font (... Arial 8).
This MenuItem contains a Icon
This MenuItem contains a text (perhaps also a &-sign)
This MenuItem contains perhaps a Shortcut
This MenuItem refer to another Menu
Can this also in the menuheader?
(I think yes... I'm sure for the Icon... but I'have problemes with the length when I got the cursor on It...
...
Vriendelijke groeten
Gilbert (Belgium)
|
|
|
|
|
Hi,
I am new to vb.net and to this forum. Can anyone let me know how i can hide a listview column?
I am using the standard listview control available in the windows forms. I have set the view of the listview as Details. I need to hide the first column and for that i set the width property of the first column to zero. This makes the list view column invisible during the runtime. However if i place my cursor on the listview header and drag the same, the first column appears.
Is there anyway to hide the firstlistview column?
Thanks in Advance
Subha
Subha Narayanan
|
|
|
|