473,809 Members | 2,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
1,238
thread by: anaresh55 | last post Mar 20 '12 by: anaresh55
i am making a msi setup through visual studio 2008. Everything working fine but at the end of installation im installing inf through c sharp apllication which runs my driver.But this is saying installation failed.Can any one solve this for me? Thanks in advance
1
2,720
snehil
thread by: snehil | last post Mar 19 '12 by: Frinavale
I have an xml like <?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:docs='http://schemas.google.com/docs/2007' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005'...
0
1,224
thread by: ccodenewbie | last post Mar 18 '12 by: ccodenewbie
Hi All, This is a bit tricky to explain so please bear with me. I am trying to get Window's "System" process starttime. The closest I have come to doing so is by using long st = procs.StartTime.ToFileTime(); DateTime Dt = new DateTime(1601, 1, 1,0,0,0).AddSeconds(st); string stime = String.Empty; stime += (Environment.TickCount /...
0
1,244
Tyler Wiebe
thread by: Tyler Wiebe | last post Mar 18 '12 by: Tyler Wiebe
Okay, I'm using the following to get information from mp3 files public Track(string Location) { if (System.IO.File.Exists(Location)) { System.IO.FileStream FileStream = System.IO.File.OpenRead(Location); System.IO.BinaryReader ByteStream = new...
0
1,219
thread by: Laszo Pasztor | last post Mar 18 '12 by: Laszo Pasztor
Hello! Is it possible to make actions when working with other applications. For example: I start my application. It runs in the background with no user interface. But when I for example drag a window (to move it, a notepad, calculator, whatever) then a message box appears: "you dragged this window: notepad" or any other actions. Is it...
0
1,334
thread by: ugly hand | last post Mar 17 '12 by: ugly hand
hi i am creating an HTTPS winforms application in C#, it is using POST method to send buff to an HTTPS form. When i try to send data, and check the traffic, it is sending buffer two times as duplicated. I mean, if my send buffer is "Hi" , it sends "HiHi" to the server. But it is workign fine with a normal HTTP connection. Only in secure(HTTPS)...
1
2,501
thread by: miguele2012 | last post Mar 16 '12 by: miguele2012
Hello I am developing a web application in visual 2008(c#) that communicates with a component servce (COM VB 6.0) and got the communication, but my problem is this: using the function I send some parameters by reference one of then its a Variant (,) in VB 6.0 that its elements can be of different types. I use a Object with default values...
0
1,388
thread by: Aaron Harrison | last post Mar 16 '12 by: Aaron Harrison
Ok, so there are plenty of posts around that provide code for retrieving volume labels for drives in C# (amongst other languages) The problem i have (and i can't surely be the only programmer to have such a problem/requirement) is this... I open my computer, select 'Rename' from context menu, change the name to "MyLabel" and hit enter. If I...
0
1,473
thread by: Fidelis Sobotta | last post Mar 16 '12 by: Fidelis Sobotta
This is my code. The bold part says something about an invalid thread state. How to stop and run the thread from private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e) ? using .... namespace ns { public partial class MainWindow : Window { public MainWindow()
1
1,228
thread by: Fidelis Sobotta | last post Mar 16 '12 by: PsychoCoder
I have a string containing "E" or "F" or some other single literal. How do I make this string become a Keys.E or Keys.F?
1
3,727
thread by: Ruthra | last post Mar 15 '12 by: r035198x
In my main code i have a lot of private and protected methods.I need to test all those codes in Nunit but i Cant able to write test code for private methods.I know there is a method called reflection in C# to use it but I don't know how to use that. Provide me if there is any references for that. Thank You
1
1,683
thread by: SusanaPeixoto | last post Mar 15 '12 by: SusanaPeixoto
Hello all, I'm Susana Peixoto, a student of Bachelor in Information Technology and Communication at the University of Tras-os-Montes and Alto Douro, and within a proposed work on the course Programming Methodology III, i would like to participate in this discussion forum.
0
1,123
thread by: Nissim | last post Mar 14 '12 by: Nissim
I have two appenders in my app.config for a .net C# application. One is for a database log and the other for a rolling file appender. I need to use these two appenders but with a different message parameter to each one. I therefore cannot just use one log.info call but I need to instantiate two ILog objects, each one connected to a different...
0
1,297
thread by: tess1243 | last post Mar 13 '12 by: tess1243
How to close all the opened child forms and open a new child form when clicking a button on a child form ? Please help. Thanks in advance.
0
1,250
thread by: perhapscwk | last post Mar 13 '12 by: perhapscwk
I use below code to find the combo box controls by its name "cboseltype1" (The reason i do this is because the 1 of the name is determine by the button, so button 1 will find cboseltype1, button 2 will find cboseltype2) It works when this combo box and button is placed inside the form but it not works when placed inside the Tabcontrol under...
0
1,385
thread by: miguele2012 | last post Mar 12 '12 by: miguele2012
i have the follow code: Type objAddType = Type.GetTypeFromProgID("ClaseCOM"); object objAdd = Activator.CreateInstance(objAddType); object mConnectionString = "CadenaConexion"; object myArguments = { Param1, Param2, mConnectionString, ParamReferencia, Param3, Param4, Param5 };
0
1,399
thread by: PriyaShruti | last post Mar 12 '12 by: PriyaShruti
Sir / Mam, please help me with this issue.. when i click button 1 it opens the page in one pdf with the nameddestination... when i click button 2 it opens different page in another pdf with the namedestination... Any ideas... to open different pages or topics in one pdf when i click different buttons..???... Plz.......
1
1,296
thread by: vasan raju | last post Mar 12 '12 by: Ivan Voyager
I've a textbox and gridview in a from. in gridview i've loaded some data from sql. now I've a function in c sharp for search method. (ie) public void search() { SqlDataAdapter da = new SqlDataAdapter("select * from mast_bloodgroup2 where bloodgroup like'" + txtbldgrp.Text+" % '", con); DataSet ds = new...
0
3,799
thread by: sangram2681 | last post Mar 12 '12 by: sangram2681
Consider Code Sample Below of a simple console application. namespace AccessiblityAndMemberClass { class Program { static void Main(string args) { } }
3
1,616
thread by: iurceg | last post Mar 10 '12 by: Stewart Ross
I have a number of type double 12.2301000 I need to get 12.23 p.s. I do not need rounding.
0
1,654
thread by: mylixes | last post Mar 10 '12 by: mylixes
I have a TreeGrigView and each row has link button which will start executing commands and start the thread. How will I be able to run the thread simultaneously if I click the link button in any row. For example if I click the link button in row the thread will run in the backgound then when I click the link button in row another thread will run...
0
1,832
snehil
thread by: snehil | last post Mar 10 '12 by: snehil
0 down vote favorite share share share I'm sending an HTTP POST request to google Client login and I'm getting this in respons: SID=DQAAAGgA...7Zg8CTN LSID=DQAAAGsA...lk8BBbG Auth=DQAAAGgA...dk3fA5N
1
1,588
thread by: RomeoX | last post Mar 9 '12 by: Rabbit
Hi everybody, Could anyone help me in the select statement. I created small form to search in the database, it gaves me an error Missing Expression. The combox has the attributes of the table because I want restrict the search to only on specfic columns. commandString = "Select * from tableadd where " + this.comboBox1.SelectedText + "like...
0
1,571
thread by: Scalp994 | last post Mar 9 '12 by: Scalp994
Hello! In my code, I've got a class called "teacher" which has some arrays inside of it: public class teacher { //monday public bool mon = new bool; //tuesday public bool tue = new bool;
2
2,209
thread by: TripleOG | last post Mar 9 '12 by: TripleOG
I was given a solution that creates an MSI file for our application. I would like to modify the Installer.cs code to output the Version number from the Deployment Project Properties to a log file during the running of our installer. The Version number I'm talking about is initially set to 0.0.1 and when incremented it asks you to change the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.