|
i write a program in vb.net and i have made a setup of it.My requirement is that when i installed the setup than automatically software run. is it possible? tell me what option would set in making setup that automatically run ater installed the setup plz guide me.if there is any solution.
Thanks
suahil shahab
|
|
|
|
|
Try using the custom action and call the execuatble once your installation is done.
Hope this helps.
|
|
|
|
|
Hi,
I have got a TestSol which contains three projects , but all three projects are not selected for build, it means if I build whole solution then none of the project would be built, but if I build the one specific project then that would be built fine. but when i want to perform same task throught MSBuild by providing command "MSBuild "E:\MyTestSol_noneprojectincluded.sln" /t:TestProject1:Rebuild "/p:Configuration=Debug" but i get the error "The project "TestProject1" is not selected for building in solution configuration "Debug".", how can i successfully build the TestProject1 in a solution even it is not selected in the solution configuration.
Warm Regards,
Mushq
|
|
|
|
|
Hi
I have a few class files that I need to reverse engineer to get UML diagrams. I have Visio Professional 2003 installed on my system , and the Visual Studio version is 2005 Professional.
I searched msdn, where i read the below directions, but I am not able to find the Visio option in my Visual Studio, please let me know how do I do this, is there a way to add the Visio component into Visual Studio?
-------------- from msdn-------------------------
In Visual Studio, in the Solution Explorer, select a solution.
On the Project menu, click Add New Item.
In the Add New Solution Item dialog box, click Visio Files, and then click UML.
Under Templates, click a UML diagram, and then click Open.
-- modified at 23:20 Wednesday 6th June, 2007
Every thing is Illusion
|
|
|
|
|
In VS.NET 2005 right click a .cs file and chose "View Class Diagram".
http://stefanprodan.wordpress.com
|
|
|
|
|
They may have removed the option in VS 2005 in favour of the built-in class diagrams feature?
Kevin
|
|
|
|
|
Hi, all. I am trying to use a DataGridView to add records from multiple, related tables in a database. So far, I have been able to bind the DataGridView to a BindingSource that consists of a query, and to display and navigate through them using a BindingNavigator.
I can't seem to figure out how to add a record the needs to populate multiple tables in the DB.
When I click the Add New Item button on the BindingNavigator (and add data for all required fields), the record appears on the DataGridView, but it is not being written to the DB. If I close the app and run it again, the new record is not there. The same happens when deleting a record using the BindingNavigator's delete button. Is it being written to the query that is contained in the bindingsource only? Can someone assist?
Regards,
|
|
|
|
|
I have posted this question, but received no answers yet, even after considerable activity in the msg board. Is this not the right place to post such a question? Please advise, as it is the first time I post to this board.
Thanks
Juan
|
|
|
|
|
I vaguely remember seeing this exact same subject line in two or three other forums, so that's probably why it didn't get answered.
ramakaniel wrote: but it is not being written to the DB.
It won't be until you call Update on some dataadapter to write the data back out to the database. A DataSet is an in-memory copy of the data, not a reference to the database itself.
|
|
|
|
|
Ok, I have a query table adapter that represents the query displayed on the datagridview, pulling data from multiple, related tables, as such:
TITLE AUTHOR PROGRAM...CATEGORY
Is this the dataadapter you refer to? If so, I does not have an Update method. Please clarify or point me to a tutorial that details this.
Regards,
Juan
|
|
|
|
|
If the TableAdapters do not have an Update, then, from MSDN here[^]:
TableAdapter Update Commands
The update functionality of a TableAdapter is dependent on how much information is available based on the main query provided in the TableAdapter Wizard. For example, TableAdapters that are configured to fetch values from multiple tables (JOINs), scalar values, views, or the results of aggregate functions are not initially created with the ability to send updates back to the underlying database.
The reason you can't call update is because the TableAdapter can't update multiple tables from a single query.
You'll either have to supply the SQL and VB.NET code in the TableAdapters to update the individual tables yourself, or scrap the tableadapter and write the complete SQL and VB.NET code for all the operations you want on the tables involved.
|
|
|
|
|
I've successfully played around with WMI to interrogate random computers on my network in an application on my workstation, and I thought it would be a cool idea to make a program like that in the compact framework so that I could do it from my PPC. Unfortunately, the System.Management namespace doesn't exist in the compact framework. Does anyone know of or can point me in the right direction to a way to querying WMI from the compact framework? Any help is appreciated, thanks in advance
|
|
|
|
|
The CF doesn't support WMI at all. It also doesn't support ASP.NET, Enterprise Services, Message Queues, COM Interop, the OleDb and ODBC data providers, generic serialization, asynch delegates, Remoting, Printing, some XML stuff, ... and some other stuff I can't remember.
No, you can't use WMI form the Compact Framework. Windows CE doesn't have the support for WMI, so it's not included in .NET CF.
|
|
|
|
|
But is there some kind of work-around, maybe a library that someone has made or a link to a way to make a library? Because it works with queries there seems like there should be a way to hack a way to do it, even if I have to do the socket code myself.
|
|
|
|
|
Nope.
WMI has two parts, a server AND a client portion. The server runs on any Windows machine, with WMI installed, compiling all the data from the WMI Providers and serving it up through something akin to a small SQL server. This part doesn't exist in Windows CE at all.
The client side is also on every machine that has WMI installed. This part is a COM-based library that formats requests, talks to the WMI Server, processes results, handles application interaction, and all kinds of other stuff on WMI collections of WMI objects. This part ALSO doesn't exist in Windows CE.
There's nothing you can do about this unless you find someone who has written a WMI Client library for Windows CE. I haven't been able to find one...
|
|
|
|
|
:/, that's unfortunate... it seems like it would be a highly arduous task to do. I suppose its back to the drawing board; thank you very much for your assistance.
|
|
|
|
|
Hi all,
I'm trying to open a socket between a device running .NET CF 1.0 and a PC. The code that sets up the socket (in C#) looks something like this:
TCPClient cli = new TCPClient("192.168.100.150", 11240)
The host runs on 192.168.100.150 and listens on port 11240. When I run the above code on a device with .NET Framework 2.0, everything works fine but when I run it on a device running .NET Compact Framework it throws a System.Net.Sockets.SocketException with error code 11001 (which translates to "No such Host is known").
This seems to have something to do with the dotted IP Address because when I provide a url like "www.google.com" it works (but then throws another exception because you can't connect to google on 11240).
Would anyone have an idea why TCPClient wouldn't accept a dotted IP Address and how to get around it?
|
|
|
|
|
No idea why it's not working, but use the TcpClient constructor which takes an IPEndPoint instead.
TcpClient cli = new TcpClient(
new IPEndPoint(
IPAddress.Parse( "192.168.100.150" ),
11240
)
); The TcpClient constructor that takes a string is documented to accept a DNS name. A string representation of an IP address is not a DNS name.
|
|
|
|
|
Thanks Mike, that's good to know and I will certainly use this method in future, it just seems better.
However, this does not seem to relate to my problem. I have figured out in the mean while that it is not the dotted IP address causing the problem but rather the fact that I'm trying to access a computer on the local network.
I can open a socket to www.google.com for instance (by specifying either the IP address or the DNS name) but when I specify an IP address on the local network it doesn't work.
I can ping that address though so it's not a connectivity issue.
|
|
|
|
|
Is this a Windows Mobile 5.0 or 6 device connected to the desktop via ActiveSync?
ActiveSync doesn't actually route packets from the device. Instead it acts as a proxy - all DNS lookups resolve to the PC's IP address (of the PC end of the ActiveSync connection). ActiveSync then forwards the requests to the actual target server and vice-versa. However, it doesn't work for IP addresses.
Windows Mobile 5.0 turns off all other network interfaces and drops any dial-up connections (e.g. GPRS/EVDO mobile data) when connected to ActiveSync. Your only connectivity option is via the desktop passthrough.
Windows Mobile 6 allows you to control this - there's a checkbox in ActiveSync's Connection Settings labelled "Allow wireless connection on device when connected to the desktop" which I think is unchecked by default.
|
|
|
|
|
Hmm, that's good to know. The device runs Windows CE.NET 4.2 so I can only assume that your scenarion for version 5.0 will apply (if not worse).
Be that as it may, I did think of disconnecting ActivSync before attempting a socket connection and it still didn't work. However, in the mean while I've found another way of setting up a socket. In stead of using System.Net.Sockets.TCPClient I tried using System.Net.Sockets.Socket which required a few more specific parameters but ultimately worked like a charm.
My code now looks something like:
using System.Net;
using System.Net.Sockets;
Socket mySocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
EndPoint myEndPoint = new IPEndPoint(IPAddress.Parse("192.168.100.150"), 11240);
mySocket.Connect(myEndPoint);
I'd be very curious to know why this works but the TCPClient failed. But at least I've got this stumbling block out of the way now.
|
|
|
|
|
I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?
|
|
|
|
|
chandni_chandrakant_maheta wrote: I need to get notification when that process will write or modify any thing on the hard disk.
There is no such notification. You'd have to inject hooks into all the I/O functions in the Win32 API to handle this, kind of like how FileMon does it.
chandni_chandrakant_maheta wrote: Can any one guide me or give me any demo code for this?
You probably won't find any specific to this application. No, I don't have any links or examples myself.
|
|
|
|
|
Thanks for your reply.
Dave Kreskowiak wrote:
You'd have to inject hooks into all the I/O functions
Can you please give me any sample code or any article from where I can know how to inject hooks for an I/O function.
|
|
|
|
|