Software Development Network Logo
  • Visual C++
  • Smart Devicet
  • Audio and Video
  • Visual Studio
  • Windows Vista
  • IE Development
  • Visual Basic
  • Game Technologies
  • SharePoint Products
  • Windows Forms
  • Visual FoxPro
  • Microsoft ISV
  • SQL Server
  • .NET Development
  • VS Team System

Software Development Network >> Visual C#

Visual C#

New Question

Interop: C#/WinAPI Marshaling correspondence
part of the alphabet
How to find the folder or file path dynamically?
Generating a random string of letters
cannot select the row
Windows 2000 SP for deployment
EventLogEntry.InstanceID
How to know whether an Excel file is open and close it automatically?
Run application as a Service
Windows service to show icon in system tray and windows form ...How???

Top Answerers

olap_user
Rattlerr
Demokratizator
michael412
Jackobolo
programmer01
IS dude
Ruki
dmb13
Bart Elia
sitemap
Only Title

Answer Questions

  • huzaifa shabbir hussain XML newbie

    I am trying to read all the values under Genre_Country and Genre_Funk. To loop thru each genre...and get the Title and url. Driving me nuts.... < Radio > < Genre_Country > Country </ Genre_Country > < Title > .977 The Kickin' Country Channel </ Title > < url > http://64.236.34.4:80/stream/1075 </ url > < Title > 1.FM - Country </ Title > < url > http://64.62.194.11:8020 </ url > < Title > .977 The Kickin' Country Channel </ Title > < url > http://205.188.215.230:8000 </ url > < ...Show All

  • msdobrescu2 what files for deploying

    I've built a windows application and when I build the project there are a lot more files than I really need: myconnectiondll.dll myconnectiondll.pdb myDB.mdb myapp.application myapp.exe myapp.exe.config myapp.exe.manifest myapp.pdb myapp.vshost.application myapp.vshost.exe myapp.exe.config myapp.exe.manifest I can grab just the .dll, .mdb and the .exe and it runs just fine. Do I need any files other than those 3 when I deploy the application You should build the file in Release mode and get everything from the project folder\bin\release folder you also need to ensure that the computers you deploy to have .net Framework installed. If you create a deployment project and specify using the the output ...Show All

  • dgolds Using QoS without sockets

    Hi. I have network application. Server and client interact via RPC. Is there any way to restrict speed of data transmition between server and client using QoS In other words, can I use Traffic Control without socket creation Thanx. Unfortunately, you cannot use qWAVE for non-socket based applications. You are correct that traffic control (TC) is the only programmatic way to do this currently by creating a flow and filter that matches your traffic. Note that your app requires administrative privileges to use TC, and that this API is deprecated and will be removed in a subsequent release of Windows. We are thinking hard about a replacement API for TC in a post-Vista release, but in the mea ...Show All

  • Zero_ Formating text in a datagridview

    How do i convert the text of a cell in the datagridview to uppercase before i save it to the database are you using a DataAdapter to update the database Generally you would simply get and set the value of the cell and use the ToUpperCase() in the string class to make the text/string uppercase, however this is untested: this.theDataGridView.Rows[ RowIndex ].Cells [CellIndex] .Value = this.theDataGridView.Rows[ RowIndex ].Cells[ CellIndex ].Value.ToString().ToUpperCase();   does this work That worked great, thanks very much. Cheers ...Show All

  • mabxsi Iterations through a Dataset/datagrid

    I am new to C# and dataset/datagrid processing. When saving any changes, I need to know how to iterate through changed rows to evaluate column contents for validation. The information I have at my disposal does not show any examples. Any help would be greatly appreciated. I found the problem. It was something I had hidden in the code. Thanks so much for your patience and help. No error, it is just that it does not appear to be assigning the value. The particular column is a NOT NULL column in the database, and I am trying to assign it a value, but after the iterations, the INSERT fails because it is saying the value is NULL. ...Show All

  • steal implementing logger application block

    Hi everyone, iam using visual studio 2005 ,enterprise library for .net 2 and oracle as back end. can any one guide me in implementing the logging application block for database sink. "write sp" is used for sql server but my back end is oracle. thanks and regards baskar k ...Show All

  • M. Nicholas N-ary Trees

    I’ve got a hierarchical set of data that seems to fit an N-ary tree structure, I can’t seem to find any good C# resources on the best way to parse/store/manipulate this data. The source data (SQL table) consists of a node id, node name and node parent which is null (root node) or references another node id. Any ideas You could even get a more DataCentric approach using ADO.NET hierarchical capabilities. There are a lot of documentation regarding this topic, I show you just this googled link that seems a good starting point. http://www.programmersheaven.com/articles/patrik/Hierarchical.htm General data structure for tree should look like this: class TreeNode { ...Show All

  • Lou Searles User Settings file and binding control to "BackColor"

    I want to be able to save user settings. The user can create different profiles so that, for example, one profile may have something like red, 26 point font, and another can quickly be selected and it changes to blue, 72 point font. I thought about using the "Settings File" but I wasn't sure if or how to have multiple sets of settings (i.e. different profiles). So my next solution was to load an XML config file into a dataset and bind the dataset elements to a form's controls. This works great, except I want to bind to "BackColor", which is a Color object and not a string, so it causes an error at runtime. What would be my best solution for a settings file that allows multiple sets of the same user settings, data bindi ...Show All

  • Andy Hough documentcomplete event

    I've got a really weird problem with my application; it works on some pc's, and it doesn't on some others. What I've got: A Visual C# 2005 console application with references to MSHTML and SHDOCVW. I use mshtml to get a list of currently open browser windows, and attach events to it to edit the list when a new browser window is created or closed. I attach a documentComplete event to each open browser window and handle it the event there (let's say it prints out the url where is navigated to). So when I run this program, it should detect when I open a new browser window, when I close one, and it should print out the url of a site when it is done loading it. And there's my problem. On a few pc's, it all works perfectly. But o ...Show All

  • FLIPKE String to Decimal

    Hi, I need to convert a string to a decimal, is there any way to do this My string is a numeric value read back from an instrument i.e. 1.85, (the only way to read back is in string format) I then want to compare it to another value (currently in decimal but on the PC user interface so changeable) and act if it is higher, lower or bang on. I have tried MyDecimal = ( decimal ) MyString; However this returns the error string can not be converted to decimal. If there is another way i would be very great full if somebody could help me, or suggest a way around it. Thanks in advance Peter That compiles fine, Thank you Peter This should d ...Show All

  • tapir Creating controls at runtime vice dropping Controls at Design Time???

    I'm not so new at C# but I'm still a beginner! I'm very confused about the above subject ... I am a former VB (and COBOL) programmer and, I'm confused as to why or when to drop controls on a windows form and when to create them at run time Are there do's and don'ts for this, or is this feature available for the "hard-nosed" programmer who likes to fully control the app When I wrote VB apps for instance, I would not use the Data control (unless I absolutly had to) because I wanted more control over the data and how it was displayed and edited. Yeah, more coding and work but I knew what was happening when. Any information that will help clear this muddled mind of mine would be appreciated! Thank you Greg ...Show All

  • TkNeo Accessing another app's message queue in C#

    I'm not actually sure if this is possible, but how would you go about this in C# if it is possible Say I wanted to minimize every occurence of Notepad, how would I code it so that it posts a message into the message queues of every instance of notepad.exe telling it to minimize Thanks in advance! - Javawag You need to use PInvoke and send the messages. Here is a code sample of how to close a Window http://forums.microsoft.com/msdn/showpost.aspx postid=935502&siteid=1 changing WM_CLOSE to WM_MINIMIZE will do it for one window. Changing FindWindow for EnumWindow like in http://pinvoke.net/default.aspx/user32/EnumWindows.html Should do it for more than one window. ...Show All

  • mendiola_loyola How to use static class in Class Library (C#)

    I wrote a IE extension with c#, function is working, but I want to share a global flag in different IE , I used static class, it works in different tab in same IE window, but don't work in different IE window. SO What can I do [Guid("xxxx--...")] [BandObject("QToolBar", BandObjectStyle.Horizontal | BandObjectStyle.ExplorerToolbar | BandObjectStyle.TaskbarToolBar, HelpText = "QTool.")] public class QToolBar : BandObject { private void InitializeComponent() { if (CGFlag.m_bLogin) { .... } } } static class CGFlag { public static bool m_bLogin = false; } Hi, i think the problem is, that the different IE windows are different processes so you ...Show All

  • lordJapheth How can I start a Windows Service from A Web Service?

    Hi In my web application I got a webservice that start the windows service Using the ServiceController when I debug my projest and when I start my Win Service it runs with no errors using the ASP.NET Development Server, as soon as I put my Web Application to wwwroot folder for IIS when I start the Win Service I get the following error, Im using the same PC. System.InvalidOperationException: Cannot open iBaseService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess) at System.ServiceProcess.ServiceController.Start(String[] args) at System.ServiceProcess.ServiceController.Start ...Show All

  • Stags multithreading

    I need to do multithreading. It is my fist attempt. It failed. This is the setup: There is a form with tabControl and a few pages. There is a progress bar on one of them. It is supposed to measure progress of file downloading. WIthout multhithreading it is dead while the files are downloaded and then in the end it jumps to 100%. This is what I did. Everything compiled but the progress never was activated even after the downloading was over. In other words my code actually made the things worse. In the main form I put in this code at the start of procedure that is handling the download: ThreadStart threadDelegate = new ThreadStart ( Work.DoWork ); Thread newThread = new Thread ( threadDelegate ); newThread.Start ( ); T ...Show All

636465666768697071727374757677787980

©2008 Software Development Network

powered by phorum