|
hi all
I want to make chat program using System.Net.Sockets namespace
Chat examples work fine in local area network...
But I couldn't get them work on internet.
I have DSL router..
I setup these on adsl:
NAT(Virtual servers):
Protocol: TCP, External port: 399 Internal Port:399 Internal server IP address: 192.168.1.2 (which my computer's local IP)
am I missing something?
|
|
|
|
|
If you are trying to communicate between your computer and another computer through the internet, your internal IP wont resolve to the other computer. You may need to add your internal IP into your Router's DMZ. Another thing that may cause problems is your firewall may be blocking the port you are listening on (399)
|
|
|
|
|
thank you for your reply...
My mistake was; I was trying to connect from same computer to same computer... Anyway it's working now from another computer to my computer
thanks
|
|
|
|
|
hello!!
when i run crystalreportviewer in my vb.net application i get the error
"the .net assembly CrystalDecision.Windows.Form could not be found
could anybody tell how could i resolve this problem???
|
|
|
|
|
And cross-posting acrossed multiple forums is also considered very rude...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hey
i m creating a web appln in c#. recently i implemented session var in my website to enhance security.. but the problem is that after publishing this website on IIS(inetpub\wwwroot..), i opened it from my browser.. the sessions are not at all working..
even after entering correct username and pass.. i m redirected to login page again and again..
on the other hand when debugging the application, it works perfectly well.. m using visual web dev exp 2005
please help
Kunal Piyush
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I have recently upgraded from vs2003 - vs2005. I had made some changes to my application and i had simply sent our
customer an updated exe file. When they pasted the file into the installed directory and replaced the existing file
they got an error message appear
"The application has failed to start because the application configuration is incorrect. Re-installing the application may fix this problem"
So, i re-generated the deployment project in vs2005, and tried to run this. when this ran it came up with a warning (see below) and then prompted me to downloadload and install .net framework 2.0, i went through this process and completed the install and the install of my application. but when i went to run my application i got the "The application has failed to start because the ....." error again
has anyone come across this before ? or any ideas on whats wrong ?
Warning which appears when deployment program is run
MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE TERMS
MICROSOFT .NET FRAMEWORK 2.0
MICROSOFT WINDOWS INSTALLER 2.0
MICROSOFT WINDOWS INSTALLER 3.1
Microsoft Corporation (or based on where you live, one of its affiliates) licenses this supplement to you. If you are licensed to use Microsoft Windows operating system software (the "software"), you may use this supplement. You may not use it if you do not have a license for the software. You may use a copy of this supplement with each validly licensed copy of the software.
The following license terms describe additional use terms for this supplement. These terms and the license terms for the software apply to your use of this supplement. If there is a conflict, these supplemental license terms apply.
By using this supplement, you accept these terms. If you do not accept them, do not use this supplement. If you comply with these license terms, you have the rights below.
1. SUPPORT SERVICES FOR SUPPLEMENT. Microsoft provides support services for this supplement as described at www.support.microsoft.com/common/international.aspx.
2. MICROSOFT .NET FRAMEWORK BENCHMARK TESTING. This supplement includes the .NET Framework component of the Windows operating systems (".NET Component"). You may conduct internal benchmark testing of the .NET Component. You may disclose the results of any benchmark test of the .NET Component, provided that you comply with the following terms: (1) you must disclose all the information necessary for replication of the tests, including complete and accurate details of your benchmark testing methodology, the test scripts/cases, tuning parameters applied, hardware and software platforms tested, the name and version number of any third party testing tool used to conduct the testing, and complete source code for the benchmark suite/harness that is developed by or for you and used to test both the .NET Component and the competing implementation(s); (2) you must disclose the date (s) that you conducted the benchmark tests, along with specific version information for all Microsoft software products tested, including the .NET Component; (3) your benchmark testing was performed using all performance tuning and best practice guidance set forth in the product documentation and/or on Microsoft's support web sites, and uses the latest updates, patches and fixes available for the .NET Component and the relevant Microsoft operating system; (4) it shall be sufficient if you make the disclosures provided for above at a publicly available location such as a website, so long as every public disclosure of the results of your benchmark test expressly identifies the public site containing all required disclosures; and (5) nothing in this provision shall be deemed to waive any other right that you may have to conduct benchmark testing. The foregoing obligations shall not apply to your disclosure of the results of any customized benchmark test of the .NET Component, whereby such disclosure is made under confidentiality in conjunction with a bid request by a prospective customer, such customer's application(s) are specifically tested and the results are only disclosed to such specific customer. Notwithstanding any other agreement you may have with Microsoft, if you disclose such benchmark test results, Microsoft shall have the right to disclose the results of benchmark tests it conducts of your products that compete with the .NET Component, provided it complies with the same conditions above.
|
|
|
|
|
I have a fire alert application that for no reason what so ever should be closed, this you can fix by adding the following in the Form_Closing event e.Cancel = true;
But how do I hide the closing X icon?
|
|
|
|
|
The 'x' icon on the upper right is the control box. If you go to your form style, under windows style, change the ControlBox property to 'false'. Although i'm not sure if the user can still close the window by pressing alt-f4. You may need to intercept the key event for this.
-Steve
|
|
|
|
|
When you disable the closing event then it don't care if you alt-f4... only thing that can close it is to kill the process in Task Manager.
But thanks .. for the reply
|
|
|
|
|
Is there any way to regain an instance of a class that has already gone out of scope?
For instance:
Private Sub cmdGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGo.Click
Dim i As Integer
For i = 1 To 100
f = New frmTest 'f has been globally declared as a Form
f.Show()
Next i
End Sub
This code instanciates 100 instances of a form and displays 100 forms.
The instance almost immediately goes out of scope due to the for-loop.
Should I now run f.close, only the last form is closed understandebly, but how do i reference the other 99 forms? Garbage collection doesn't destroy them because they are still active on the screen.
you can't forget something you never knew...
"Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann
|
|
|
|
|
evilnoodle wrote: but how do i reference the other 99 forms?
By storing them somewhere you can get at. Add them to a collection of some sort, then iterate through the collection.
|
|
|
|
|
I'm not at very skilled VB programmer and quite new to Visual Studio 2005. I'm trying from an ordinary batch-script on windows to call a VB program, which - depending on the parameters - should set one environment variable.
I have managed to create the program, and I can see either through registry or through "Environment Variables" in "System properties", that my variable is created and set in either the user or machine environment. But in the command shell (cmd.exe) window I still have no access to the new environment variable.
I imagine the problem is that when launching the cmd.exe you take a kind of snapshot of the environment and works with this "copy".
But how can I refresh the environment so the variable is visible and the new value also?
Rgds.
Preben
|
|
|
|
|
P.Meyenburg wrote: I imagine the problem is that when launching the cmd.exe you take a kind of snapshot of the environment and works with this "copy".
Exactly, your existing shell won't see env variables created after the shell started. Try to run cmd.exe again on the existing command shell window and see if you can see the new env settings.
P.Meyenburg wrote: But how can I refresh the environment so the variable is visible and the new value also?
Even though the existing sheel can't see new env variables, your code should be able to use them immedediately after they are created.
Best,
Jun
|
|
|
|
|
Thanks for your reply Jun.
But as you wrote:
Jun Du wrote: Exactly, your existing shell won't see env variables created after the shell started. Try to run cmd.exe again on the existing command shell window and see if you can see the new env settings.
I have triede this, but it seems that a new cmd.exe inherits the environment from the old one, so it did not help at all.
In my search after a solution I found:
[^]
But even this have the same problem as I. When you call it from a cmd.exe the same problem arise, I can't access a variable newly created, but I can see it in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
So the big question, what is the trick to get it visible in the current environment?
Rgds,
Preben
|
|
|
|
|
Hi All,
I have added DataGridViewComboBoxColumn to the my DataGridView.
Can Any One Suggest me How to get the Selected Item From DataGridViewComboBoxColumn;
Thanks In Advance
G.Nagaraju
|
|
|
|
|
Check out this link
http://www.datagridgirl.com/
Hope it will help u
Navi
|
|
|
|
|
Does anyone know how?
thanks
|
|
|
|
|
Not sure if this is what you want, but give a try to Win32 call SystemParametersInfo(SPI_SETDESKWALLPAPER, ...), which can change your desktop wallpaper.
Best,
Jun
|
|
|
|
|
|
|
Actually I have seen this with non-.NET programs as well. When an app gets minimized Windows can swap out memory that is not needed and free things up. I just did this with Word and it went down to 1-2M when minimized and then back up to about 5M when it is brought back up front. Another app that we run here at work went from 18M while it was running, down to 1-2M when minimized and then back up to 6M when it was opened again. This definately is not anything to do with .NET itself.
Steve Maier, MCSD MCAD MCTS
|
|
|
|
|
On minimize, two things happen. THe first is that the framework releases most of the extra memory it's allocated from the OS to cover against future requests. Since form initialization uses alot more memory than is needed during runtime, apps that don't substantially increase the ammount of data in ram after loading the form tend to have a large amount of extra availabl. The amount held is determined by the framework, and is partially dependent on how much the system has available. The reason for de/allocating in large chunks rather than small ones is that getting memory from the OS is a costly operation. A system wide memory shortage will cause the OS to send 'return extra memory' messages and do the same thing. The second is that most of the app is moved from system to virtual memory. On restore, the code is only moved out of VM on an as needed basis.
|
|
|
|
|
PS Your apps memory usage isn't much higher than mine which runs happily on an NT4/p3-500/256mb testbox, unless your client machines are substantially older or already heavily burdened with other apps you shouldn't have a problem.
|
|
|
|