|
When I compile my C# document and execute it (by double-clicking it in the window), it makes a little black box come up (I think it's the System Console). I am using Windows.Forms, and I don't want the black box to be be there. Is there a way to make this disappear? Any help would be appreciated. Thanks!
---
Sup!
|
|
|
|
|
Change the project properties. Possibly in the build tab (Sorry, I don't have VS in front of me at the moment to verify) They are probably set to Console Application at the moment.
|
|
|
|
|
Sorry, I'm not using Visual C#. It won't install on my computer. Maybe I need an internet connection? (I have a Mac and a PC - I program on the pc - the mac has the internet, and the pc doesn't)
---
Sup!
|
|
|
|
|
In the options for the compiler use the switch /target:winexe
|
|
|
|
|
OK, I"ll try that. Thanks!
---
A 13 Year Old Programming Wiz
|
|
|
|
|
It worked perfectly, thank you so much.
---
A 13 Year Old Programming Wiz
|
|
|
|
|
I am looking to take a program and compile it for a mac. The code is entirely C# coded in visual c#. Is there ea compiler that someone can recommend that maybe makes dmg files?
Almerica
|
|
|
|
|
|
Mono probably won't work with the code as is unless it's a CLI/web app. Rather than using WINE to try and support winforms Mono is instead using GTK.net. GTK.net is usable in MSVS, but unless crossplatform was goal from the start is unlikely to've been used.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Of course, I've no idea what his app. is but my idea is that he would recode it in Mono and then port.
Kevin
|
|
|
|
|
Mono is the only port of C# that exists. I don't think it has a GUI library. I doubt you can do this.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi coders
I'm working on a project, where I'm to do some calculations on sound-data. I have no problem playing the sound and so on. But I can't figure out how to retrieve the amplitude samples and put them into an array so I can do my calculations. Is there please some how can help me or give me som hints...
All the best
AL
|
|
|
|
|
Hello again,
I searched CP for "oscilloscope" and found several articles; I suggest you have a look at this one[^] first.
Luc Pattyn
|
|
|
|
|
Hi ,
In one of the modules of my application I am using the implicit Transactionscope object for insert /updating Data to a SQL Database ..
This are the code lines wherein I define the scope .
using (TransactionScope addEditscope = new TransactionScope(TransactionScopeOption.RequiresNew, new TimeSpan(0, 5,0)))
If everything works fine I call the complete method for Commiting the transaction else I throw an exception whereby the Transaction gets rolled back & also since the Transaction scope is completed , The transactionscope object gets Disposed. (I have checked it & there is no instance of any Transactions shown) ...
I also have a Linked Server to an Access Database for populating a Dropdown list .
The above two functinalities are handled in two different methods ...
But unfortunately when I try to populate the Dropdownlist I get the following error :
Cannot start a transaction for OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "ExternPopup".
I am nowhere using Transaction while Fetching data for the dropdownlist ...
The movement I remove the above Transactional code Everything works fine ...
Please help
|
|
|
|
|
That's an interesting issue you bring up. TransactionScope does a lot behind the scenes to manage transactions and whatever it sets up the first time it's used is probably going to stick around since you're on the same connection. You could try opening up another connection to the same database and trying to get your list. If that doesn't work, try rearranging the items in the connection string (IIRC ADO uses the connection string to handle pooling and it could be as simple as rearranging the string to open up a distinct connection instead of getting the existing one from the pool).
But, for a "non-kludgey" solution, maybe you could write a stored procedure that will contact your linked server to pull the data. If you're already doing this, I believe there may be some settings you have to put on the link to make it capable of participating in transactions. I've had a problem before with linked servers where my stored procedure would fail in the application when it called the linked server but worked just fine in query analyzer. The solution I found was to use ODBC.
|
|
|
|
|
Hi Dustin ,
Thanks a lot ...
I created a new connection to the same database & set Enlist=false in the connectionstring .
I could fetch the data without any problem ..
|
|
|
|
|
When I select an item in the list view I'm using the SelectedIndexChanged procedure to run some code. At the end of the code I would like the cursor to be be put in TextBox TB1. When I use TB1.Focus() the system still keeps the items in the ListView Selected to have the focus. If through the code I change the selecteditem everything works. The problem is when the user clicks the item.
Thanks for everyones assistance.
Tom
|
|
|
|
|
There is a webserver "windows server 2003" on local network. It has VS2005 with SP1 and latest updates for win server 2003.
This server also has IIS.
The webservices that are created in .net 2.0 are sitting in this server (virtual directory).
Using a client workstation (development machine), I can pipng the ip address of the webserver.
The problem is when trying to add webreference to these webservices in web server. i.e. http://webserverName/CodeServicces/intest.asmx
The client gives an error as follows:
The proxy settings on this computer are not configured correctly for web discovery.
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /codesservices/inTest.asmx
|
|
|
|
|
Check the spelling of the URL. Both the URLs look like they are misspelled. If it's misspelled on the server, you have to use the same spelling when accessing it.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi All
I am interfacing with a microcontroller for that i have to monitor serial port for dat is there any loop or anything to monitor the serial port
SAS :rose
|
|
|
|
|
SerialPort.DataReceived and SerialPort.PinChanged events.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I want to edit the picture on the picture box imamge and want to save it...... How can I do this???????????? Can anyone tell me????
One thing more I also want to draw another image on that picture boc image...........
|
|
|
|
|
There seems to be a constant stream of people who mistake a picture box for an image editor. If you want to do this, you need to write your own code to do it, and you won't want to use a picture box to do it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
U want 2 say If I want to edit picture I should draw the image instaed of using picturebox...... AM I right .... Okay then can u tell me how can I edit on run time on the image already drawn ...... Any help or article over it...... I have seen ur articles abt image processing they helped me in processing the image but I cant edit them or draw another image on it.........
THANX in advance
|
|
|
|
|
Dear All ..
How are you all
iam a new in programming and i need help in how can i start Visual C# (C#) how can i start from a to z
plz any one can help me
thx all
best regard
Abd el rahman zidan
zidan
|
|
|
|