Topics
-
-
- Administrators
- 4 replies
- 1.1k views
I ran into a strange problem. When I use this code I get the output in the console: Before move test.Player.Pion.pos = 0 After test.Player.Pion.pos = 0 Before move test.Player.Pion.pos = 0 After test.Player.Pion.pos = 0 As you see m_pos is not augmented� Actually it is but somehow the data reverts to it�s old value upon exiting. Public Class TestClass Private m_Player As sPlayer Public Structure sPion Private m_pos As Integer Public Sub New(ByVal Pos As Integer) m_pos = Pos End Sub Public Sub move(ByVal pos As Integer) m_pos += pos End Sub Public ReadOnly Property pos() As Integer …
Last reply by Machaira, -
-
-
- Leaders
- 6 replies
- 972 views
I need a way to rename a file without knowing the EXACT name of the file..for instance I need to use wild card *. For instance say I have c:\temp\test1242325365.txt I would like to be able to rename this in my app like: fi = New FileInfo("c:\temp\test*.txt") If fi.Exists() Then fi.MoveTo(c:\temp2\zgpsout.txt") End If I want to be able to say test* rather than the actual name of the file because I will never know the exact name..all I will know is that it may start with "test" and end with ".txt" That is my first question. My second question is I need to check if a file is locked...if it is I need my c…
Last reply by Xanatos, -
-
- 3 replies
- 813 views
Hi, Have added a html checkbox to my asp.net page. How can I directly set the value of this checkbox from my VB.NET code. Mike55.
Last reply by mark007, -
-
- Administrators
- 11 replies
- 1.3k views
I have a program that I want to be able to send data across the internet. I don't want a user front end though I want it done behind the scenes. Essentially I just want to be able to upload a transaction file of sorts to some distant webserver. I don't know where to start though. 2nd part: I've been playing with the msdn example with tcplistener I can send data between two apps using my local machine but if I try to put the app on another computer on my LAN I get a Socket Exception "No connection could be made because the target machine actively refused it" Any help will be appreciated. Thanks
Last reply by MrBonus, -
-
- 8 replies
- 1.3k views
Hi, Maybe this is stupid question but i can`t sort this out. This is my code .How can I replace for with Foreach in this case ArrayList fnames = new ArrayList(); Worksheet wsh = (Worksheet)wb.Sheets[1]; Range cell = null; for( int i = 1; i <= 5163; i++) { cell = (Range)wsh.Cells[i,1]; try { fnames.Add((string)cell.Value2); } catch {} } Thanks
Last reply by mark007, -
- 0 replies
- 636 views
Hi all, Does anyone ever used NHibernate with .Net before? I needed some help using it. Thx before.
Last reply by amir100, -
-
- Leaders
- 3 replies
- 3k views
I am trying to compile C++ code with #Develop, but I'm getting this error: http://www.geocities.com/marble_eater/err.JPG
Last reply by snarfblam, -
-
- 0 replies
- 601 views
I am trying to get the ip address of users hitting my web service. I have tried the following 2 constructs: Context.Request.ServerVariables["remote_addr"]; Context.Request.UserHostAddress.ToString(); With no success. Sometimes I will get a real ip address. Usually the first time during the day that I try it but then after that all I get is 127.0.0.1 I have tested this from several different system with the same results.
Last reply by VBAHole22, -
- 1 reply
- 1.3k views
Hi Is there a way to found out the actual Header Height of the activeform? Kind Regards
Last reply by PWNettle, -
- 0 replies
- 861 views
Hi... The topic says it all... I set the dataset schema version, by hand, at design-time, as I need to change the schema. All I need is to compare the current schema with the one I'm going to load so I can perfrom any compatibility changes, if needed... How do I get the schema version?? Thanks, Alex :p
Last reply by AlexCode, -
- 1 reply
- 1.6k views
Hi all Here is my statement: Dim credit As Decimal Dim price As Decimal Dim cncon As New SqlConnection(clsConnection.osqlStr) Dim commSQL As New SqlClient.SqlCommand cncon.Open() Try commSQL.Connection = cncon commSQL.CommandType = CommandType.Text commSQL.CommandText = "Select Credit from SMS_Credit where Org_ID = '" + organization + "'" credit = commSQL.ExecuteScalar commSQL.CommandText = Nothing If operation = 1 Then 'Deduct the price of a SMS Message. price = credit - rate commSQL.CommandText = "Update SMS_Credit Set Credit = " + price + " where Org_ID = '" + organization + "'" ElseIf operation = 2 Then 'Refund the …
Last reply by mike55, -
-
- Administrators
- 4 replies
- 3.5k views
Hello, I need to handle some key press events in a C# windows application. I thought I can use this: [size=2][/size][size=2][color=#0000ff]private[/color][/size][size=2] [/size][size=2][color=#0000ff]void[/color][/size][size=2] MainForm_KeyPress([/size][size=2][color=#0000ff]object[/color][/size][size=2] sender, System.Windows.Forms.KeyPressEventArgs e) { MessageBox.Show("Hello!"); } [/size] But it didn't work! It should output a hello whenever I press a key but it doesn't do anything! Can anyone help me please?
Last reply by HSN, -
-
- 3 replies
- 1.2k views
I have a listview and its property is set to details view. It has 200+ items in it and 4 columns (Name, Level, Hits, Type). I entered all the items in the control, it doesn't load them from a file. I also have a textbox and a button, in the textbox I want to user to be able to type all or part of the name of the item they want and it will remove all items that do not match.
Last reply by mskeel, -
- 7 replies
- 1.1k views
I am running a software program that uses SMTP to email information. I can email the information to people within my company, but when I try to email via SMTP to someone outside of the company, I receive the following error: The size of the attachment exceeds the size of the size that your smtp server is willing to accept.-Error in cSmtp.Send.SendMessage:(sending message) Could not access 'CDO.Message" object. Apparently this is a generic message and my IT person says it has to do with authentication issue. He tried setting the SMTP settings to the IP address of the Exchange server as well as the NETBIOS and DNS names without luck. Anything outside of the local…
Last reply by mskeel, -
- 5 replies
- 887 views
Whenever I create a MySQL Crystal Report using the oficial Crystal Reports 10 something strange happens, the report will ONLY show the results that existed by the time I created the Crystal Report document, that is, no matter how many records I add or delete after in future, the report will only show me the same results! WHY? If I create the report using the standard (and poor) .NET CR Tool the report will work fine, even if I edit the report in the official Crystal Reports 10 and save it through it, It will always work! WHY? NOTE: Am using the same MySQL date base connection for both CR10 and .NET CR Thank for any info regarding this issue!
Last reply by EFileTahi-A, -
- 5 replies
- 1.1k views
Hi All I have been asked at work to write a production scheduling system and was wondering if anyone can give me some pointers on how to go about it. We have 12 machines that need to be included in the system, each machine needs a day record and each day is to be broken up into 15 minute segments. The system also has to hold 2 years data at a time, this year and next Year, with all preceding years being archived for analysis purposes. What I have come up with so far (after some playing) is a database with 3 tables. Table 1 will just hold the machine names and description. Table 2 Holds the day information i.e. is this machine available today, how many hou…
Last reply by pendragon, -
- 11 replies
- 1.1k views
I'm going to attempt to answer my own question. In a desktop application ( or any application for that matter ) should I be creating a class that does all my database input/output?
Last reply by mark007, -
- 1 reply
- 757 views
i was wondering is there any tutorials or does anyone know how to transform html page to xml or word document using VB.NET.
Last reply by RedLeader, -
- 0 replies
- 1.4k views
hi when i try to save a page using the axwebbrowser it saves the previous page not the current page. how can i make it to save the current page?
Last reply by gill, -
-
- Leaders
- 1 reply
- 2.2k views
I have a listview with 200+ items in it and I have a code that changes the font color of certain items.. is there a way I can display in a label the number of items that are a certain font color? Like... If listview.forecolor.red Then... more code
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 61 Guests (See full list)
- There are no registered users currently online