|
Hi All,
I created a simple application in C# that displays a message when a button is clicked. I want this app. to be updated from a network drive, the same network drive that it was published from using ClickOnce.
In the Publish --> Updates window of the apps properties, it's set up so updates are checked "before the application starts".
After a modification is made to the application and I re-publish it the updated files are sent out to the users machine along with an updated very of the setup.exe file.
However, when the user starts the application from the start menu they aren't informed that an update is available and the old version of the application is ran.
The start.exe file can be ran and the new version installed then, but this isn't what I want the user to have to do. Shouldn't the user be informaed of the updated version when the app is ran?
Any ideas would be greatly appreciated.
Thanks,
Mel
|
|
|
|
|
Don't cross post, you've already asked this question in another forum. Wait for someone to respond.
only two letters away from being an asset
|
|
|
|
|
Hello everyone,
I am having trouble with UdpClient class. Here is my code:
private UdpClient myClient;
private void button1_Click(object sender, EventArgs e)
{
myClient = new UdpClient(7777);
}
private void button2_Click(object sender, EventArgs e)
{
myClient.Close();
}
So when I press button1 to connect for the first time - Everything is OK
when I press button2 to discconect - Everything is OK
But when I try to connect for the second time by pressnig button1 I get the error : "Only one usage of each socket address (protocol/network address/port) is normally permitted"
How can I solve this problem? How can I bind my socket again? Any help will be appreciated.
Regards
|
|
|
|
|
The error comes only if you press button1 2 times.
If you press button1, button2, then button1 again, it's ok.
|
|
|
|
|
Why do you want to press button twice? When UdpClient 's constructor is executed with a port number, it binds to the port number provided. You can't rebind to that port again. Once the binding is done, call Connect() method to connect the socket.
|
|
|
|
|
We have a DataSet with Table Adapters built for MSAccess using OLEDB. We are using Visual Studio 2005 and .Net 2.0.
When the designer creates insert, update and delete queries it encloses the table name and field names with a ` (ASCII char 96).
For example:
INSERT INTO `table` (`col1`, `col2`, `col3`) values (...)
Is there a reason for this character? Assuming it's for escape purposes, is there a setting to make Visual Studio use another character, eg "[" or "]"?
If there is no setting, is there a way to intercept the way the designer creates these queries?
|
|
|
|
|
I am not sure how to remove it and character [ is valid for MS access. What issue are you facing with these characters?
|
|
|
|
|
We have to support SQL Server and MS Access as backend databases. Our app was originally written for MS Access using the VS designer. We are trying to have the same data layer (queries - basic insert, update, delete statements) work for both databases. After testing the queries, we found that if the ` char was removed, then the queries would work on both db's.
|
|
|
|
|
Hi , have a good day ...
I want to make My Own C# Messenger with C# ( Like , Yahoo , Microsoft , Google Talk ) ... but with less features ...
Here is what I am planning to do :
- Create C# Windows Application ( Clients ) All my customers will have it.
Included Me ...
- Connect from my computer to My customer computer and support them.
-------
But the problem is about the Web Site
I didn't have any clue where to start
What do I need , a Web Site ?
a Super Computer as Server ,
a protocol ?
P.S :
Customers Count is "300" or less
thank you so much for any word you say ?
I know nothing , I know nothing ...
|
|
|
|
|
Any computer can be a server. All you need is your messaging server running, and the required port(s) opened in your router/firewall.
Clients will need the WAN IP address (or domain name) of the computer acting as the server (could be hard coded) and the authority/knowledge of how to open the required port(s) on their systems.
The rest is a simple question of Client and Server code, which is reasonably trivial and there are a plethora of examples around.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
thank you so much , your replay give me a good view ...
I know nothing , I know nothing ...
|
|
|
|
|
I'd use TCP; for text, losing a part is generally seen as worse than suffering a slight delay
Just slap your own application level protocol on top
If you let all messages go through the server, you won't even have to worry about opening points on the client side. But you'd be putting more load on the server and the latency would be approximately doubled compared to peer-to-peer chat (where the server would only be used to look up the IP of a client from an ID/name/whatever)
Peer-to-peer is quite hard compared to server/client though.
|
|
|
|
|
Thank you , so much
But I think I can't make P2P because we need Real IP ,
yeah In my country , 70% of Internet Users have dynamic IP address ,
In Other Word , we all have the same IP Address
and I test that , On www.whatismyip.com
Thank you ...
I know nothing , I know nothing ...
|
|
|
|
|
If that means you're behind double NAT (national NAT and NAT at your router) then that is a big problem. Really bad.
Well just do client/server, that should be fine
|
|
|
|
|
you mean like this?
http://www.umbrasystems.com/gcomm.php
|
|
|
|
|
you mean like, advertizing?
|
|
|
|
|
- You basically need a server and client program.
- You can use TCP as a communication protocol.
- When designing server, you have got two choices. Either use WCF or work with raw TCP with sockets. I'd suggest to work with sockets directly rather than a WCF wrapper.
- The system on which server is running should open the port it is using.
- You need to create your own protocol for exchanging messages.
- Since the server has to handle 300+ connections, asynchronous programming style has to be used for more scalability.
Of course you also need a book. TCP/IP Sockets in C#: Practical Guide for Programmers[^] is a good book to start with.
|
|
|
|
|
Thank you so much ,,,
the idea is clear now ...
I will start programing with "TCP with sockets".
The book looks greate
kind regards,
I know nothing , I know nothing ...
|
|
|
|
|
I am writing an app that requires centralizing a number of Access App's data files into one SQL server. Albeit separate databases within it.
I know the Access Upsizing wizard can migrate access tables to SQL. As can the SQL server import wizard. However, I need to be able to schedule this and request it at any time from the server.
Getting the Access mdb files onto the server isn't a problem, that's all handled with WebServices. However, I can't for the life of me find a way to automate the table creation and data insertion for the sql server.
I have come across a number of resources listing how to pull data from a datatable object and create the database on the server using SMO (SQL Managemant Objects, i think) But I can't see any resources on how to actually pull the Access data into a Datatable object in the first place. Either way, this method obviously will incur some speed penalties, also maybe some problems with datatypes etc... So finding a way to automate the sql import is by far the better idea!
If anyone has any ideas I would be so grateful!
Thanks a lot.
Ben
|
|
|
|
|
Hello guy´s
I´ve a problem with the implementation of Sudoku in c#....
i wrote 2 for-loops, one that tests the collums, one that tests the rows if the numbers 1-9 are unique in a row/col... The 2 Loops are working perfect, but only if i use ONE of them.. The 2 loops are not working together , I think it´s a Overflow...
I try to interlace the for-loops, but i´m with stupid.. I have to ask for help in this forum
here is a bit of code
using System;
using System.Collections.Generic;
using System.Text;
namespace sudoku
{
class sudoku
{
private int[] values_right = new int[81];
private int[] squareindex = new int[81] {0, 0, 0, 1, 1, 1, 2, 2, 2,
0, 0, 0, 1, 1, 1, 2, 2, 2,
0, 0, 0, 1, 1, 1, 2, 2, 2,
3, 3, 3, 4, 4, 4, 5, 5, 5,
3, 3, 3, 4, 4, 4, 5, 5, 5,
3, 3, 3, 4, 4, 4, 5, 5, 5,
6, 6, 6, 7, 7, 7, 8, 8, 8,
6, 6, 6, 7, 7, 7, 8, 8, 8,
6, 6, 6, 7, 7, 7, 8, 8, 8};
private int[] posible_values = new int[9] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
public sudoku()
{
this.generate();
}
public void generate()
{
Random rnd = new Random();
int i;
for (i = 0; i < 81; i++)
{
while (this.values_right[i] == 0)
this.values_right[i] = rnd.Next(1, 90) % 10;
while (check_position(i) == 0)
{
this.values_right[i] = (this.values_right[i] + 1) % 10;
}
}
}
public int[] get_values_right()
{
return values_right;
}
int check_position(int i)
{
if (this.values_right[i] == 0)
return 0;
Random rnd = new Random();
int row = i - (i % 9);
int col = i % 9;
int position;
for (position = row; position < row + 9; position++)
{
if (position == i)
continue;
if (this.values_right[position] == this.values_right[i])
return 0;
}
return 1;
}
}
}
Thanks for help, members of coding...
I´m sure, its only a LITTLE 1-MINUTE problem 4 you..
Thank again..^^
modified on Thursday, August 27, 2009 2:25 AM
|
|
|
|
|
|
You might get lucky and find someone fool enough to visit an unknown site and download goodness knows what, but most won't.
If you have a section of code that doesn't work then post it here, with a full explanation of the problem, any error messages or odd results. Remember to format your code properly by using the 'code block' widget above the text entry box, or surrounding it with <pre></pre> tags.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
ok thanks
I now pastet code into the post 
|
|
|
|
|
I have some forms tht load data in grid in background. As its huge data, until it gets loaded I want progress bar form to show the load status... how can I do that?
|
|
|
|
|
try backgroundworker , you can found it in you VS toolbox->Component.
When you start loading data
Call backgroundworker to start
Show your loading Form
When the background worker Finish ...
Close the Loading Form ....
I know nothing , I know nothing ...
|
|
|
|
|