|
In my database I have my primary key automatically assigned (it's a PO number). In my app if I cancel a new row insert then add a new row....it will keep reassigning a new pkey. However when I update the datasource it gives it hte proper p-key.....how can I get the cm to show the right key all the time?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
I can implement MC++ interfaces in many other C# projects but not in my addin project, the error is: COM interop can not find a type library for the C++ interface project.
Anyone knows why this happend?
Dilly
|
|
|
|
|
and a poor question: how can I do this?---"compile with: /clr".
|
|
|
|
|
Is the C++ code native? Are you using MC++ (.NET Framework 1.1) or C++/CLI (.NET Framework 2.0)?
|
|
|
|
|
MC++ like this:
__gc __interface IA
{
}
|
|
|
|
|
Hello,
I'm trying to int.Parse a percentage value. Using the NumberStyles parameter I can parse a currency value with currency sign and commas and everything, but there's no enumeration item for percentages. Looking into NumberFormatInfo, I can see that the percentage sign can vary between cultures.
Does anyone know of the good way to parse a percentage string? I don't want to just remove the sign at the end (that seems dirty )
Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
I am working on this project, when I add items to a drop down list using a list item it wont into the event handler on selectedindexchanged. However, use the other definition for the dropdown to add in items via a string, it actually goes into the event handler on selected index changed, for example when I do this:
<br />
ListItem item = new ListItem("One","1");<br />
DropDownList1 = new DropDownList();<br />
DropDownList1.Items.Add(item);<br />
<br />
it will add it in, but when I select something different it wont go into the event handler, but when I do this:
<br />
<br />
DropDownList1 = new DropDownList();<br />
DropDownList1.Items.Add("One");<br />
it will go into the event handler. I dont understand why this is.
|
|
|
|
|
Make sure "AutoPostBack" is set to "true" and the "SelectedIndexChange" event is actually pointing to your event handler before testing your application. Sometimes when you move or modify your control, it resets everything back to its default settings. Also, unless you are creating a DropDownList dynamically, don't initialize it. This action will also reset it back to its original default settings.
|
|
|
|
|
Hi George, thanks for replying to me. I did all of that already, they are dynamic, I don't understand why it wont work. Have you tried it both ways, I dont know if it's teh IDE or what. Im using .NET 2003 though.
|
|
|
|
|
Anyways, I was able to work around it, I had to basically re-engineer everything I did, and use the second definition using strings instead of ListItems in the DropDownList. Thanks for everything.
Sincerely,
The Major Rager
|
|
|
|
|
Hello
How Can I get the Active Directory users, searching by a determinated group, I want the users by group.
Thanks,
Geovanny Santana Z.
gjsantana@gmail.com
gjsantana@gmail.com
|
|
|
|
|
Hi gjsantana,
According to my knowledge what you will have to do, you will make a new Directory Sercher Object and send a different group name in connection string e.g.
private DirectorySearcher DS = new DirectorySearcher
("LDAP://cn=users,dc=servername,dc=domainname,dc=com");
Where it says "users", change it to your desired group.
I hope it helps
Osama Mirza
|
|
|
|
|
I've written a gui app that instantiates objects at runtime, each in its own thread. I've added an eventhandler for each like this:
ADXVoice1.IncomingCall += new ADXVoiceLib._IADXVoiceEvents_IncomingCallEventHandler(OnIncomingCall);
Everything works fine there. But now I've changed this app to be a service. I've got about a million lines that write to the event log (for now) to make sure that I'm actually getting through all the code correctly and everything seems to be going ok. Except the event NEVER FIRES!!
through googling, I've read some stuff about events not firing because services don't have message pumps. Is there any way for me to 'make' a message pump so that these objects will get their events?
thanks in advance!!!
BugReporter[^]
BlackDice
|
|
|
|
|
|
George L. Jackson wrote: Many programmers don't advise using a message pump in a Windows Serivce
well how else can I get my objects to receive events. Will you ask 'those programmers' this for me?
BTW, I tried the application.run thingy and it still didn't seem to work.
BugReporter[^]
BlackDice
|
|
|
|
|
The Application.Run() call did work. The problem was that I was calling it in the main thread. Each object I create in its own thread, so once i put it in there, it works great!! thanks
BugReporter[^]
BlackDice
|
|
|
|
|
Hi, I am getting a strange error periodically while working on a Win Form. This error occurs irregularly for strange reason.
Following :
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
The type 'myProjectName.myDataSet' has no field named 'DataSetName'.
Hide Edit
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
Now When I click Edit link, I see following code in MainForm.designer.cs
// myDataSet
//
this.myDataSet.DataSetName = "myDataSet";
this.myDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
Now, When I delete these mentioned lines, I get back the form regular again. And I dont know how the mentioned code generated by designer after a while which is causing the error. Can u give me any idea please !
|
|
|
|
|
i need to create a program that will calculate the factorial of a number submitted by the user.i should use while and for loops..
|
|
|
|
|
i need back & neck massage.it should be firm yet relaxing..
(hint: We won't do your homework for you. If you need help with a specific problem, ask that and you will be given help.)
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
|
|
|
|
|
Sounds like a homework assignment, but we're NOT doing your homework.
We are, however, willing to help you if you're stuck.
Just post some code which doesn't work and we will help you.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
iam using Visual Studio.NET 2003
int numb;
long fac = 1;
Console.WriteLine("Enter a number :");
numb = Int32.Parse(Console.ReadLine());
for ( int numb; numb >0; numb--)
{
fac*=numb--;
}
the for loop doesnt work with me, even if definef another int variable like :
int x;
for (int x=numb;x>0;x--)
|
|
|
|
|
thats almost correct.
You don't need to decrement numb inside your loop, you're already decrementing it in your for -loop declaration: for ( int numb; numb >0; numb--).
You also need a helper variable to be used in the loop, usually it's called i and will be initially set to your number:
for (int i = numb; i > 0; i--)
{
fac *= i;
}
This will also work:
for (; numb > 0; numb--)
{
fac *= numb;
}
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
it doesnt work.. i dont know why.
|
|
|
|
|
See my edit, I made a small mistake
modified 12-Sep-18 21:01pm.
|
|
|
|
|
it doesnt work Greeeg. anyway, thank u for ur cooperation.
|
|
|
|