|
Ok, it's the extra work I am interested in.
Is there a way to make strong type TableAdapters (introduced in VS2005) to point to another connection string(another database but same with schema) in AppConfig at runtime?
thanx
|
|
|
|
|
I am not familiar with those. You would probably have to modify the generated code to achieve that.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
i want to know how to rotale the images in the cycle view.it should impress as 3d view .As exsample if 3 images should rotate in cycle with related links
eg : microsoft encarta 2005 picture rotating view. please give ideas
Amal
|
|
|
|
|
I have the following code which updates a tree view when called. For some reason beyond me, the second time it is called (foreach (Contact c in contacts) is previously called, so this is invoked for each new addition to the treeview), it produces a NullReferenceException unhandled error.
public void UpdateContactGroup(Contact contactIn)<br />
{<br />
if (this.trvContacts.InvokeRequired)<br />
{<br />
UpdateContactGroupCallBack d = new UpdateContactGroupCallBack(UpdateContactGroup);<br />
this.Invoke(d, new object[] { contactIn });<br />
}<br />
else<br />
{<br />
TreeNode newNode; <br />
if (!trvContacts.Nodes.Contains(new TreeNode(contactIn.Group)))<br />
{<br />
newNode = new TreeNode(contactIn.Group );<br />
trvContacts.Nodes.Add(newNode);<br />
}<br />
newNode = new TreeNode(contactIn.Username);<br />
trvContacts.Nodes[contactIn.Group].Nodes.Add(newNode);<br />
}<br />
}
Also, when hovering over the error in debugging mode, all the fields are shown to be present.
Another method using the invoke called updating a rich text box works fine all the time.
Can anyone tell me what I'm doing wrong?
|
|
|
|
|
How i will integrated collection process in asp.net.
can u provide code or link where r integrated collection
|
|
|
|
|
hi...
I'am in wonder whether its possible to generate a "rdlc" file, add some data regions and finally pass a dataset to it dynamically.
I'am going to generate a user control that has a dataset and use this dataset to create a report on the fly.
Would you please help me?
Thank you in advanced...
|
|
|
|
|
I wrote a C# windows application, in Visual Studio 2005,
that will email certain files to certain people at a certain
time every day. This program have to run permanantly to check the time.
How do I make the program run in the background and have only a
system tray icon on which you click to maximize the app??
-- modified at 7:28 Tuesday 25th April, 2006
|
|
|
|
|
Why don't you search before you post questions like this?
click
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
private void Form_SizeChanged(...)
{
if(this.WindowState==FormWindowState.Minimized)
{
this.ShowInTaskbar=false;
NotifyIcon.Visible=true;
}//if
}//sizechanged
private void NotifyIcon_DoubleClick(...)
{
this.ShowInTaskbar=true;
this.WindowState=FormWindowState.Normal;
NotifyIcon.Visible=false;
}
|
|
|
|
|
The NotifyIcon class is what you need to use to create the system tray icon.
Graham
|
|
|
|
|
i wanna know how to change the combobox scrollbar color in windows based application.
can anyone helop me out n tell me by which property setting i ll get different color of scrollbars..
eagerly waiting for reply
Thanx,
meer
Software Developer
Pune.
|
|
|
|
|
The colors of the scrollbars is a user setting in windows. If you want to use other colors, you have to build your own combobox.
---
b { font-weight: normal; }
|
|
|
|
|
Some where i have read that changing color property is a protected property not a public property...
so have to do in code behind...
but i m not getting any reference of how to do ...
i have seen its examples but no code present there to chk...
can anyone help out there
Thanx,
meer
Software Developer
Pune.
|
|
|
|
|
meer_Lx wrote: Some where i have read that changing color property is a protected property not a public property...
so have to do in code behind...
Where have you read that rubbish? A protected property means that you can only access it from a class that inherits the control.
As the scroll bar is a system component, there is no such property.
---
b { font-weight: normal; }
|
|
|
|
|
You can't do it. This colors are system colors.
You can only create own owner draw control, or use 3rd party controls for changing this colors.
Best regards, Alexey.
|
|
|
|
|
I am looking to get a C# code that simulates these events thru the click of a button in C#
1 Open the Visual Studio 2005 Command Prompt.
2 At the command prompt type something that follows this format:
mstest /testcontainer:[TestProjectDir]\bin\debug\[TestProjectAssembly]
3 press ENTER
Any code which can do this ?
Thanks
Vikram
|
|
|
|
|
Maybe you can use build events, and some Visual Studio variables such as "$(ProjectDir)", "$(SolutionDir)", "$(TargetDir)".
Best regards, Alexey.
|
|
|
|
|
It does not help.
I need to run this command in VS 2005 cmd window on click of button
mstest /testcontainer: C:\vikram\VSTS\BankAccount\DepositUnitTestProject\bin\Debug\DepositUnitTestProject.dll
|
|
|
|
|
Try this code:
<br />
string filepath = Path.Combine(Application.ExecutablePath, "DepositUnitTestProject.dll");<br />
System.Diagnostics.Process.Start("mstest", "/testcontainer " + filepath));
If your libruary is situated in same directory as application executable.
Best regards, Alexey.
|
|
|
|
|
I don't think you can do that!
Gorbachev
|
|
|
|
|
dear Roman kiss:
i used your WebServiceAccessor code in my project.but it dose not work. I have a web secvice A(C#) that has conectection to web service B(java) on run time.it dos not work. my web service A conect to a C# web service correctly by your code but it can not connect to a java web service.i am sure that my java web service has no error because when i add it to my web service it works correctly and returns correct answer. i only can use WebServiceAccessor code when both webservice are in C#.pleases help me as soon as possiable.
Tanks,
Ronak noroozi.
|
|
|
|
|
Hi,
I'm trying to call resources via the ResourceManager class.
The idea is to be able to translate the application text when the application loads.
I have tried the following:
<br />
Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US");<br />
ResourceManager resourcemanager = new ResourceManager("Resources", Assembly.GetExecutingAssembly());<br />
and call a string:
string info = resourcemanager.GetString("info_help"); ("info_help" is the name of the item in my Resources.en-US.resx file.)
I get a MissingManifestResourceException error when the GetString method executes.
What could be the problem here?
tnx!
[EDIT]MSDN is being a real b*tch to me on this subject... [/EDIT]
Coulda, woulda, shoulda doesn't matter if you don't.
-- modified at 5:46 Tuesday 25th April, 2006
|
|
|
|
|
Not sure if this will apply to your case, but I had a similar issue.
I was simply trying to access an embedded resource of strings, no culture-specific stuff.
I resolved it by qualifying the resource name with the assembly's default namespace:
assembly name: MyAssembly
default NameSpace: MyAssembly
embedded resource: MyResources.resources
<br />
ResourceManager rm = new ResourceManager("MyAssembly.MyResources", this.GetType().Assembly);<br />
string resourceValue = rm.GetString("resourceKey");<br />
I had similar experiences with MSDN...
Hope this helps.
--Tym!
|
|
|
|
|
tnx, I already solved the problem. It seems you have to add a resource to the project, I used (for the first one) the one that is there by default. Don't know where the difference is, but it works now.
btw:
i've tried this: ResourceManager rm = new ResourceManager("MyAssembly.MyResources", this.GetType().Assembly);
string resourceValue = rm.GetString("resourceKey");
as first thing .
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
In TreeView control, If i select parent node which gets bold then i select another parent node which also gets bold. In this case i am able to see which node is selected and which is deselected.
I need code for if i selected another parent node then previously selected node gets deselected and gets normal style means not bold.
- Parent 1
--- Child Node 1
--- Child Node 2
- Parent 2
--- Child Node 3
--- Child Node 4
e.g.
If Parent 1 is selected(bold) by default when form loads and then if i select Parent 2 then Parent 1 gets normal font and Parent 2 gets bold bcoz it is currently selected.
|
|
|
|