|
Want Remote Connection in Sql Server with C# application ... via Sql Server Authentication... Data Souurce name was created Successfully ... But Could not Access that DataSource name from our C# appliction...Wht is Trusted in Sql Server ....
Thanks
|
|
|
|
|
So did you look at what I suggested when you posted this in the VB forum?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
|
Hi,
In my application I am using first, next, previous buttons for displaying images. I will select images belonging to particular category and place them in a dataset. From here I have to select first 6 images when I click first button, next 6 images when I click next button like that.
So when I click next, I have select the images after the 6th image Id from the data set.
If anyone have any idea to do this please reply me.
Thanks in advance.
|
|
|
|
|
dataSet.Tables[tableNumber].Rows[rowNumber][columnNumber], surely?
Cheers,
Vikram. (Cracked not one CCC, but two!)
|
|
|
|
|
|
Hi All,
I Created one Class Library(Dynamic Link Library) in C#. I want to use this dll in another C# Windows Application. I do not want to use this through Add Reference option, I want to use or Load this dll in runtime. Please give me some solution to this problem.Give me some hints to solve this problem.
Thanks & Regards,
Savitri P
|
|
|
|
|
Hello
We have a C# windows application with around 400-450 forms. Now we sell this application as a product so we keep on enhancing/adding new fetaures by way of adding new options on each form, reports etc. Now with any modictaion/corrections many times a new bug appears. Is there any way we can automate the testing, such that we can test the functionality / output using some predefined test cases?
For eg in many cases while adding a new text box, focus is not proper?
May be while adding a new text box the data saving logic might be corrupt so that a wrong field in wrong column?
Thanks and Regards
Amit
|
|
|
|
|
Tools like QTP[^] can automate the test processes. You can also write test cases that will test the whole functionality. These test cases can be executed by a testing framework like NUnit. For all the new code that you add, make sure you have automated unit test cases for each functionality.
Best wishes,
Navaneeth
|
|
|
|
|
how to make remote desktop with c#, i don't understand, i'm beginner, please help me.....
thank you very much....
|
|
|
|
|
before you post you must Google
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
It took me less than 5 seconds to find this[^] article - you need to work on your Google skills because I copied remote desktop with c# into Google and the resulting list of webpages contained everything you need.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi, i want to set formatted Html to the clipboard using c#. The formatted html contains colored texts,
tables etc. What i wrote is:
DataObject dataObject = new DataObject();
dataObject.SetData(DataFormats.Html, true, htmlString);
Clipboard.SetDataObject(dataObject);
Then i ran the program and tried to paste the data in MSWord. But nothing is pasted. If i set DataFormats.Text, then data is pasted without any problem. But this time only the whole html string with tags are pasted as plain text. I want formatted html.
So how can i do that?
Thanks in advance.
|
|
|
|
|
hi all,
i m a Beginner,please give me a suggestion about Which book learning C # better
thanks to all!
|
|
|
|
|
|
thanks very much,but where can i download XPS reader?
|
|
|
|
|
miss YY wrote: where can i download XPS reader?
I think that comes free with Microsoft Vista and Windows 7, so I would guess from Microsoft. Personally I go for the PDF version as there are lots of good free PDF readers available.
|
|
|
|
|
Hi All,
I assigned a function key (F9) to a button (btnShowMessage) in a form. There are a couple of buttons and listbox inside the form as well. When I load the form and press F9, there is no response, until I set the focus on the button (bthShowMessage).
Now, the problem is that I have 10 buttons to be assigned as F1 to F10 in the form. I do not think I could set focus for every single button. So, how should I go about?
What I would like to have is, when I load a form and press a function key (F1 - F10), a related method should be able to called.
Thank you in advance.
|
|
|
|
|
Hi,
here are some facts about Windows Forms:
1. a Control only listens to keyboard and mouse when it has focus, which only one can have at a time;
2. the easiest way to get special keys or key combinations to do something is by adding a main menu, and menu items with their shortcut set to the keys of interest; then the same event handler can be used for the menu item as well as for other things, such as a Button;
3. a Form can "preview" keyboard input, i.e. get key events although one of its children has focus; so barring the menu idea, you would need a KeyDown and/or KeyPress handler for the Form.
4. none of the above will work if the Form isn't active.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I got it. Thank you. I set the keyUp event for the button, but not the form. Thank you very much for the advice.
|
|
|
|
|
I guess we need to see your code to understand what's going on. If you're assigning a key in the settings, then I have no idea how that would work, but if you catch a keypress event on the form, that should always work.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
this.btnShowMessage.KeyUp+= new System.Windows.Forms.KeyEventHandler(this.formClose);
private void formClose(object sender, KeyEventArgs e) //Keyup Event
{
if (e.KeyCode == Keys.F9 )
{
this.btnShowMessage_Click(this, EventArgs.Empty);
}
else
MessageBox.Show("No Function");
}
|
|
|
|
|
Why is your event called formClose ?
Well, your code does exactly what you told it to. You're handling events on the button, therefore only if the button has focus, will it fire. Add this event to the form instead.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you too, Graus.
|
|
|
|
|
I have a struct that is pinned for use with a few unmanaged functions. One of the fields in the structure is a byte[]. Should I also pin this, or is the pinning of the structure enough?
(Luc - help! I'll get my head around this PInvoke stuff eventually )
Dave
"My code works, but I don't understand why!" - DaveyM69 (Me) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|