|
Why do you need to create the connections tring at setup time?
You can create a custom action in your install package to write the connection string.
only two letters away from being an asset
|
|
|
|
|
I dont know what the client's datasource address is so i want him to be able to enter it on setup of the website.
How does one create a custom action in your install package to write a connection string?
|
|
|
|
|
|
Im sorry but i can't find anything in custom actions that i want to get a connection string from the client during the installation.
|
|
|
|
|
Create dialog to display within your install package asking the user to supply connection string details. Use a custom action, possibly of type 2, to run an exe that adds this info to the config file.
only two letters away from being an asset
|
|
|
|
|
Hello !
Is there a way to make modeless dialog top most/always visible without using
TopMost=true ?
Because if we click button to show modal from this modeless dialog, they always stay at back.
Thank you.
Sovann
|
|
|
|
|
Hello,
Maybe, "BringToFront" can Help you.
All the best,
Martin
|
|
|
|
|
If you set your main form to be the Parent, it will never go behind the parent, but TopMost is the only way to make it topmost.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
Thank you for your advice. I have tried them all but
1. BringToFront() didn't solve the problem
2. set_Parent always complain 'cannot add top level control to this control'
I tried :
Dialog dialog = new Dialog(); // TopMost=false
dialog.Parent = mainForm; // set parent to main form
dialog.Show(); // run modeless
Sovann
|
|
|
|
|
Sorry, C# is dumb. It's not Parent, but Owner that you want to set, as it's a top level control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi.
I'm using a function from a dll. It's imported with DllImport and marked as unsafe because the function returns a pointer to a memory array that the function allocates memory for (at least I think this is why).
[DllImport("netapi32.dll", ExactSpelling = true, SetLastError = true)]<br />
unsafe public static extern int NetWkstaTransportEnum(<br />
[MarshalAs(UnmanagedType.LPWStr)] string ServerName,<br />
uint level,<br />
uint* pBufptr,<br />
uint prefmaxlen,<br />
ref uint entriesread,<br />
ref uint totalentries,<br />
ref uint resumehandle<br />
);
How does it affect my program to compile with the /unsafe switch?
Is it possible to define the above DllImport in a way that it will not be unsafe?
BR
Christian
|
|
|
|
|
Try to replace it with IntPtr.
My english is not so good. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
The pointer is actually a pointer to an array of structs. How would I do the conversion from IntPtr to the struct array?
[System.Runtime.InteropServices.StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto)]<br />
public struct WKSTA_TRANSPORT_INFO_0<br />
{<br />
public int wkti0_quality_of_service;<br />
public int wkti0_number_of_vcs;<br />
public IntPtr wkti0_transport_name;<br />
public IntPtr wkti0_transport_address;<br />
public int wkti0_wan_ish;<br />
}<br />
|
|
|
|
|
Thanks for the hint with IntPtr. I managed to convert it. Not that I think that the new sollution is less unsafe, but...
|
|
|
|
|
hi all,
I need do something before remove row in DataGridView, but I don't find any helpful event provided by .NET 2.0, so how to add a event for it?
Thanks in advance.
P.S I know there have a UserDeletingRow event, it's a void event. because we set AllowUserDelete to false.
|
|
|
|
|
I am currently creating a little C# (games) project which interrogates a webserver (quite alot).
I would like to perform Http-Tunneling in order to have different IPs query the server, but with all the responses sent to me.
Alex Turc has written something which I think is very relevant here:
http://www.codeproject.com/internet/httptunneling.asp
The problem is that this is in C++ (and quite frankly, very incomprehendible/followable to me!)
If anyone has a solution / something similar but in C# I'd appreciate the help so much.
Many thanks!!
Gerry
|
|
|
|
|
This is now the 5th time you've asked this question in the space of about 18 hours. Perhaps no one knows the answer. Perhaps no one understands the question. (Actually, you make a series of statements, there is no question in your post)
|
|
|
|
|
Someone below is asking how to connect to the serial port in 1.1 on the same sort of basis. It seems to be the way of the world. Help me. No, tell me what I want. No, I want you to do it ALL. No, not like THAT. *sigh*
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Wow and here I thought peeps posted so much stuff here that threads end up not getting read...guess I was wrong. Shame about the attitude of some though, eh?
My question would be (with a nice '?' at the end of it ,
Does anynoe have a clue as to the C# implementation of:
http://www.codeproject.com/internet/httptunneling.asp[^]
Cheers,
Gerry
|
|
|
|
|
I have been tasked with developing a system similar to trading software that is used by brokers to bid and sell stocks. I have never developed a .NET application so this is to be my first. I have over 3years of programming though, so concepts are not that hard to grasp.
I have read on web services, gone through a bit on threading and am not quite sure if it should be client server based.
In brief, there are people in a room, each on a computer, bidding and selling for certain things. none of those people can see whats going on on the other's computer but each can choose to buy whats on offer, sell what they have or bid for something on sale. I think it is a typical in a stock trading floor.
Its not that I want a solution but I am wondering whether it would be recommended to use webservices or P2P programming or sockets programming (for interchanging data),
whether to use threads to offer real time data or develop my own polling mechanism to check the data?
I'm a bit overwhelmed with what I can use, but would like to know what would be most recommended for such an application.
Thanx!
|
|
|
|
|
A webservice seems like a good choice to me, it seems you need a central server of some sort and that would be the easiest way to do that.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Christian,
Are web services ideal for real-time programming? As in in my case. I intend the front end to be windows forms
|
|
|
|
|
I guess it depends on what you mean by 'real time', how big the load will be, and what machine it's going to run on. But I'd suspect that it would work out to be a good choice, yes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
real time as in updating of anything sold, viewable to everyone. do u mind if I enquired through MSN?
|
|
|
|
|
I'd imagine a webservice will be fast enough that no-one will spot any discernable lag. No, I don't give out my MSN, but feel free to ask more questions here if you need to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|