-
- How can I disconnect Wireless Network Connection?
by Oceaner
- 6 Replies
- Last post
by Hans Louis
- Hello,
I have started to develop a network application which will run on the notebooks.I need to disconnect the Wireless Network Connection when the user simply press a button. I searched on the internet but could not find a solution using c# or vb.net. How can I do it using .net framework (2.0) classes. Do I have to use API
Thanks in advance.
Oceaner.
-
- Method in expression column?
by depp
- 3 Replies
- Last post
by depp
- Suppose you've filled a dataset from a DB, and now suppose to have a table called MyTable with two columns: MyId and MyText. The first is of type int and the second of type string.
I'd like to create (at runtime) a third column named MyFilteredText, where there would be the result of the MyText content passed to a method that would be something like this:
Code Snippet
string Filt
-
- Problem with SelectSingleNode(), clearly not bringing back node.
by Tryst
- 4 Replies
- Last post
by Tryst
- Is there a problem with SelectSingleNode() in .NET 1.1 I am using this methid on a <group> element which combined with the 'InnerXML' gives the following... <group>
<companyname>INSPOP.COM LIMITED</companyname>
<registerednumber>03857130</registerednumber>
<latestannualaccounts>31/12/2005</latestannualaccounts>
<level>1</level&g
-
- Difficulty formatting date using XPathBinder object and XMLDataSource control in c#.
by Jhhawk
- 2 Replies
- Last post
by Brian Kuhn
- I'm using the XMLDataSource control to bind to a RSS feed, then using a DataList control to display the feed items. I'm using the XPath method of the TemplateControl to display each item: <%#XPath("pubDate")%> However, when I attempt to format the date using the format attribute, I'm not getting any results. The date stays as is. Here's the format code: <%=XPath("pubDate&qu
-
- Remoting / Binary Serialization compatibility between 1.1 and 2.0 versions of the Framework
by Eugene Osovetsky
- 3 Replies
- Last post
by pwtsky
- In order to use .NET Remoting and Binary Serialization (BinaryFormatter) between versions 1.1 and 2.0 of the Framework, a patch must be installed for .NET Framework 1.1.
The patch is currently available only from Microsoft Product Support Services.
Mention KB article number 907262 (note that the actual text of the KB article is not yet available outside of Microsoft, but
-
- Impersonate as platform for Win2000
by FrankSt2
- 5 Replies
- Last post
by FrankSt2
- Hi all,
i am using the NetworkService account together with .Net Remoting to impersonate as computer against remote server.
My remoting objects are hosted by IIS which is properly impersonating the platform.
This works fine for XP and Vista.
Now i want to do the same for W2k, but on W2k the NetworkService account is not available.
If i use the System account, IIS is not
-
- Networkstream.Read() Not Working
by Umair-Shahzad
- 4 Replies
- Last post
by NJ2CIL
- I have two TcpListeners listening on the same IP address but different ports in an application (server). Likewise, I have two clients waiting to connect to the server in another application (client). Now I receive data from the server through one port and send data from the client to the server using the other port. Thing is, the client sends what it's supposed to send but the server fails to read
-
- DNA to .NET question
by Grok n Roll
- 3 Replies
- Last post
by Rob Teixeira
- I'm looking into porting/redesigning a Windows DNA application that was written using VB6, COM+, ASP/Javascript/DHTML to the .Net 3.0 platform. I'm leaning towards replacing the ASP/Javascript/DHTML frontend with ASP.NET/AJAX and replacing VB6 with VB.NET.
The old application is using COM+ for remote activation, connection pooling, transactional control, and the shared property manager. I
-
- DateTime miss understanding
by Vbeginer.net
- 5 Replies
- Last post
by Vbeginer.net
- am trying to test the conditions of two DateTime varibles and continue with the operaition only if the the results are younger then the start date and older then the end date
if (dateValidator >= fromDateTimePicker.Value && dateValidator <= toDateTimePicker.Value)
{
Point newLocaition = new Point (30, 70 * i);
TransactionDataRow newDataRow = new TransactionDataRow (
-
- Maximum baud rate of the SerialPort
by Harrison Zhuo
- 8 Replies
- Last post
by Harrison Zhuo
- Hi all,
I'm using Visual Studio C# 2005. I try to communicate with a PDA, HP iPaq, through the serialport.
After creating the SerialPort object, I fail to open it because "The maximum baud rate for the device is 65536.".
My code looks like:
using System.IO.Ports;
...
SerialPort sp = new SerialPort("COM5", 115200);
try
{
sp.Open();
}
catch(
-
- updating the web.config file for Dependent Assembly
by gauls
- 2 Replies
- Last post
by gauls
- Hi,
I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version changes i need to change the binding redirect and code base in the web.config file.
EX :
< dependentAssembly >
< assemblyIdentity name ="ABCD" publicKeyToken ="
-
- Event handling over a peer-to-peer remoting system
by 124256
- 0 Replies
- Last post
by 124256
- I'm developing a multi-player game in C#. Player A hosts a "game room" and creates a game object. Then players B and C gain remote access to that object over a TCP connection. (Assume everyone knows everyone else's IP address). My issue is that player C's UI needs to be updated when player B calls a function on the remote game object. When the program tries to register player C's handler
-
- Question on webservice class that inherits from IEquatable
by RWF
- 1 Replies
- Last post
by Daniel Roth
- I have a class server side that inherits from IEquatable. Obviously the class's implimentation of the interface does not translate when the proxy class is generated for a client when adding a web reference to a VS2005 project. Within my webreference.cs file (client project), I found MyClass and set it to inherit from IEquatable. Is there anything wrong with this
-
- Local database suggestiones
by Maksim
- 13 Replies
- Last post
by Maksim
- Hi, I am writing a program in VB.NET (VS2005 Pro) that essentially simulates an neurology experiment. This program's data shoould consiste of 8 independent tables, each having 13 columns and up to 100,000 rows in each table. To make it simpler, all data will be in string format. Other requirments: 1. The tables needs to be sortable like a dictioanry where 1 column will act as a key. 2. The user ne
-
- Writing/adding elements to a xml file
by Handschuh
- 9 Replies
- Last post
by Joe Fawcett
- Hello!
I want to add another book (book4) to the xml file below. What I did:
XmlDocument document = new XmlDocument(); document.Load("info.xml"); XPathNavigator navigator = document.CreateNavigator();
But how do I navigate to the required node and add another book
Hopefully someone can help. Thank you.
info.xml:
< xml version="1.0" > <Info>
-
- How to use XmlSerializer with classes produced from CompileAssemblyFromSource ?
by ogreboy
- 7 Replies
- Last post
by ogreboy
- I dynamicaly generate code and use the CodeDomProvider and CompileAssemblyFromSource to produce an in memory Assembly. The generated code uses List<T> as one of the Properties.
I then need to stream XML into and out of a class in the in memory Assembly.
I first use the Activator to create an instance of the class:
Assembly assembly = results.CompiledAssembly;
Type [] expo
-
- Difference between 2 dates in a database
by RufusLDK
- 5 Replies
- Last post
by RufusLDK
- I got a dateReturned and dueBack in a Rent table in my database. I want to know how i can have my program to work out the number of days difference between the two.
Cheers for any help in advance
-
- Calling back into .Net code from JITCompilationStarted?
by EHerb
- 4 Replies
- Last post
by Sergey Kanzhelev
- I'm working on an IL rewriting project where I¡¯m inserting logging code into methods at various points. For example, every time a method is entered I log the method signature, the time, the thread, etc. The IL that I'm inserting makes a call to a method on an assembly that I¡¯ve registered in the GAC. This method then uses remoting to send the info back to my application.
Right now I am logging
-
- How do I serialize a Bitmap class?
by Tony Cheung
- 3 Replies
- Last post
by Flip
- Hi all,
I expect using C# to serialize a Bitmap would be straight forward, but it turns out that I am wrong. I tried with the code below but I failed to get the image data.
Code Snippet class Program { static void Main(string[] args) { Bitmap corolla = new Bitmap(@"C:\corolla.jpg", true); // some image file. MemoryStream ms = new MemoryStream(); XmlTextWri
-
- Probelm during running ASP.NET Configuration and my own Site
by deViance
- 2 Replies
- Last post
by John Saunders
- i get this message:
Forbidden
You were denied access because:
Access denied by access control list.
and i try to find in the internet solutions but i need step by step...
Thank You!
-
- Comaring 2 dates in different format
by Isolda
- 9 Replies
- Last post
by Vitaly Liptchinsky
- Hello,
I need to compare 2 dates, one of them - appDate - is always in the "mm/dd/yyyy" format.
The second one - userDate - can be in any format specified in users regional settings.
I used the following code
if ( DateTime .ParseExact( appDate , "mm/dd/yyyy" , null ) < userDate )
.......
This works fine regardless of user's date format,
-
- best way to store data? (instant messenger program)
by maxrpg
- 3 Replies
- Last post
by MarkTheNuke
- hi
ok i have made an online instant messenger program and at the moment users passwords and profile information is saved and stored on a secure HTTP server in html files(which are read by the client). its working very well and fast but their has to be a better and more efficient way of storing peoples data.
what would you suggest is the best way to store users data
ive loo
-
- online database connecton
by sharrock
- 4 Replies
- Last post
by Paul P Clement IV
- Is there any way I can connect to a online access 2000 database in my c# windows application
I need it so that 2/3 users can acess the online database using the windows application. (at the moment the database is being acessed on the local hdd)
- The database will been put on a webserver accepting microsoft access
- I DONT want to make a web service or any asp.net web app
-
- Inserting records, updating
by Rajkm
- 11 Replies
- Last post
by Bar?? ?eker
- Hi frends,
I am new to dotnet. I am developing an ASP.NET application using C#.
I want to perform database related commands like inserting, update and delete.
What is the best way to do these operations. I have many tables in the database.
For every insert, I want to develop common method to do insert(for any table, from any form).
Coz removing the same statements
-
- write csv file Oledb
by fufu
- 5 Replies
- Last post
by VMazur
- How do I write a datatable in the dataset out to 1 file in vb.net